Class BoundaryOp

Hierarchy: Object , BoundaryOp
public class BoundaryOp
Computes the boundary of a Geometry. Allows specifying the BoundaryNodeRule 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.
Authors:
Martin Davis

Other

  • version: 1.7
public BoundaryOp(Geometry geom)
Creates a new instance for the given geometry.
Parameters:
geom - geom the input geometry
public BoundaryOp(Geometry geom, BoundaryNodeRule bnRule)
Creates a new instance for the given geometry.
Parameters:
geom - geom the input geometry
bnRule - bnRule the Boundary Node Rule to use
public static Geometry getBoundary(Geometry g)
Computes a geometry representing the boundary of a geometry.
Parameters:
g - g the input geometry
Returns:
the computed boundary
public static Geometry getBoundary(Geometry g, BoundaryNodeRule bnRule)
Computes a geometry representing the boundary of a geometry, using an explicit BoundaryNodeRule.
Parameters:
g - g the input geometry
bnRule - bnRule the Boundary Node Rule to use
Returns:
the computed boundary
public Geometry getBoundary()
Gets the computed boundary.
Returns:
the boundary geometry