[geos-devel] [Fwd: [jts-devel] Strange comparison in
LinearLocation.java]
Mateusz Loskot
mateusz at loskot.net
Wed Dec 5 07:28:15 EST 2007
Folks,
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.
Cheers
Mateusz
-------- 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
Hi,
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?
thanks,
codekaizen
_______________________________________________
jts-devel mailing list
jts-devel at lists.jump-project.org
http://lists.refractions.net/mailman/listinfo/jts-devel
--
Mateusz Loskot
http://mateusz.loskot.net
More information about the geos-devel
mailing list