[postgis-tickets] [PostGIS] #4908: ST_AsGeoJSON in POSTGIS-2.5 different than ST_AsGeoJSON in POSTGIS-3.0
PostGIS
trac at osgeo.org
Thu May 6 10:03:43 PDT 2021
#4908: ST_AsGeoJSON in POSTGIS-2.5 different than ST_AsGeoJSON in POSTGIS-3.0
---------------------------+---------------------------
Reporter: maheshpusala | Owner: pramsey
Type: defect | Status: new
Priority: high | Milestone: PostGIS 3.1.2
Component: postgis | Version: 2.5.x
Resolution: | Keywords:
---------------------------+---------------------------
Comment (by mdavis):
Actually it might be that with the improvements to floating-point output
in 3.0 the `ST_AsGeoJSON` default for precision (9 decimal digits) is now
working (whereas before it was just outputting full precision).
This is effectively a regression. Also, it shows how having an output
precision less than "full" can cause unexpected loss of data. Most other
text output functions use precision=15 as their default. We should
consider changing `ST_AsGeoJSON` to use this valud as well.
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4908#comment:5>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-tickets
mailing list