Click or drag to resize

SpatialExtensionsLocateAlong Method (ICoordinateSequence, Double, ExtrapolationTypes)

Locate a coordinate where the m value is located in the coords.

If extrapolate is true, the coordinates are extrapolated. If only one coordinate exist in coords, return that coordinate.

Extrapoloation types 'Nearest' and 'Linear is supported'.

Namespace:  DHI.Mike1D.Generic.Spatial
Assembly:  DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 16.0.0.0 (11.1.1.1111)
Syntax
C#
public static ICoordinate LocateAlong(
	this ICoordinateSequence coords,
	double m,
	ExtrapolationTypes extrapolate
)

Parameters

coords
Type: DHI.Mike1D.Generic.Spatial.GeometryICoordinateSequence
m
Type: SystemDouble
extrapolate
Type: DHI.Mike1D.GenericExtrapolationTypes

Return Value

Type: ICoordinate
Coordinate, or null if m-value is outside m-span of coordinates

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ICoordinateSequence. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also