[geos-devel] [GEOS] #1071: Setting lower precision of polygon always collapses polygon

GEOS geos-trac at osgeo.org
Mon Nov 23 16:39:37 PST 2020


#1071: Setting lower precision of polygon always collapses polygon
--------------------------+---------------------------
 Reporter:  Brendan Ward  |       Owner:  geos-devel@…
     Type:  defect        |      Status:  new
 Priority:  major         |   Milestone:
Component:  Default       |     Version:  3.5.1
 Severity:  Unassigned    |  Resolution:
 Keywords:                |
--------------------------+---------------------------

Comment (by Brendan Ward):

 It might be useful to clarify the intent of the flag to keep collapsed
 elements; it is not clear what collapsed elements should be retained,
 since their collapse implies that they are no longer toplogically valid.

 Decisions here also affect line strings as well.  Given an input of
 "LINESTRING (0 0, 0.1 0.1)" and gridSize of 1, with this flag set, it
 returns "LINESTRING (0 0, 0 0)", which is not valid (according to
 GEOSisValid_r).

 (have not tested on 3.9 / master)

-- 
Ticket URL: <https://trac.osgeo.org/geos/ticket/1071#comment:2>
GEOS <http://trac.osgeo.org/geos>
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS).


More information about the geos-devel mailing list