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

GEOS geos-trac at osgeo.org
Mon Oct 5 04:55:01 PDT 2020


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

Comment (by strk):

 Reading the WKT from a file allows me to run the test, but the result of
 the test is a MULTILINESTRING EMPTY, dunno why:
 {{{
       FileInputStream fstream = new FileInputStream("/tmp/x");
       BufferedReader br = new BufferedReader(new
 InputStreamReader(fstream));
       String wkt1 = br.readLine();
       String wkt2 = br.readLine();
       String expected = "POINT EMPTY"; /* known to NOT be what we really
 want */
       double tol = 1.79499E-6;
       System.err.println("Using WKT1: " + wkt1);
       System.err.println("Using WKT2: " + wkt2);
       System.err.println("Using tolerance: " + tol);
       checkRounding(wkt1, wkt2, tol, expected);
 }}}

 Which results in:
 {{{
 FAIL - Expected = POINT EMPTY actual = MULTILINESTRING EMPTY
 F
 Time: 0.095
 There was 1 failure:
 1)
 testOverlappingLinesWithNearVertex(org.locationtech.jts.noding.snap.SnappingNoderTest)junit.framework.AssertionFailedError
         at test.jts.GeometryTestCase.checkEqual(GeometryTestCase.java:61)
         at
 org.locationtech.jts.noding.snap.SnappingNoderTest.checkRounding(SnappingNoderTest.java:53)
         at
 org.locationtech.jts.noding.snap.SnappingNoderTest.testOverlappingLinesWithNearVertex(SnappingNoderTest.java:31)
         at
 java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
 Method)
         at
 java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
         at
 java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at
 org.locationtech.jts.noding.snap.SnappingNoderTest.main(SnappingNoderTest.java:14)

 FAILURES!!!
 Tests run: 1,  Failures: 1,  Errors: 0
 }}}

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