-
-
Couldn't load subscription status.
- Fork 298
Add early support for JSON-FG #2136
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
base: master
Are you sure you want to change the base?
Add early support for JSON-FG #2136
Conversation
e88d476 to
2359c2e
Compare
|
How does this provider differ from a (generic) GDAL based formatter capable of formatting to any OGR data type? |
|
It is very close potentially, what are you imaging? |
| with gdal.OpenEx(json.dumps(data)) as srcDS: | ||
| tmpfile = f"/vsimem/{uuid.uuid1()}.json" | ||
| LOGGER.debug("Translate GeoJSON into a JSONFG memory file") | ||
| gdal.VectorTranslate(tmpfile, srcDS, format="JSONFG") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well once you read it into GDAL, any vector driver transform can occur. Wondering if would be possible to make any output format in the same spirit of the OGR provider - formatter config only barrier to add Shapefile, KML, etc. as an output format for pygeoapi GeoJSON.
Overview
This PR adds support to the most recent JSON-FG specification
0.3. It returns JSON-FG formatted payload with the following conformance classes:http://www.opengis.net/spec/json-fg-1/0.3/conf/corehttp://www.opengis.net/spec/json-fg-1/0.3/conf/types-schemasA new formatter has been added to the core for that scope and must rely on
GDAL>=3.12which supports0.3(not yet released as of today). As a consequence, this is a breaking change for our dependencies chain and cannot be merged untilrasteriowill support that version as well.This potentially might be relaxed after the merge of this branch https://github.com/geopython/pygeoapi/tree/formatters to have the formatter configurable at resource level and so the GDAL requirement needed only if it is configured.
Related Issue / discussion
Additional information
Dependency policy (RFC2)
Updates to public demo
Contributions and licensing
(as per https://github.com/geopython/pygeoapi/blob/master/CONTRIBUTING.md#contributions-and-licensing)