Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Support OGC API - Features #12456

Open
jjspace opened this issue Jan 29, 2025 · 0 comments
Open

Support OGC API - Features #12456

jjspace opened this issue Jan 29, 2025 · 0 comments

Comments

@jjspace
Copy link
Contributor

jjspace commented Jan 29, 2025

The Spec

This issue is to track adding full support for the OGC API - Features spec as well as any discussion around the process.

The spec currently includes 5 parts with parts 4 and 5 currently under draft. The initial plan will be to support Part 1: Core with others as follow up tasks. I currently do not expect us to support Part 2 which adds CRSs which Cesium already does not do much work with.

Format/Encoding

The spec does not mandate any specific encoding or format but strongly favors HTML and GeoJSON with additional suggestions for GML. We will focus the initial implementation only around GeoJSON (especially since we already support it) with other formats being optional secondary efforts in the future as requested.

Side note: the API does not dictate a specific way to designate what format to serve. I believe most servers will implement this with the content type in headers but another suggestion from the Spec is to use a f=[format] query parameter which I've observed utilized in other libraries and servers so my current assumption is this is one of the more generally accepted methods.

Other implementations

Just listing off some other implementations I've found. Mainly from this list

  • ogcapi-js - lightweight and focused on the Features API
    • Works well but I don't see any way to control authentication beyond adjusting query params for every request. May not work with header auth?
  • ogc-client - supports multiple OGC specs
    • Similar auth concerns. Allows setting global fetch options for the whole client which could make it hard to use multiple sources
    • The API seems more focused on exploring a service completely and may not fit our needs and use case as closely
    • Only works in browser as it relies on window internally

Example data

Just an assortment of data sources from servers that we know support the OGC Features API and we can use for testing during implementation

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant