Closed polzader closed 3 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))
Thank you very much for your contribution. I hope your contribution in the upcoming days as well.
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))