AbstractProtectedconstructorProtecteddescribeFetches all paginated resources from the specified URL until the entire dataset is retrieved.
dataListName is the attribute name that holds the list of data items in the response JSON.
For feature items, the attribute name is 'features', for collections, it's 'collections'.
ProtectedgetRetrieves 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.
Protected AbstractgetLoad the list of conformance classes, which describe what kind of functionality the server provides.
Protected AbstractloadProtectedsanitizeSanitizes 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.
This class covers the common part of the OGC API standard described in https://docs.ogc.org/is/19-072/19-072.html. It contains shared methods between clients of different OGC API standards. Any OGC API (Maps, Records, Features, STAC...) shall extend this class.