Click or drag to resize

FloodMapExtensionsGetClosestDownstreamGridPoint Method

Find the gridpoint which is closest to the given location upstream.

It is assumed that the reachCsPoints max and min chainages are containing the given chainage, otherwise null is returned.

Namespace:  DHI.Mike1D.FloodMap
Assembly:  DHI.Mike1D.FloodMap (in DHI.Mike1D.FloodMap.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax
public static FloodMapCsPoint GetClosestDownstreamGridPoint(
	this IList<FloodMapCsPoint> reachCsPoints,
	double chainage
)

Parameters

reachCsPoints
Type: System.Collections.GenericIListFloodMapCsPoint

[Missing <param name="reachCsPoints"/> documentation for "M:DHI.Mike1D.FloodMap.FloodMapExtensions.GetClosestDownstreamGridPoint(System.Collections.Generic.IList{DHI.Mike1D.FloodMap.FloodMapCsPoint},System.Double)"]

chainage
Type: SystemDouble

[Missing <param name="chainage"/> documentation for "M:DHI.Mike1D.FloodMap.FloodMapExtensions.GetClosestDownstreamGridPoint(System.Collections.Generic.IList{DHI.Mike1D.FloodMap.FloodMapCsPoint},System.Double)"]

Return Value

Type: FloodMapCsPoint

[Missing <returns> documentation for "M:DHI.Mike1D.FloodMap.FloodMapExtensions.GetClosestDownstreamGridPoint(System.Collections.Generic.IList{DHI.Mike1D.FloodMap.FloodMapCsPoint},System.Double)"]

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IListFloodMapCsPoint. 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