Class: SimplePointInAreaLocator

jsts.algorithm.locate.SimplePointInAreaLocator

new SimplePointInAreaLocator()

Computes the location of points relative to a Polygonal Geometry, using a simple O(n) algorithm. This algorithm is suitable for use in cases where only one or a few points will be tested against a given area.

The algorithm used is only guaranteed to return correct results for points which are not on the boundary of the Geometry.

Source:

Extends

  • PointOnGeometryLocator

Methods

(static) isPointInRing(p, ring)

Determines whether a point lies in a LinearRing, using the ring envelope to short-circuit if possible.
Parameters:
Name Type Description
p the point to test.
ring a linear ring.
Source:
Returns:
true if the point lies inside the ring.

(static) locate(p, geom)

Determines the Location of a point in an areal Geometry. Currently this will never return a value of BOUNDARY.
Parameters:
Name Type Description
p the point to test.
geom the areal geometry to test.
Source:
Returns:
the Location of the point in the geometry.