FloodMapExtensions Class

Extension class containing a number of helper function.

Definition

Namespace: DHI.Mike1D.FloodMap
Assembly: DHI.Mike1D.FloodMap (in DHI.Mike1D.FloodMap.dll) Version: 24.0.0.0 (11.1.1.1111)
C#
public static class FloodMapExtensions
Inheritance
Object    FloodMapExtensions

Methods

CalculateLocalBottomLevel Calculates the local bottom level for the coordinate, by interpolation.

In case more than one cross section line segment contains x, the first is returned.

CanAppend Check if dp1 and dp2 are within maxDistance so dp2 can be appended to dp1

Both chainage-distance and distance of end-points must be within maxDistance

GetBottomlevel Calculates the local bottom level for the coordinate, by interpolation.

In case more than one cross section line segment contains x, the first is returned.

GetClosestDownstreamGridPoint 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.

GetClosestUpstreamGridPoint 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.

GetCrossSectionX Returns the cross-sectional x coordinate at the relative coordinate v of the cross section

Zero is center of river, negative values are left of center, positive values are right of center.

GetFloodMapCrossSectionsForReach Get all cross sections in crossSectionData within the reach specified by reachSpan. If no cross section exist at reach start/end chainage, and if a cross section exist upstream of start-chainage / downstream of end chainage, and if it is within digiPointSpan (if defined), those cross sections are included as well. Those cross sections are required in order to do proper cross line interpolation at start/end of reach span.
GetResistance Calculates the local resistance for the coordinate. If resistance does not vary over the cross section, 1 is returned.

In case more than one cross section line segment contains x, the first is returned.

IncludesChainage Check if the coordinates/digipoints contains a given chainage
Interpolate Interpolate a CrossLineData at the specified chainage.
LeftLeveeBank LeftLeveeBank in cs as an INetworkCrossSectionPoint
LeftLowFlowBank LeftLowFlowBank in cs as an INetworkCrossSectionPoint
LowestPoint Lowest point in cs as an INetworkCrossSectionPoint
RightLeveeBank RightLeveeBank in cs as an INetworkCrossSectionPoint
RightLowFlowBank RightLowFlowBank in cs as an INetworkCrossSectionPoint
ToNTS Convert MIKE 1D coordinates to NTS coordinates

See Also