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?
-
1do you mean a view you created in GeoServer or an arbitrary one that GeoServer knows nothing about?Ian Turton– Ian Turton2020年10月29日 16:02:39 +00:00Commented Oct 29, 2020 at 16:02
-
I would like to edit an existing view that I created in GeoServerVincent Buscarello– Vincent Buscarello2020年10月29日 17:03:05 +00:00Commented Oct 29, 2020 at 17:03
1 Answer 1
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.
-
Welll derp, dont know how I missed that but thanks!Vincent Buscarello– Vincent Buscarello2020年11月02日 15:44:54 +00:00Commented Nov 2, 2020 at 15:44
-
Cant actually see that link, might be a permissions issue Ill look into thatVincent Buscarello– Vincent Buscarello2020年11月02日 15:49:05 +00:00Commented Nov 2, 2020 at 15:49
-
what version are you using? that's been there for more than 2 yearsIan Turton– Ian Turton2020年11月02日 15:55:20 +00:00Commented 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?Maria Savchenko– Maria Savchenko2024年03月13日 09:24:01 +00:00Commented 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 viewIan Turton– Ian Turton2024年03月13日 09:27:02 +00:00Commented Mar 13, 2024 at 9:27
Explore related questions
See similar questions with these tags.