[postgis-tickets] [PostGIS] #4755: ST_Transform of valid polygon can produce invalid polygon
PostGIS
trac at osgeo.org
Sun Sep 20 08:33:57 PDT 2020
#4755: ST_Transform of valid polygon can produce invalid polygon
----------------------+---------------------------
Reporter: rouen | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 3.1.0
Component: postgis | Version: 3.0.x
Resolution: | Keywords: ST_Transform
----------------------+---------------------------
Comment (by mdavis):
This is because there is a very narrow "gore" in the polygon, and due to
rounding effects the transformation perturbs the coordinates forming the
gore just enough to introduce a self-intersection.
One way to remove the self-intersection is to round the geometry to a
lower precision. `ST_SnapToGrid(transform_geom, 0.0000001)` makes the
geometry valid in this case.
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4755#comment:1>
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