[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 09:52:59 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):
This is due to the output coordinates being rounded off slightly in 3.0.
For example, in 2.9 there is a coordinate
{{{
-93.1687103416383 41.8543515079768
}}}
In 3.0 this is output as:
{{{
-93.168710342 41.854351508
}}}
This rounding is enough to cause the two polygons containing this point to
become adjacent and hence invalid.
Is there a different default precision set in 3.0 GeoJSON output?
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4908#comment:4>
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