IndexedPointInAreaLocator class
Determines the {@link Location} of {@link Coordinate}s relative to an areal geometry, using indexing for efficiency. This algorithm is suitable for use in cases where many points will be tested against a given area.
The Location is computed precisely, in that points located on the geometry boundary or segments will return {@link Location.BOUNDARY}.
{@link Polygonal} and {@link LinearRing} geometries are supported.
Thread-safe and immutable.
@author Martin Davis
- Implemented types
Constructors
- IndexedPointInAreaLocator(Geometry g)
- Creates a new locator for a given {@link Geometry}. {@link Polygonal} and {@link LinearRing} geometries are supported.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index ↔ IntervalIndexedGeometry
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
locate(
Coordinate p) → int -
Determines the {@link Location} of a point in an areal {@link Geometry}.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited