Class BoundaryOp
Computes the boundary of a Geometry. Allows specifying the IBoundaryNodeRule to be used. This operation will always return a Geometry of the appropriate dimension for the boundary (even if the input geometry is empty). The boundary of zero-dimensional geometries (Points) is always the empty GeometryCollection.
Inherited Members
Namespace: NetTopologySuite.Operation
Assembly: NetTopologySuite.dll
Syntax
public class BoundaryOp
Constructors
| Improve this Doc View SourceBoundaryOp(Geometry)
Initializes a new instance of the BoundaryOp class for the given geometry.
Declaration
public BoundaryOp(Geometry geom)
Parameters
Type | Name | Description |
---|---|---|
Geometry | geom | The input geometry. |
BoundaryOp(Geometry, IBoundaryNodeRule)
Initializes a new instance of the BoundaryOp class for the given geometry.
Declaration
public BoundaryOp(Geometry geom, IBoundaryNodeRule bnRule)
Parameters
Type | Name | Description |
---|---|---|
Geometry | geom | The input geometry. |
IBoundaryNodeRule | bnRule | Tthe Boundary Node Rule to use. |
Methods
| Improve this Doc View SourceGetBoundary()
Gets the computed boundary.
Declaration
public Geometry GetBoundary()
Returns
Type | Description |
---|---|
Geometry | The boundary geometry. |
GetBoundary(Geometry)
Computes a geometry representing the boundary of a geometry.
Declaration
public static Geometry GetBoundary(Geometry g)
Parameters
Type | Name | Description |
---|---|---|
Geometry | g | The input geometry. |
Returns
Type | Description |
---|---|
Geometry | The computed boundary. |
GetBoundary(Geometry, IBoundaryNodeRule)
Computes a geometry representing the boundary of a geometry, using an explicit IBoundaryNodeRule.
Declaration
public static Geometry GetBoundary(Geometry g, IBoundaryNodeRule bnRule)
Parameters
Type | Name | Description |
---|---|---|
Geometry | g | The input geometry. |
IBoundaryNodeRule | bnRule | The Boundary Node Rule to use. |
Returns
Type | Description |
---|---|
Geometry | The computed boundary. |
HasBoundary(Geometry, IBoundaryNodeRule)
Tests if a geometry has a boundary (it is non-empty).
The semantics are:
- Empty geometries do not have boundaries.
- Points do not have boundaries.
- For linear geometries the existence of the boundary is determined by the IBoundaryNodeRule.
- Non-empty polygons always have a boundary.
Declaration
public static bool HasBoundary(Geometry geom, IBoundaryNodeRule boundaryNodeRule)
Parameters
Type | Name | Description |
---|---|---|
Geometry | geom | The geometry providing the boundary |
IBoundaryNodeRule | boundaryNodeRule | The Boundary Node Rule to use |
Returns
Type | Description |
---|---|
Boolean |
|