public class BoundaryOp
extends java.lang.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
.Modifier and Type | Field and Description |
---|---|
private BoundaryNodeRule |
bnRule |
private java.util.Map |
endpointMap |
private Geometry |
geom |
private GeometryFactory |
geomFact |
Constructor and Description |
---|
BoundaryOp(Geometry geom) |
BoundaryOp(Geometry geom,
BoundaryNodeRule bnRule) |
Modifier and Type | Method and Description |
---|---|
private void |
addEndpoint(Coordinate pt) |
private Geometry |
boundaryLineString(LineString line) |
private Geometry |
boundaryMultiLineString(MultiLineString mLine) |
private Coordinate[] |
computeBoundaryCoordinates(MultiLineString mLine) |
Geometry |
getBoundary() |
static Geometry |
getBoundary(Geometry g) |
static Geometry |
getBoundary(Geometry g,
BoundaryNodeRule bnRule) |
private MultiPoint |
getEmptyMultiPoint() |
private Geometry geom
private GeometryFactory geomFact
private BoundaryNodeRule bnRule
private java.util.Map endpointMap
public BoundaryOp(Geometry geom)
public BoundaryOp(Geometry geom, BoundaryNodeRule bnRule)
public static Geometry getBoundary(Geometry g, BoundaryNodeRule bnRule)
public Geometry getBoundary()
private MultiPoint getEmptyMultiPoint()
private Geometry boundaryMultiLineString(MultiLineString mLine)
private Coordinate[] computeBoundaryCoordinates(MultiLineString mLine)
private void addEndpoint(Coordinate pt)
private Geometry boundaryLineString(LineString line)