gpf_agent_geoserver.geoserver_custom module

Surcharge de la class Geoserver. (Modification à pousser upstream)

class gpf_agent_geoserver.geoserver_custom.GeoserverCustom(service_url, username='admin', password='geoserver', validate_ssl_certificate=True, access_token=None, retries=3, backoff_factor=0.9)

Bases : Catalog

create_layergroup_no_workspace(name, layers=(), styles=()) str
get_layergroup(name, workspace=None) LayerGroup | None

returns a single layergroup object. Will return None if no layergroup is found. Will raise an error if more than one layergroup with the same name is found.

http_request(url, data=None, method='get', headers={}, files=None)

Debug log the url called, and send the HTTP request

Paramètres:
  • url – the target url

  • data – the data to send

  • method – HTTP method to use

  • headers – headers to add to the request

  • files

Renvoie:

the response for the call

set_layergroups_attribution(workspace: str, layergroups_name: str, attribution: list) str

Add attribution to layergroups

set_layergroups_keywords(workspace: str, layergroups_name: str, keywords: list) str

Add keywords to layergroups

set_layergroups_metadata(workspace: str, layergroups_name: str, metadata: list) str

Add metadata links to layergroups

upload_or_update_ftl(workspace: str, store_name: str, layer_name: str, path: str) str

Add or update a featuretype ftl template