PointLocator class

Computes the topological ({@link Location}) of a single point to a {@link Geometry}. A {@link BoundaryNodeRule} may be specified to control the evaluation of whether the point lies on the boundary or not The default rule is to use the the SFS Boundary Determination Rule

Notes:

  • {@link LinearRing}s do not enclose any area - points inside the ring are still in the EXTERIOR of the ring.
Instances of this class are not reentrant.

@version 1.7

Constructors

PointLocator()
PointLocator.fromRule(BoundaryNodeRule? boundaryRule)

Properties

boundaryRule BoundaryNodeRule
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isIn bool
getter/setter pair
numBoundaries int
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

computeLocation(Coordinate p, Geometry geom) → void
intersects(Coordinate p, Geometry geom) bool
Convenience method to test a point for intersection with a Geometry @param p the coordinate to test @param geom the Geometry to test @return true if the point is in the interior or boundary of the Geometry
locate(Coordinate p, Geometry geom) int
Computes the topological relationship ({@link Location}) of a single point to a Geometry. It handles both single-element and multi-element Geometries. The algorithm for multi-part Geometries takes into account the SFS Boundary Determination Rule.
locateInPolygon(Coordinate p, Polygon poly) int
locateInPolygonRing(Coordinate p, LinearRing ring) int
locateOnLineString(Coordinate p, LineString l) int
locateOnPoint(Coordinate p, Point pt) int
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
updateLocationInfo(int loc) → void

Operators

operator ==(Object other) bool
The equality operator.
inherited