Skip to content
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

GeoJSON vs WKT for the footprint geometry #10

Open
cholmes opened this issue Jun 15, 2017 · 1 comment
Open

GeoJSON vs WKT for the footprint geometry #10

cholmes opened this issue Jun 15, 2017 · 1 comment

Comments

@cholmes
Copy link
Contributor

cholmes commented Jun 15, 2017

In the JSON spec we use WKT for the geometry of the footprint. This is the most compact representation, and works decently well. But it requires a parser to understand WKT.

Another option would be to use geojson geometry, or even make the whole metadata representation be a geojson. DG uses WKT, Urthecast uses a GeoJSON geometry (but not a geojson document), and Planet makes it all geojson. Making it all geojson would mean sticking all the values that aren't 'geometry' or 'id' under 'properties' if we want them to be parsed.

The benefit would be easy visualization in like geojson.io, and a bit easier for parsers. The downside would be a bit more complexity and it would not be quite as intuitive to non-geospatial developers.

@matthewhanson
Copy link
Collaborator

GeoJSON is certainly attractive here, at least for the geojson geometry. However, as discussed in #7 if the geometries are not given in 4326 then we'd be using non-comforming GeoJSON and that's certainly not desirable. On the other hand, perhaps BBOX could be given a GeoJSON geometry, while the more precise footprint geometry stays as WKT in order to support potential non 4326 CRS'.

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

No branches or pull requests

2 participants