RRExtensionsNTSGeometry(ICatchment, Boolean, IDiagnostics) Method

Create a NetToplogySuite (NTS) geometry from the CatchmentGeometry.

Depending on the coordinates, the returned IGeometry is either a NTS Polygon or NTS MultiPolygon.

Check out CatchmentGeometry for how the sequence of coordinates is interpreted

Definition

Namespace: DHI.Mike1D.RainfallRunoffModule
Assembly: DHI.Mike1D.RainfallRunoffModule (in DHI.Mike1D.RainfallRunoffModule.dll) Version: 24.0.0.0 (11.1.1.1111)
C#
public static Geometry NTSGeometry(
	this ICatchment catchment,
	bool ccwSubtract,
	IDiagnostics diagnostics = null
)

Parameters

catchment  ICatchment
Catchment
ccwSubtract  Boolean
When true, counter-clockwise polygons will always be subtracted. When false, counter-clockwise polygon are only subtracted if contained by the polygon
diagnostics  IDiagnostics  (Optional)
Diagnostics object for error messages

Return Value

Geometry
Geometry, or null if geometry is not a valid polygon

Usage Note

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