[postgis-tickets] [PostGIS] #4725: ST_MakeValid causes drastic loss of precision
PostGIS
trac at osgeo.org
Thu Nov 5 09:15:18 PST 2020
#4725: ST_MakeValid causes drastic loss of precision
----------------------+--------------------------
Reporter: atlight | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone: PostGIS GEOS
Component: postgis | Version: 3.0.x
Resolution: | Keywords:
----------------------+--------------------------
Changes (by pramsey):
* milestone: PostGIS 3.1.0 => PostGIS GEOS
Comment:
As expected, this is a result of GEOS precision reduction routines in the
old overlay engine trying to back off from repeated topology failures
during overlay. And as hoped, the new overlay engine does not display the
same behaviour. A valid output is generated, and the precision is
basically the same.
{{{
postgis31=# select st_xmin(ST_MakeValid(geom)) FROM a;
st_xmin
-------------------
144.9632208323141
(1 row)
postgis31=# select st_xmin(geom) FROM a;
st_xmin
-------------------
144.9632208323141
(1 row)
}}}
The solution will be to upgrade to GEOS 3.9 when it is released.
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4725#comment:2>
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