[geos-devel] [GEOS] #1051: overlayng::EdgeMerger::merge(): Assertion `baseEdge->size() == edge->size()' failed.

GEOS geos-trac at osgeo.org
Mon Sep 28 12:45:01 PDT 2020


#1051: overlayng::EdgeMerger::merge(): Assertion `baseEdge->size() ==
edge->size()' failed.
------------------------+---------------------------
 Reporter:  strk        |       Owner:  geos-devel@…
     Type:  defect      |      Status:  new
 Priority:  blocker     |   Milestone:  3.9.0
Component:  Default     |     Version:  master
 Severity:  Unassigned  |  Resolution:
 Keywords:              |
------------------------+---------------------------

Comment (by strk):

 The TopologyException trick works, without getting to Snap-Rounding but
 simply using a bigger snap tolerance:
 {{{
 loating point overlay FAILURE: TopologyException: found non-noded
 intersection between LINESTRING (655065 1.79482e+06, 655065 1.79482e+06)
 and LINESTRING (655065 1.79482e+06, 655065 1.79482e+06) at
 655065.0840699079 1794820.6249905184
 Trying overlaySnapping(tol 1.79499e-06).
 overlaySnapping(tol 1.79499e-06) FAILURE: TopologyException: Merge of
 edges of different sizes - probable noding error.
 overlaySnapBoth(tol 1.79499e-06) FAILURE: TopologyException: Merge of
 edges of different sizes - probable noding error.
 Trying overlaySnapping(tol 1.79499e-05).
 Floating point overlay FAILURE: TopologyException: found non-noded
 intersection between LINESTRING (655065 1.79482e+06, 655065 1.79482e+06)
 and LINESTRING (655065 1.79482e+06, 655065 1.79482e+06) at
 655065.0840699079 1794820.6249905184
 Trying overlaySnapping(tol 1.79499e-06).
 overlaySnapping(tol 1.79499e-06) FAILURE: TopologyException: Merge of
 edges of different sizes - probable noding error.
 overlaySnapBoth(tol 1.79499e-06) FAILURE: TopologyException: Merge of
 edges of different sizes - probable noding error.
 Trying overlaySnapping(tol 1.79499e-05).
 Floating point overlay FAILURE: TopologyException: found non-noded
 intersection between LINESTRING (655065 1.79482e+06, 655065 1.79482e+06)
 and LINESTRING (655065 1.79482e+06, 655065 1.79482e+06) at
 655065.0840699079 1794820.6249905184
 Trying overlaySnapping(tol 1.79499e-06).
 overlaySnapping(tol 1.79499e-06) FAILURE: TopologyException: Merge of
 edges of different sizes - probable noding error.
 overlaySnapBoth(tol 1.79499e-06) FAILURE: TopologyException: Merge of
 edges of different sizes - probable noding error.
 Trying overlaySnapping(tol 1.79499e-05).
 Floating point overlay FAILURE: TopologyException: found non-noded
 intersection between LINESTRING (655065 1.79482e+06, 655065 1.79482e+06)
 and LINESTRING (655065 1.79482e+06, 655065 1.79482e+06) at
 655065.0840699079 1794820.6249905184
 Trying overlaySnapping(tol 1.79499e-06).
 overlaySnapping(tol 1.79499e-06) FAILURE: TopologyException: Merge of
 edges of different sizes - probable noding error.
 overlaySnapBoth(tol 1.79499e-06) FAILURE: TopologyException: Merge of
 edges of different sizes - probable noding error.
 Trying overlaySnapping(tol 1.79499e-05).
 Floating point overlay FAILURE: TopologyException: found non-noded
 intersection between LINESTRING (655065 1.79482e+06, 655065 1.79482e+06)
 and LINESTRING (655065 1.79482e+06, 655065 1.79482e+06) at
 655065.0840699079 1794820.6249905184
 Trying overlaySnapping(tol 1.79499e-06).
 overlaySnapping(tol 1.79499e-06) FAILURE: TopologyException: Merge of
 edges of different sizes - probable noding error.
 overlaySnapBoth(tol 1.79499e-06) FAILURE: TopologyException: Merge of
 edges of different sizes - probable noding error.
 Trying overlaySnapping(tol 1.79499e-05).
 ../../tests/xmltester/tests/robust/overlay/TestOverlayNG-geos-1051.xml:
 case1: test1: overlayareatest(A, B): ok. (0 ms)
 }}}

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