[geos-devel] [Fwd: [jts-devel] Strange comparison in
mateusz at loskot.net
Wed Dec 5 07:28:15 EST 2007
Perhaps some of us have been wondering if this bug applies to GEOS too.
I can confirm it does not. The linearref subpackage of JTS has not been
ported to GEOS yet.
-------- Original Message --------
Date: Tue, 4 Dec 2007 14:21:08 -0800
From: CodeKaizen <codekaizen at gmail.com>
To: jts-devel at lists.jump-project.org
Subject: [jts-devel] Strange comparison in LinearLocation.java
I've come across a comparison I'm having trouble understanding, and
hope someone can look at it with me.
In src/com/vividsolutions/jts/linearref/LinearLocation.java, on lines
267 and 269, the field 'segmentIndex' is compared to a LineString
instance's getNumGeometries() result. As far as I can tell,
'segmentIndex' represents the vertex in the LineString which starts
the segment which the LinearLocation is bound to, and so this should
be getCoordinateN() instead of getNumGeometries().
Am I missing something?
jts-devel mailing list
jts-devel at lists.jump-project.org
More information about the geos-devel