Package org.locationtech.jts.linearref
package org.locationtech.jts.linearref
Contains classes and interfaces implementing linear referencing on linear geometries
Linear Referencing
Linear Referencing is a way of defining positions along linear geometries (LineStrings
and MultiLineStrings
).
It is used extensively in linear network systems.
There are numerous possible Linear Referencing Methods which
can be used to define positions along linear geometry.
This package supports two:
- Linear Location - a linear location is a triple
(component index, segment index, segment fraction)
which precisely specifies a point on a linear geometry. It allows for efficient mapping of the index value to actual coordinate values. - Length - the natural concept of using the length along
the geometry to specify a position.
Package Specification
- Java Topology Suite Technical Specifications
- OpenGIS Simple Features Specification for SQL
-
ClassesClassDescriptionExtracts the subline of a linear
Geometry
between twoLinearLocation
s on the line.Supports linear referencing along a linearGeometry
using the length along the line as the index.Computes the length index of the point on a linearGeometry
nearest a givenCoordinate
.Computes theLinearLocation
for a given length along a linearGeometry
.Builds a linear geometry (LineString
orMultiLineString
) incrementally (point-by-point).An iterator over the components and coordinates of a linear geometry (LineString
s andMultiLineString
s.Represents a location along aLineString
orMultiLineString
.Supports linear referencing along a linearGeometry
usingLinearLocation
s as the index.Determines the location of a subline along a linearGeometry
.