[geos-devel] [GEOS] #1046: Unary union does not combine all parts

GEOS geos-trac at osgeo.org
Mon Nov 30 02:22:50 PST 2020


#1046: Unary union does not combine all parts
------------------------+---------------------------
 Reporter:  Mike Taves  |       Owner:  geos-devel@…
     Type:  defect      |      Status:  new
 Priority:  major       |   Milestone:
Component:  Default     |     Version:  master
 Severity:  Unassigned  |  Resolution:
 Keywords:              |
------------------------+---------------------------

Comment (by Mike Taves):

 Revisiting this with 3.9.0beta1
 {{{
 ls = [x for x in mls.geoms]
 u = ops.unary_union(ls)
 print(len(u))  # 246
 print(u.length) # 27.7963165274577
 print(u.is_valid)  # True
 print(u.is_simple)  # True
 }}}
 so it looks like the unary union with OverlayNG cleaned up several
 redundant line segments, and created a valid/simple output.

 See https://github.com/libgeos/geos/pull/358 to add this as a test.

-- 
Ticket URL: <https://trac.osgeo.org/geos/ticket/1046#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