1

There is a really solid guide to creating new views

https://docs.geoserver.org/latest/en/user/data/database/sqlview.html

But I can't find anything on changing the underlying SQL that populates an existing GeoServer view. We have a use case where we would like to change SQL that gets an existing data layer, potentially adding parameters and the like. Is that possible? Or should we build the layer from scratch?

Vince
20.5k16 gold badges49 silver badges65 bronze badges
asked Oct 29, 2020 at 15:52
2
  • 1
    do you mean a view you created in GeoServer or an arbitrary one that GeoServer knows nothing about? Commented Oct 29, 2020 at 16:02
  • I would like to edit an existing view that I created in GeoServer Commented Oct 29, 2020 at 17:03

1 Answer 1

2

You can edit the SQL that makes up the layer by clicking on the edit sql view link at the bottom of the Edit Layer page's Data tab.

enter image description here

answered Oct 30, 2020 at 10:18
5
  • Welll derp, dont know how I missed that but thanks! Commented Nov 2, 2020 at 15:44
  • Cant actually see that link, might be a permissions issue Ill look into that Commented Nov 2, 2020 at 15:49
  • what version are you using? that's been there for more than 2 years Commented Nov 2, 2020 at 15:55
  • Hi, I have the same problem that "Edit sql view" link is missing. I am using 2.23.2 GeoServer version. Therefore, I can't edit existing SQL view. Is there any other way to do that in this version? Commented Mar 13, 2024 at 9:24
  • I think the only other reason that link would be missing would be that the layer is not based on a view Commented Mar 13, 2024 at 9:27

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.