Package org.locationtech.jts.operation
Class BoundaryOp
- java.lang.Object
-
- org.locationtech.jts.operation.BoundaryOp
-
public class BoundaryOp extends java.lang.Object
Computes the boundary of aGeometry
. Allows specifying theBoundaryNodeRule
to be used. This operation will always return aGeometry
of the appropriate dimension for the boundary (even if the input geometry is empty). The boundary of zero-dimensional geometries (Points) is always the emptyGeometryCollection
.- Version:
- 1.7
-
-
Field Summary
Fields Modifier and Type Field Description private BoundaryNodeRule
bnRule
private java.util.Map
endpointMap
private Geometry
geom
private GeometryFactory
geomFact
-
Constructor Summary
Constructors Constructor Description BoundaryOp(Geometry geom)
BoundaryOp(Geometry geom, BoundaryNodeRule bnRule)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Field Detail
-
geom
private Geometry geom
-
geomFact
private GeometryFactory geomFact
-
bnRule
private BoundaryNodeRule bnRule
-
endpointMap
private java.util.Map endpointMap
-
-
Constructor Detail
-
BoundaryOp
public BoundaryOp(Geometry geom)
-
BoundaryOp
public BoundaryOp(Geometry geom, BoundaryNodeRule bnRule)
-
-
Method Detail
-
getBoundary
public static Geometry getBoundary(Geometry g, BoundaryNodeRule bnRule)
-
getBoundary
public Geometry getBoundary()
-
getEmptyMultiPoint
private MultiPoint getEmptyMultiPoint()
-
boundaryMultiLineString
private Geometry boundaryMultiLineString(MultiLineString mLine)
-
computeBoundaryCoordinates
private Coordinate[] computeBoundaryCoordinates(MultiLineString mLine)
-
addEndpoint
private void addEndpoint(Coordinate pt)
-
boundaryLineString
private Geometry boundaryLineString(LineString line)
-
-