IndexedPointInAreaLocator constructor
IndexedPointInAreaLocator(
- Geometry g
Creates a new locator for a given {@link Geometry}. {@link Polygonal} and {@link LinearRing} geometries are supported.
@param g the Geometry to locate in
Implementation
IndexedPointInAreaLocator(Geometry g) {
if (!(g is Polygonal || g is LinearRing))
throw new ArgumentError("Argument must be Polygonal or LinearRing");
index = new IntervalIndexedGeometry(g);
}