src.eddie.geoserver.geoserver_common

Core functions for serving data and working with workspaces in geoserver.

Attributes

log

_xml_header

Functions

get_geoserver_url(→ str)

Retrieve full GeoServer URL from environment variables.

create_workspace_if_not_exists(→ None)

Create a GeoServer workspace if it does not currently exist.

Module Contents

src.eddie.geoserver.geoserver_common.log
src.eddie.geoserver.geoserver_common._xml_header
src.eddie.geoserver.geoserver_common.get_geoserver_url() str

Retrieve full GeoServer URL from environment variables.

Returns:

The full GeoServer URL

Return type:

str

src.eddie.geoserver.geoserver_common.create_workspace_if_not_exists(workspace_name: str) None

Create a GeoServer workspace if it does not currently exist.

Parameters:

workspace_name (str) – The name of the workspace to create if it does not exists.

Raises:

HTTPError – If geoserver responds with an error, raises it as an exception since it is unexpected.