Class ExtractLineByLocation
Extracts the subline of a linear Geometry between two LinearLocations on the line.
Inherited Members
Namespace: NetTopologySuite.LinearReferencing
Assembly: NetTopologySuite.dll
Syntax
public class ExtractLineByLocation
Constructors
| Edit this page View SourceExtractLineByLocation(Geometry)
Initializes a new instance of the ExtractLineByLocation class.
Declaration
public ExtractLineByLocation(Geometry line)
Parameters
Type | Name | Description |
---|---|---|
Geometry | line |
Methods
| Edit this page View SourceExtract(Geometry, LinearLocation, LinearLocation)
Computes the subline of a LineString between two LinearLocations on the line. If the start location is after the end location, the computed linear geometry has reverse orientation to the input line.
Declaration
public static Geometry Extract(Geometry line, LinearLocation start, LinearLocation end)
Parameters
Type | Name | Description |
---|---|---|
Geometry | line | The line to use as the baseline. |
LinearLocation | start | The start location. |
LinearLocation | end | The end location. |
Returns
Type | Description |
---|---|
Geometry | The extracted subline. |
Extract(LinearLocation, LinearLocation)
Extracts a subline of the input.
If end
is minor that start
,
the linear geometry computed will be reversed.
Declaration
public Geometry Extract(LinearLocation start, LinearLocation end)
Parameters
Type | Name | Description |
---|---|---|
LinearLocation | start | The start location. |
LinearLocation | end | The end location. |
Returns
Type | Description |
---|---|
Geometry | A linear geometry. |