Closed jyucsiro closed 4 years ago
If CRS is something other than wgs84, then need to convert it to wgs84.
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.
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).
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