[geos-devel] [GEOS] #832: LinearLocation::isValid and LinearLocation::normalize, faulty comparisons

GEOS geos-trac at osgeo.org
Sat Apr 22 07:27:55 PDT 2017


#832: LinearLocation::isValid and LinearLocation::normalize, faulty comparisons
------------------------+--------------------------
 Reporter:  nila        |      Owner:  geos-devel@…
     Type:  defect      |     Status:  new
 Priority:  major       |  Milestone:
Component:  Default     |    Version:  svn-trunk
 Severity:  Unassigned  |   Keywords:
------------------------+--------------------------
 componentIndex and segmentIndex are declared as

 {{{
 unsigned int
 }}}

 in geos/linearref/LinearLocation.h:46-47, thus the comparisons, eg.

 {{{
 componentIndex < 0
 }}}

 made at linearref/LinearLocation.cpp:92, 98, 235 and 239 are always false.

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