LengthIndexedLine uses numeric lengths modelled as double values.
LocationIndexedLine uses LinearLocations which carry more information
(such as the index of the segment the location occurs in).
LinearLocations provide faster access to the segment containing a given
index.
The classes are different because the return values of some of the
methods are incompatible.
Sunburned Surveyor wrote:
The Javadoc for the LocationIndexedLine class contains this description:
Supports linear referencing along a linear Geometry using
LinearLocations as the index.
The Javadoc for the LengthIndexedLine class contains this description:
Supports linear referencing along a linear Geometry using the length
along the line as the index.
I am trying to figure out what makes these classes different. Does the
LocationIndexedLine allow you to index a LineString with some other
quantity than length?
Thanks for any info.
The Sunburned Surveyor
_______________________________________________
jts-devel mailing list
jts-devel@lists.jump-project.org
http://lists.refractions.net/mailman/listinfo/jts-devel
--
Martin Davis
Senior Technical Architect
Refractions Research, Inc.
(250) 383-3022
_______________________________________________
jts-devel mailing list
jts-devel@lists.jump-project.org
http://lists.refractions.net/mailman/listinfo/jts-devel