[postgis-tickets] [PostGIS] #3341: Serious rounding issues

PostGIS trac at osgeo.org
Tue Oct 20 05:51:29 PDT 2015


#3341: Serious rounding issues
-------------------------+---------------------
 Reporter:  postgispaul  |      Owner:  pramsey
     Type:  defect       |     Status:  new
 Priority:  medium       |  Milestone:
Component:  postgis      |    Version:  2.2.x
 Keywords:               |
-------------------------+---------------------
 I have 3 polygons (in 4326 projection), and when I calculate st_difference
 on those, there appears to be great rounding-issues.

 Query which results in erroneous polygon:
 select st_difference(t1.geom,st_collect(t2.geom))
 from error as t1
 join error t2 on true
 where t1.id=1 and t2.id in (600,1351)
 group by t1.geom

 Screenshot is in attachment.
 Green filled polygon is the result of said query, black outlines are the
 contours of the polygons in the table.

 Table should be filled with the contents of polygons.txt from attachment


 Versions:
 "POSTGIS="2.2.0 r14208" GEOS="3.5.0-CAPI-1.9.0 r4090" PROJ="Rel. 4.9.1, 04
 March 2015" GDAL="GDAL 2.0.1, released 2015/09/15 GDAL_DATA not found"
 LIBXML="2.7.8" LIBJSON="0.12" TOPOLOGY RASTER"
 "PostgreSQL 9.4.1, compiled by Visual C++ build 1800, 64-bit"

--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/3341>
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