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

GEOS geos-trac at osgeo.org
Mon Oct 5 09:29:52 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 mdavis):

 This is what the
 [https://github.com/locationtech/jts/blob/master/doc/JTSOp.md jtsop
 utility] is for.  You can put WKT or WKB in files, and run any function
 that is provided in the TestBuilder (which is many), or else run your own
 (by add a class file containing static methods).

 So if you have the following files:
 {{{
 snapping-test-a.wkt:
 LINESTRING (100 200, 200 100.1, 300 100)

 snapping-test-b.wkt:
 LINESTRING (100 200, 200 100.1, 300 100)
 }}}

 the SnappingNoder can be run using:
 {{{
 <JTS_HOME>/bin/jtsop.sh -a snapping-test-a.wkt -b snapping-test-b.wkt -f
 wkt Noding.snappingNoder 1
 }}}

 (Note that the Noding.snappingNoder function actually allows a null second
 input, but at the moment the jtsop command doesn't recognize this).

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