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 ListfilterVertexLocations(Collection locations) Creates a list containing all the vertexGeometryLocations in the input collection.private voidfindLocations(Stack path, Geometry geom, List locations) private voidfindLocations(Stack path, Geometry compGeom, CoordinateSequence seq, List locations) private voidfindLocations(Stack path, Polygon poly, List locations) private voidfindLocations(Geometry geom, List locations) private voidfindSegmentLocations(Stack path, Geometry compGeom, CoordinateSequence seq, List locations) private voidfindVertexLocations(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 vertexGeometryLocations 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
-