Provides functions for managing GeoServer coverage stores via the REST API.
Coverage stores reference raster data such as GeoTIFF or COGs (Cloud Optimized
GeoTIFFs). All functions require a GeoserverConfig.Connection as their first
argument.
Example
conn = GeoserverConfig.Connection.from_env()
{:ok, stores} = GeoserverConfig.Coveragestores.list_coveragestores(conn, "demo_workspace")
Summary
Functions
Creates a new coverage store for a GeoTIFF or COG raster file.
Deletes a coverage store from the specified workspace.
Lists all coverage stores in the specified workspace.
Updates an existing coverage store.
Functions
Creates a new coverage store for a GeoTIFF or COG raster file.
Parameters
conn— aGeoserverConfig.Connectionworkspace— the GeoServer workspace namestore_name— desired name for the coverage storegeotiff_path— file path or URL to the GeoTIFF/COGdescription— optional description (default:"")opts— optional map with extra store fields::connectionParameters,:metadata,:disableOnConnFailure
Returns
{:ok, store_name}on success{:error, reason}on failure
Deletes a coverage store from the specified workspace.
Uses purge=true to also remove related resources.
Returns
{:ok, name}on success{:error, {:http_error, status, body}}on failure{:error, {:request_failed, reason}}on transport error
Lists all coverage stores in the specified workspace.
Returns
{:ok, [store]}on success{:error, {:http_error, status, body}}on non-200 response{:error, :unexpected_format, body}when the response body is unrecognised{:error, {:request_failed, reason}}on transport error
Updates an existing coverage store.
Parameters
conn— aGeoserverConfig.Connectionworkspace— workspace containing the storestore_name— name of the coverage store to updateupdated_params— map of fields to update::type,:enabled,:url,:description
Returns
{:ok, store_name}on success{:error, {:http_error, status, body}}on failure{:error, {:request_failed, reason}}on transport error