Class FuzzyPointLocator
- java.lang.Object
-
- org.locationtech.jts.operation.overlay.validate.FuzzyPointLocator
-
public class FuzzyPointLocator extends java.lang.Object
Finds the most likelyLocation
of a point relative to the polygonal components of a geometry, using a tolerance value. If a point is not clearly in the Interior or Exterior, it is considered to be on the Boundary. In other words, if the point is within the tolerance of the Boundary, it is considered to be on the Boundary; otherwise, whether it is Interior or Exterior is determined directly.- Version:
- 1.7
-
-
Field Summary
Fields Modifier and Type Field Description private double
boundaryDistanceTolerance
private Geometry
g
private MultiLineString
linework
private PointLocator
ptLocator
private LineSegment
seg
-
Constructor Summary
Constructors Constructor Description FuzzyPointLocator(Geometry g, double boundaryDistanceTolerance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private MultiLineString
extractLinework(Geometry g)
Extracts linework for polygonal components.int
getLocation(Coordinate pt)
private boolean
isWithinToleranceOfBoundary(Coordinate pt)
-
-
-
Field Detail
-
g
private Geometry g
-
boundaryDistanceTolerance
private double boundaryDistanceTolerance
-
linework
private MultiLineString linework
-
ptLocator
private PointLocator ptLocator
-
seg
private LineSegment seg
-
-
Constructor Detail
-
FuzzyPointLocator
public FuzzyPointLocator(Geometry g, double boundaryDistanceTolerance)
-
-
Method Detail
-
getLocation
public int getLocation(Coordinate pt)
-
extractLinework
private MultiLineString extractLinework(Geometry g)
Extracts linework for polygonal components.- Parameters:
g
- the geometry from which to extract- Returns:
- a lineal geometry containing the extracted linework
-
isWithinToleranceOfBoundary
private boolean isWithinToleranceOfBoundary(Coordinate pt)
-
-