getLocation method

int getLocation(
  1. int geomIndex,
  2. Coordinate p,
  3. List<GeometryGraph> geom
)

Implementation

int getLocation(int geomIndex, Coordinate p, List<GeometryGraph> geom) {
  // compute location only on demand
  if (ptInAreaLocation[geomIndex] == Location.NONE) {
    ptInAreaLocation[geomIndex] = SimplePointInAreaLocator.locatePointInGeom(
        p, geom[geomIndex].getGeometry()!);
  }
  return ptInAreaLocation[geomIndex];
}