-
Notifications
You must be signed in to change notification settings - Fork 34
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
getfeatureinfo json result not following geojson schema #892
Comments
That's a really good question. It's not GeoJSON and I don't know if the standard says what the schema should be. It would obviously be trivial to make it GeoJSON, but we should prioritise aligning with the standard. Another option is having another |
The standard says very little:
i.e. any valid json document pertaining to "the feature(s) nearest to (I, J)" is compliant. (Given that we serve raster, non feature-based data, the interpretation of this part of the standard is even hazier.) Current implementation reflects the behaviour of GSKY and changing risks breaking Terria integrations. I'll have a think and discuss with the Terria team, but nothing is likely to change in the short term. |
|
Very similar syntax to OWS, except OWS is much more verbose/informative and uses lat/lon coordinates. |
So GeoJSON compatibility would just require a geometry section on the end right? (A point would be the easiest). |
It'll require a And for what it's worth, GSKY returning |
Luckily GSKY is dead and buried now and we no longer need be constrained by it. |
geojson featurecollection schema is available here: https://geojson.org/schema/FeatureCollection.json
output from integration test
https://www.jsonschemavalidator.net/ returns check failed, whereas example from https://docs.geoserver.org/stable/en/user/tutorials/GetFeatureInfo/geojson.html passes schema validation
The text was updated successfully, but these errors were encountered: