locate method

int locate(
  1. Coordinate p
)
override

Determines the {@link Location} of a point in an areal {@link Geometry}. The return value is one of:

  • {@link Location.INTERIOR} if the point is in the geometry interior
  • {@link Location.BOUNDARY} if the point lies exactly on the boundary
  • {@link Location.EXTERIOR} if the point is outside the geometry

@param p the point to test @return the Location of the point in the geometry

Implementation

int locate(Coordinate p) {
  return SimplePointInAreaLocator.locatePointInGeom(p, geom);
}