-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Output OGC API - Features #10536
Comments
For future reference TiPg is a python based project generating ogc features and ogc tiles rest apis via postgres schema inspection. |
And a rust crate with OGC API building blocks. |
@olmohake - thanks a lot for opening this issue with such details - it is an interesting idea that we can look to incorporate in the API engine in time to come but not on the priority as of now. Up next on the release schedule is support of auto-generated JSON API. Here is the technical RFC for that, please let know if any thoughts/comments. |
@rahulagarwal13 I totaly get that there are plenty of things you'll have to concetrate on first as they adress the needs of a wider user group. I had a look at the JSON API RFC and am looking forward to its implementation. I guess a lot of the work that needs to be done for the proposed ogc api endpoint will overlap with the implementation of a general JSON API. I will update and expand this proposal accordingly once the auto-generated JSON API has been released and you have settled on OpenDD configurations for it. |
Component
c/v3-engine
Is your proposal related to a problem?
A big subset of the models of our supergraph contains geodata. In order to enable an integration of our system into the wider ecoystem of ogc based applications such as (Web)GIS tools, we need to expose this subset as an OGC API - Features compliant rest api. With the wider adoption of ogc standards and tools, this is quite likely to become a common requierment for any organization working mainly or to a high degree with geodata.
Describe the solution you'd like
Extend the ddn-engine, metadata schema and hasura language server to enable the compilation of the geodata related subset of the supergraph to an OGC API compliant Features api. The following steps would be required to implement OGC API - Features Part 1 as a prototype.
metadata
presence of OGCConfig informs hasura language server that models might declatre ocg configurations.
endpoints
/ogc/conformance
Response should be directly dervied from Hasura OGC Implementation
/ogc/collections
Should be derived from models declaring an ogc features configuration, user permissions and type definitions (description)
ogc/collections/{collectionId}
Same as above but returning only one collection
/ogc/collections/{collectionId}/items
Should be derived from model, relationships and user permissions. Properties must only include fields and relations user is allowed to access.
/ogc/collections/{collectionId}/items/{featureId}
same as above but returns a single feature
Describe alternatives you've considered
1) pg_featureserv
We could run pg_featureservor GeoServer next to hasura to publish our geodata via an ogc compliant rest api. However this approach has two major drawbacks: we have to maintain an additional application and even worse configure auth rules in to systems and keep them in sync.
2) custom solution on top of hasura
We could build a custom ogc api features server wich maps requests to hasura graphql or openapi. This would allow us to reuse the auth rules defined for hasura, however we would have to maintain an additional application amd even worse keep the data models in sync.
The text was updated successfully, but these errors were encountered: