Class PointBuilder
java.lang.Object
org.locationtech.jts.operation.overlay.PointBuilder
Constructs
Point
s from the nodes of an overlay graph.- Version:
- 1.7
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPointBuilder
(OverlayOp op, GeometryFactory geometryFactory, PointLocator ptLocator) -
Method Summary
Modifier and TypeMethodDescriptionbuild
(int opCode) Computes the Point geometries which will appear in the result, given the specified overlay operation.private void
extractNonCoveredResultNodes
(int opCode) Determines nodes which are in the result, and createsPoint
s for them.private void
Converts non-covered nodes to Point objects and adds them to the result.
-
Field Details
-
op
-
geometryFactory
-
resultPointList
-
-
Constructor Details
-
PointBuilder
-
-
Method Details
-
build
Computes the Point geometries which will appear in the result, given the specified overlay operation.- Returns:
- a list of the Points objects in the result
-
extractNonCoveredResultNodes
private void extractNonCoveredResultNodes(int opCode) Determines nodes which are in the result, and createsPoint
s for them. This method determines nodes which are candidates for the result via their labelling and their graph topology.- Parameters:
opCode
- the overlay operation
-
filterCoveredNodeToPoint
Converts non-covered nodes to Point objects and adds them to the result. A node is covered if it is contained in another element Geometry with higher dimension (e.g. a node point might be contained in a polygon, in which case the point can be eliminated from the result).- Parameters:
n
- the node to test
-