public class BoundaryOp extends Object
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
.Constructor and Description |
---|
BoundaryOp(Geometry geom)
Creates a new instance for the given geometry.
|
BoundaryOp(Geometry geom,
BoundaryNodeRule bnRule)
Creates a new instance for the given geometry.
|
Modifier and Type | Method and Description |
---|---|
Geometry |
getBoundary()
Gets the computed boundary.
|
static Geometry |
getBoundary(Geometry g)
Computes a geometry representing the boundary of a geometry.
|
static Geometry |
getBoundary(Geometry g,
BoundaryNodeRule bnRule)
Computes a geometry representing the boundary of a geometry,
using an explicit
BoundaryNodeRule . |
static boolean |
hasBoundary(Geometry geom,
BoundaryNodeRule boundaryNodeRule)
Tests if a geometry has a boundary (it is non-empty).
|
public BoundaryOp(Geometry geom)
geom
- the input geometrypublic BoundaryOp(Geometry geom, BoundaryNodeRule bnRule)
geom
- the input geometrybnRule
- the Boundary Node Rule to usepublic static Geometry getBoundary(Geometry g)
g
- the input geometrypublic static Geometry getBoundary(Geometry g, BoundaryNodeRule bnRule)
BoundaryNodeRule
.g
- the input geometrybnRule
- the Boundary Node Rule to usepublic static boolean hasBoundary(Geometry geom, BoundaryNodeRule boundaryNodeRule)
BoundaryNodeRule
.
geom
- the geometry providing the boundaryboundaryNodeRule
- the Boundary Node Rule to usepublic Geometry getBoundary()
Copyright © 2024. All rights reserved.