CSIRO-enviro-informatics / AusPIX_DGGS_API

Web API for the AusPIX_DGGS
1 stars 0 forks source link

Bug in cell_ids returned from /search/find_dggs_by_geojson #35

Closed jyucsiro closed 4 years ago

jyucsiro commented 4 years ago

/search/find_dggs_by_geojson endpoint returns cell_ids, but all the cells have the same ID. A bug perhaps?

To reproduce the error:

curl -X POST "https://dggs.loci.cat/api/search/find_dggs_by_geojson?resolution=7&dggs_as_polygon=True&keep_properties=True" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"type\": \"FeatureCollection\", \"features\": [ { \"type\": \"Feature\", \"properties\": {}, \"geometry\": { \"type\": \"Polygon\", \"coordinates\": [ [ [ 149.02233123779297, -35.294111494793285 ], [ 149.14112091064453, -35.294111494793285 ], [ 149.14112091064453, -35.21252670530204 ], [ 149.02233123779297, -35.21252670530204 ], [ 149.02233123779297, -35.294111494793285 ] ] ] } } ] }"
jyucsiro commented 4 years ago

Fixed in #37