[geos-devel] [GEOS] #960: Exception when creating geometry buffer

GEOS geos-trac at osgeo.org
Wed Mar 27 10:04:15 PDT 2019

#960: Exception when creating geometry buffer
 Reporter:  allenkim0129               |       Owner:  geos-devel@…
     Type:  defect                     |      Status:  new
 Priority:  blocker                    |   Milestone:
Component:  Default                    |     Version:  3.6.2
 Severity:  Unassigned                 |  Resolution:
 Keywords:  Buffer, TopologyException  |

Comment (by allenkim0129):

 I have attached my test main.cpp and CMakeList.txt

 So far, what I have discovered is that the error is thrown from
 DirectedEdge::setDepth() function.

 DirectedEdge::setDepth(int position, int newDepth)
         if (depth[position]!=-999) {
                 if (depth[position]!=newDepth)
                         throw util::TopologyException("assigned depths do
 not match", getCoordinate());
                         //Assert.isTrue(depth[position] == depthVal,
 "assigned depths do not match at " + getCoordinate());

 depth[position] is 2, but
 newDepth is 3

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