Uses of Class
org.locationtech.jts.linearref.LinearLocation
-
Packages that use LinearLocation Package Description org.locationtech.jts.linearref 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 LinearLocation Modifier and Type Method Description LinearLocationLocationIndexedLine. clampIndex(LinearLocation index)Computes a valid index for this line by clamping the given index to the valid range of index valuesLinearLocationLinearLocation. copy()Copies this locationLinearLocationLocationIndexedLine. getEndIndex()Returns the index of the end of the linestatic LinearLocationLinearLocation. getEndLocation(Geometry linear)Gets a location which refers to the end of a linearGeometry.LinearLocationLengthLocationMap. getLocation(double length)Compute theLinearLocationcorresponding to a length.LinearLocationLengthLocationMap. getLocation(double length, boolean resolveLower)Compute theLinearLocationcorresponding to a length.static LinearLocationLengthLocationMap. getLocation(Geometry linearGeom, double length)Computes theLinearLocationfor a given length along a linearGeometry.static LinearLocationLengthLocationMap. getLocation(Geometry linearGeom, double length, boolean resolveLower)Computes theLinearLocationfor a given length along a linearGeometry, with control over how the location is resolved at component endpoints.private LinearLocationLengthLocationMap. getLocationForward(double length)LinearLocationLocationIndexedLine. getStartIndex()Returns the index of the start of the lineLinearLocationLocationIndexedLine. indexOf(Coordinate pt)Computes the index for a given point on the line.LinearLocationLocationIndexOfPoint. indexOf(Coordinate inputPt)Find the nearest location along a linearGeometryto a given point.static LinearLocationLocationIndexOfPoint. indexOf(Geometry linearGeom, Coordinate inputPt)LinearLocationLocationIndexedLine. indexOfAfter(Coordinate pt, LinearLocation minIndex)Finds the index for a point on the line which is greater than the given index.LinearLocationLocationIndexOfPoint. indexOfAfter(Coordinate inputPt, LinearLocation minIndex)Find the nearestLinearLocationalong the linearGeometryto a givenCoordinateafter the specified minimumLinearLocation.static LinearLocationLocationIndexOfPoint. indexOfAfter(Geometry linearGeom, Coordinate inputPt, LinearLocation minIndex)private LinearLocationLocationIndexOfPoint. 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 LinearLocationLengthIndexedLine. locationOf(double index)private LinearLocationLengthIndexedLine. locationOf(double index, boolean resolveLower)LinearLocationLocationIndexedLine. project(Coordinate pt)Computes the index for the closest point on the line to the given point.private LinearLocationLengthLocationMap. resolveHigher(LinearLocation loc)LinearLocationLinearLocation. toLowest(Geometry linearGeom)Converts a linear location to the lowest equivalent location index.Methods in org.locationtech.jts.linearref with parameters of type LinearLocation Modifier and Type Method Description LinearLocationLocationIndexedLine. clampIndex(LinearLocation index)Computes a valid index for this line by clamping the given index to the valid range of index valuesprivate LineStringExtractLineByLocation. computeLine(LinearLocation start, LinearLocation end)Assumes input is valid (e.g.private GeometryExtractLineByLocation. computeLinear(LinearLocation start, LinearLocation end)Assumes input is valid (e.g.static GeometryExtractLineByLocation. extract(Geometry line, LinearLocation start, LinearLocation end)Computes the subline of aLineStringbetween twoLinearLocations on the line.GeometryExtractLineByLocation. extract(LinearLocation start, LinearLocation end)Extracts a subline of the input.GeometryLocationIndexedLine. extractLine(LinearLocation startIndex, LinearLocation endIndex)Computes theLineStringfor the interval on the line between the given indices.CoordinateLocationIndexedLine. extractPoint(LinearLocation index)Computes theCoordinatefor the point on the line at the given index.CoordinateLocationIndexedLine. extractPoint(LinearLocation index, double offsetDistance)Computes theCoordinatefor the point on the line at the given index, offset by the given distance.static doubleLengthLocationMap. getLength(Geometry linearGeom, LinearLocation loc)Computes the length for a givenLinearLocationon a linearGeometry.doubleLengthLocationMap. getLength(LinearLocation loc)LinearLocationLocationIndexedLine. indexOfAfter(Coordinate pt, LinearLocation minIndex)Finds the index for a point on the line which is greater than the given index.LinearLocationLocationIndexOfPoint. indexOfAfter(Coordinate inputPt, LinearLocation minIndex)Find the nearestLinearLocationalong the linearGeometryto a givenCoordinateafter the specified minimumLinearLocation.static LinearLocationLocationIndexOfPoint. indexOfAfter(Geometry linearGeom, Coordinate inputPt, LinearLocation minIndex)private LinearLocationLocationIndexOfPoint. indexOfFromStart(Coordinate inputPt, LinearLocation minIndex)booleanLinearLocation. isOnSameSegment(LinearLocation loc)Tests whether two locations are on the same segment in the parentGeometry.booleanLocationIndexedLine. isValidIndex(LinearLocation index)Tests whether an index is in the valid index range for the line.private LinearLocationLengthLocationMap. resolveHigher(LinearLocation loc)private static intLinearIterator. segmentEndVertexIndex(LinearLocation loc)Constructors in org.locationtech.jts.linearref with parameters of type LinearLocation Constructor Description LinearIterator(Geometry linear, LinearLocation start)Creates an iterator starting at aLinearLocationon a linearGeometryLinearLocation(LinearLocation loc)Creates a new location equal to a given one.
-