Uses of Class
org.locationtech.jts.linearref.LinearLocation
Packages that use LinearLocation
Package
Description
Contains classes and interfaces implementing linear referencing on linear geometries
-
Uses of LinearLocation in org.locationtech.jts.linearref
Methods in org.locationtech.jts.linearref that return LinearLocationModifier and TypeMethodDescriptionLocationIndexedLine.clampIndex
(LinearLocation index) Computes a valid index for this line by clamping the given index to the valid range of index valuesLinearLocation.copy()
Copies this locationLocationIndexedLine.getEndIndex()
Returns the index of the end of the linestatic LinearLocation
LinearLocation.getEndLocation
(Geometry linear) Gets a location which refers to the end of a linearGeometry
.LengthLocationMap.getLocation
(double length) Compute theLinearLocation
corresponding to a length.LengthLocationMap.getLocation
(double length, boolean resolveLower) Compute theLinearLocation
corresponding to a length.static LinearLocation
LengthLocationMap.getLocation
(Geometry linearGeom, double length) Computes theLinearLocation
for a given length along a linearGeometry
.static LinearLocation
LengthLocationMap.getLocation
(Geometry linearGeom, double length, boolean resolveLower) Computes theLinearLocation
for a given length along a linearGeometry
, with control over how the location is resolved at component endpoints.LocationIndexedLine.getStartIndex()
Returns the index of the start of the lineLocationIndexedLine.indexOf
(Coordinate pt) Computes the index for a given point on the line.LocationIndexedLine.indexOfAfter
(Coordinate pt, LinearLocation minIndex) Finds the index for a point on the line which is greater than the given index.Computes the indices for a subline of the line.LocationIndexedLine.project
(Coordinate pt) Computes the index for the closest point on the line to the given point.Converts a linear location to the lowest equivalent location index.Methods in org.locationtech.jts.linearref with parameters of type LinearLocationModifier and TypeMethodDescriptionLocationIndexedLine.clampIndex
(LinearLocation index) Computes a valid index for this line by clamping the given index to the valid range of index valuesLocationIndexedLine.extractLine
(LinearLocation startIndex, LinearLocation endIndex) Computes theLineString
for the interval on the line between the given indices.LocationIndexedLine.extractPoint
(LinearLocation index) Computes theCoordinate
for the point on the line at the given index.LocationIndexedLine.extractPoint
(LinearLocation index, double offsetDistance) Computes theCoordinate
for the point on the line at the given index, offset by the given distance.static double
LengthLocationMap.getLength
(Geometry linearGeom, LinearLocation loc) Computes the length for a givenLinearLocation
on a linearGeometry
.double
LengthLocationMap.getLength
(LinearLocation loc) LocationIndexedLine.indexOfAfter
(Coordinate pt, LinearLocation minIndex) Finds the index for a point on the line which is greater than the given index.boolean
LinearLocation.isOnSameSegment
(LinearLocation loc) Tests whether two locations are on the same segment in the parentGeometry
.boolean
LocationIndexedLine.isValidIndex
(LinearLocation index) Tests whether an index is in the valid index range for the line.Constructors in org.locationtech.jts.linearref with parameters of type LinearLocationModifierConstructorDescriptionLinearIterator
(Geometry linear, LinearLocation start) Creates an iterator starting at aLinearLocation
on a linearGeometry
Creates a new location equal to a given one.