Package | Description |
---|---|
org.locationtech.jts.linearref |
Contains classes and interfaces implementing linear referencing on linear geometries
|
Modifier and Type | Method and Description |
---|---|
LinearLocation |
LocationIndexedLine.clampIndex(LinearLocation index)
Computes a valid index for this line
by clamping the given index to the valid range of index values
|
LinearLocation |
LinearLocation.copy()
Copies this location
|
LinearLocation |
LocationIndexedLine.getEndIndex()
Returns the index of the end of the line
|
static LinearLocation |
LinearLocation.getEndLocation(Geometry linear)
Gets a location which refers to the end of a linear
Geometry . |
LinearLocation |
LengthLocationMap.getLocation(double length)
Compute the
LinearLocation corresponding to a length. |
LinearLocation |
LengthLocationMap.getLocation(double length,
boolean resolveLower)
Compute the
LinearLocation corresponding to a length. |
static LinearLocation |
LengthLocationMap.getLocation(Geometry linearGeom,
double length)
Computes the
LinearLocation for a
given length along a linear Geometry . |
static LinearLocation |
LengthLocationMap.getLocation(Geometry linearGeom,
double length,
boolean resolveLower)
Computes the
LinearLocation for a
given length along a linear Geometry ,
with control over how the location
is resolved at component endpoints. |
private LinearLocation |
LengthLocationMap.getLocationForward(double length) |
LinearLocation |
LocationIndexedLine.getStartIndex()
Returns the index of the start of the line
|
LinearLocation |
LocationIndexedLine.indexOf(Coordinate pt)
Computes the index for a given point on the line.
|
LinearLocation |
LocationIndexOfPoint.indexOf(Coordinate inputPt)
Find the nearest location along a linear
Geometry to a given point. |
static LinearLocation |
LocationIndexOfPoint.indexOf(Geometry linearGeom,
Coordinate inputPt) |
LinearLocation |
LocationIndexedLine.indexOfAfter(Coordinate pt,
LinearLocation minIndex)
Finds the index for a point on the line
which is greater than the given index.
|
LinearLocation |
LocationIndexOfPoint.indexOfAfter(Coordinate inputPt,
LinearLocation minIndex)
Find the nearest
LinearLocation along the linear Geometry
to a given Coordinate
after the specified minimum LinearLocation . |
static LinearLocation |
LocationIndexOfPoint.indexOfAfter(Geometry linearGeom,
Coordinate inputPt,
LinearLocation minIndex) |
private LinearLocation |
LocationIndexOfPoint.indexOfFromStart(Coordinate inputPt,
LinearLocation minIndex) |
LinearLocation[] |
LocationIndexedLine.indicesOf(Geometry subLine)
Computes the indices for a subline of the line.
|
LinearLocation[] |
LocationIndexOfLine.indicesOf(Geometry subLine) |
static LinearLocation[] |
LocationIndexOfLine.indicesOf(Geometry linearGeom,
Geometry subLine)
MD - this algorithm has been extracted into a class
because it is intended to validate that the subline truly is a subline,
and also to use the internal vertex information to unambiguously locate the subline.
|
private LinearLocation |
LengthIndexedLine.locationOf(double index) |
private LinearLocation |
LengthIndexedLine.locationOf(double index,
boolean resolveLower) |
LinearLocation |
LocationIndexedLine.project(Coordinate pt)
Computes the index for the closest point on the line to the given point.
|
private LinearLocation |
LengthLocationMap.resolveHigher(LinearLocation loc) |
LinearLocation |
LinearLocation.toLowest(Geometry linearGeom)
Converts a linear location to the lowest equivalent location index.
|
Modifier and Type | Method and Description |
---|---|
LinearLocation |
LocationIndexedLine.clampIndex(LinearLocation index)
Computes a valid index for this line
by clamping the given index to the valid range of index values
|
private LineString |
ExtractLineByLocation.computeLine(LinearLocation start,
LinearLocation end)
Assumes input is valid (e.g.
|
private Geometry |
ExtractLineByLocation.computeLinear(LinearLocation start,
LinearLocation end)
Assumes input is valid (e.g.
|
static Geometry |
ExtractLineByLocation.extract(Geometry line,
LinearLocation start,
LinearLocation end)
Computes the subline of a
LineString between
two LinearLocation s on the line. |
Geometry |
ExtractLineByLocation.extract(LinearLocation start,
LinearLocation end)
Extracts a subline of the input.
|
Geometry |
LocationIndexedLine.extractLine(LinearLocation startIndex,
LinearLocation endIndex)
Computes the
LineString for the interval
on the line between the given indices. |
Coordinate |
LocationIndexedLine.extractPoint(LinearLocation index)
Computes the
Coordinate for the point
on the line at the given index. |
Coordinate |
LocationIndexedLine.extractPoint(LinearLocation index,
double offsetDistance)
Computes the
Coordinate 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 given
LinearLocation
on a linear Geometry . |
double |
LengthLocationMap.getLength(LinearLocation loc) |
LinearLocation |
LocationIndexedLine.indexOfAfter(Coordinate pt,
LinearLocation minIndex)
Finds the index for a point on the line
which is greater than the given index.
|
LinearLocation |
LocationIndexOfPoint.indexOfAfter(Coordinate inputPt,
LinearLocation minIndex)
Find the nearest
LinearLocation along the linear Geometry
to a given Coordinate
after the specified minimum LinearLocation . |
static LinearLocation |
LocationIndexOfPoint.indexOfAfter(Geometry linearGeom,
Coordinate inputPt,
LinearLocation minIndex) |
private LinearLocation |
LocationIndexOfPoint.indexOfFromStart(Coordinate inputPt,
LinearLocation minIndex) |
boolean |
LinearLocation.isOnSameSegment(LinearLocation loc)
Tests whether two locations
are on the same segment in the parent
Geometry . |
boolean |
LocationIndexedLine.isValidIndex(LinearLocation index)
Tests whether an index is in the valid index range for the line.
|
private LinearLocation |
LengthLocationMap.resolveHigher(LinearLocation loc) |
private static int |
LinearIterator.segmentEndVertexIndex(LinearLocation loc) |
Constructor and Description |
---|
LinearIterator(Geometry linear,
LinearLocation start)
Creates an iterator starting at
a
LinearLocation on a linear Geometry |
LinearLocation(LinearLocation loc)
Creates a new location equal to a given one.
|