AgroDataCube / api-v1

AgroDataCube API service Version 1 - A newer version is in use now.
1 stars 0 forks source link

Geometries use too many digits, beyond actual coordinate accuracy #3

Closed robknapen closed 6 years ago

robknapen commented 6 years ago

Geometry coordinates in a request response are represented with digits beyond the actual accuracy. E.g. in RD coordinates:

"type": "MultiPolygon",
"coordinates": [[[
  [ 178640.6094, 450410.781199999],
  [ 178634.4844, 450410.281199999],

Better to limit them to the real known precision.

yke commented 6 years ago

This is how they are received from Postgis. We can see waht we can do but seems a low priority issue.

robknapen commented 6 years ago

Perhaps set the number digits for the output in the st_asgeojson function?

https://postgis.net/docs/ST_AsGeoJSON.html

yke commented 6 years ago

Add nr of decimals to st_asgeojson fixed it.