Class LengthIndexOfPoint
Inherited Members
Namespace: NetTopologySuite.LinearReferencing
Assembly: NetTopologySuite.dll
Syntax
public class LengthIndexOfPoint
Constructors
| Edit this page View SourceLengthIndexOfPoint(Geometry)
Initializes a new instance of the LengthIndexOfPoint class.
Declaration
public LengthIndexOfPoint(Geometry linearGeom)
Parameters
Type | Name | Description |
---|---|---|
Geometry | linearGeom | A linear geometry. |
Methods
| Edit this page View SourceIndexOf(Coordinate)
Find the nearest location along a linear Geometry to a given point.
Declaration
public double IndexOf(Coordinate inputPt)
Parameters
Type | Name | Description |
---|---|---|
Coordinate | inputPt | The coordinate to locate. |
Returns
Type | Description |
---|---|
double | The location of the nearest point. |
IndexOf(Geometry, Coordinate)
Declaration
public static double IndexOf(Geometry linearGeom, Coordinate inputPt)
Parameters
Type | Name | Description |
---|---|---|
Geometry | linearGeom | |
Coordinate | inputPt |
Returns
Type | Description |
---|---|
double |
IndexOfAfter(Coordinate, double)
Finds the nearest index along the linear Geometry
to a given Coordinate after the specified minimum index.
If possible the location returned will be strictly
greater than the minIndex
.
If this is not possible, the value returned
will equal minIndex
.
(An example where this is not possible is when
minIndex
= [end of line] ).
Declaration
public double IndexOfAfter(Coordinate inputPt, double minIndex)
Parameters
Type | Name | Description |
---|---|---|
Coordinate | inputPt | The coordinate to locate. |
double | minIndex | The minimum location for the point location. |
Returns
Type | Description |
---|---|
double | The location of the nearest point. |
IndexOfAfter(Geometry, Coordinate, double)
Declaration
public static double IndexOfAfter(Geometry linearGeom, Coordinate inputPt, double minIndex)
Parameters
Type | Name | Description |
---|---|---|
Geometry | linearGeom | |
Coordinate | inputPt | |
double | minIndex |
Returns
Type | Description |
---|---|
double |