public class FuzzyPointLocator
extends java.lang.Object
Location
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.Modifier and Type | Field and Description |
---|---|
private double |
boundaryDistanceTolerance |
private Geometry |
g |
private MultiLineString |
linework |
private PointLocator |
ptLocator |
private LineSegment |
seg |
Constructor and Description |
---|
FuzzyPointLocator(Geometry g,
double boundaryDistanceTolerance) |
Modifier and Type | Method and Description |
---|---|
private MultiLineString |
extractLinework(Geometry g)
Extracts linework for polygonal components.
|
int |
getLocation(Coordinate pt) |
private boolean |
isWithinToleranceOfBoundary(Coordinate pt) |
private Geometry g
private double boundaryDistanceTolerance
private MultiLineString linework
private PointLocator ptLocator
private LineSegment seg
public FuzzyPointLocator(Geometry g, double boundaryDistanceTolerance)
public int getLocation(Coordinate pt)
private MultiLineString extractLinework(Geometry g)
g
- the geometry from which to extractprivate boolean isWithinToleranceOfBoundary(Coordinate pt)