CSIRO-enviro-informatics / AusPIX_DGGS_API

Web API for the AusPIX_DGGS
1 stars 0 forks source link

Find DGGS for a point #1

Closed jyucsiro closed 4 years ago

jyucsiro commented 4 years ago

Implement a flask endpoint in https://github.com/CSIRO-enviro-informatics/AusPIX_DGGS_API to evaluate DGGS cell id from point/latlng.

Input:

Output:

Use the following as a starting point: https://github.com/GeoscienceAustralia/AusPIX_DGGS/blob/master/auspixdggs/callablemodules/point_DGGSvalue.py

jyucsiro commented 4 years ago

If CRS is something other than wgs84, then need to convert it to wgs84.

jyucsiro commented 4 years ago

Output - should it be just cell id? or other properties that might be available.

For now, return cell id. work on a different API endpoint for other info.

jyucsiro commented 4 years ago

Add a crs parameter. Propose converting input convert to wgs84 (also known as epsg:4326) using a python package called pyproj - see https://gis.stackexchange.com/questions/78838/converting-projected-coordinates-to-lat-lon-using-python to interface with the DGGS engine (currently expects wgs84 coordinates).