Element84 / cmr-stac-api-proxy

Other
5 stars 4 forks source link

bbox coordinates in wrong order #30

Open matthewhanson opened 4 years ago

matthewhanson commented 4 years ago

The GeoJSON spec calls for the bounding box to be [minlon, minlat, [minz], maxlon, maxlat, [maxz], which is [west, south, east, north] rather than [west, north, east, south].

Related, WHOLE_WORLD_BBOX should be [-180, -90, 180, 90]

matthewhanson commented 4 years ago

I should add the code I'm referring to is here: https://github.com/Element84/cmr-stac-api-proxy/blob/master/search/lib/convert/bounding-box.js

But I do notice that bbox is not part of the returned Item, it should be added. https://cmr-stac-api.dev.element84.com/stac/catalog/items/G1018763843-LPDAAC_ECS