gicait / geoserver-rest

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

add method get_name_workspace #19

Closed polzader closed 4 years ago

polzader commented 4 years ago

Add mehtod get_name_workspace in Geoserver.py

Utilities: In my main.py I want to check if a workspace exists, if not, create it.

wk = geo.get_name_workspace(workspace=workspace) if wk is None: print(f'no exist workspace {workspace}') try: print(f'create wk') a=geo.create_workspace(workspace=workspace) print('Output: {}'.format(a)) except Exception as e: print('Error: {}'.format(e))

iamtekson commented 4 years ago

Thank you very much for your contribution. I hope your contribution in the upcoming days as well.