Creates an item in the specified collection with the specified geometry and CRS code. Geometries are reprojected if the server does not support the items current CRS.
Deletes an item from a specific collection.
Protected
describeFetches all paginated resources from the specified URL until the entire dataset is retrieved.
Retrieves a collection by its ID. If the collection is not already cached, it fetches it from the remote resource, sanitizes its links, and stores it locally.
Retrieves the related resource for a specified collection and relation type (e.g. schema
, self
, parent
, etc.)
Protected
getExpands the method from OgcApiClient by customizing headers to support GeoJson content and optional CRS identifier.
Optional
crsIdentifier: stringRetrieves a single item from the specified collection by its ID.
Optional
crsCode: stringRetrieves items from a specified collection, optionally applying filters like CRS (Coordinate Reference System), spatial extent, and limit.
Optional
crsCode: stringOptional
extent: number[]Optional
limit: numberRetrieves a specific link from the OGC API resource based on the given relation and encoding type.
Fetches and retrieves links from the specified path or URL and returns them in a sanitized format.
Retrieves the schema associated with a specified collection.
Protected
getLoad the list of conformance classes, which describe what kind of functionality the server provides.
Protected
loadProtected
sanitizeSanitizes a list of links by ensuring that their URLs are consistent with the original request URL.
Sanitizes if the original URL does not match the link in the self
href.
Limitation: Only works if the original URL and the faulty link share at least one common URL path element, e.g.:
'/api/' in (original) https://example.com/api/ and (faulty) https://12345-example.com:8080/mapserv_proxy/api/
The URL of the original request.
The array of links to sanitize.
The sanitized list of links.
Class representing an OGC API Features (OAPIF) client that interacts with a server implementing the OGC API - Features standard. This class provides functionality to fetch, manage, and manipulate collections and their spatial data from the server.
Extends
OgcApiClient<ServerOgcApiFeatures>
: Provides base client functionalities.