Package org.locationtech.jts.operation
Class BoundaryOp
- java.lang.Object
-
- org.locationtech.jts.operation.BoundaryOp
-
public class BoundaryOp extends java.lang.ObjectComputes the boundary of aGeometry. Allows specifying theBoundaryNodeRuleto be used. This operation will always return aGeometryof 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 BoundaryNodeRulebnRuleprivate java.util.MapendpointMapprivate Geometrygeomprivate GeometryFactorygeomFact
-
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 voidaddEndpoint(Coordinate pt)private GeometryboundaryLineString(LineString line)private GeometryboundaryMultiLineString(MultiLineString mLine)private Coordinate[]computeBoundaryCoordinates(MultiLineString mLine)GeometrygetBoundary()static GeometrygetBoundary(Geometry g)static GeometrygetBoundary(Geometry g, BoundaryNodeRule bnRule)private MultiPointgetEmptyMultiPoint()
-
-
-
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)
-
-