Class FacetLocater
java.lang.Object
org.locationtech.jtstest.testbuilder.geom.FacetLocater
Locates the paths to facets (vertices and segments) of
a
Geometry
which are within a given tolerance
of a query point.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List
filterVertexLocations
(Collection locations) Creates a list containing all the vertexGeometryLocation
s in the input collection.private void
findLocations
(Stack path, Geometry geom, List locations) private void
findLocations
(Stack path, Geometry compGeom, CoordinateSequence seq, List locations) private void
findLocations
(Stack path, Polygon poly, List locations) private void
findLocations
(Geometry geom, List locations) private void
findSegmentLocations
(Stack path, Geometry compGeom, CoordinateSequence seq, List locations) private void
findVertexLocations
(Stack path, Geometry compGeom, CoordinateSequence seq, List locations) getLocations
(Coordinate queryPt, double tolerance) static int[]
toIntArray
(Vector path)
-
Field Details
-
parentGeom
-
locations
-
queryPt
-
tolerance
private double tolerance
-
-
Constructor Details
-
FacetLocater
-
-
Method Details
-
filterVertexLocations
Creates a list containing all the vertexGeometryLocation
s in the input collection.- Parameters:
locations
- the source collection- Returns:
- a list of the vertex locations, if any
-
getLocations
-
findLocations
-
findLocations
-
findLocations
-
findLocations
-
findVertexLocations
private void findVertexLocations(Stack path, Geometry compGeom, CoordinateSequence seq, List locations) -
findSegmentLocations
private void findSegmentLocations(Stack path, Geometry compGeom, CoordinateSequence seq, List locations) -
toIntArray
-