gicait / geoserver-rest

Python library for management of geospatial data in GeoServer.
https://geoserver-rest.readthedocs.io
MIT License
191 stars 77 forks source link

Add parameters for adding SQL views #144

Closed gijsbecht closed 4 months ago

gijsbecht commented 4 months ago

Added the possibility to add parameters to a SQL view. See geoserver docs.

The optional argument 'query_params' was added to the function publish_featurestore_sqlview.

When provided it should be a list of dicts where each dict represents a parameter of the SQL view. The dict should be in the following format: {'name':parameter name, 'default_value': default parameter value, 'regex_val':regular expression for validation}, regex_val can be omitted if not necessary.

Additionaly, the escape_sql parameter was added. This is an optional parameter which is set to False if not provided.

iamtekson commented 4 months ago

I think now it is outdated and the functionality is already merged in #146. I am closing this PR, feel free to open if required.