Package com.vividsolutions.jts.algorithm.locate

Examples of com.vividsolutions.jts.algorithm.locate.PointOnGeometryLocator.locate()


  protected boolean isAnyTargetComponentInAreaTest(Geometry testGeom, List targetRepPts)
  {
    PointOnGeometryLocator piaLoc = new SimplePointInAreaLocator(testGeom);
    for (Iterator i = targetRepPts.iterator(); i.hasNext(); ) {
      Coordinate p = (Coordinate) i.next();
      int loc = piaLoc.locate(p);
      if (loc != Location.EXTERIOR)
        return true;
    }
    return false;
  }
View Full Code Here


  protected boolean isAnyTargetComponentInAreaTest(Geometry testGeom, List targetRepPts)
  {
    PointOnGeometryLocator piaLoc = new SimplePointInAreaLocator(testGeom);
    for (Iterator i = targetRepPts.iterator(); i.hasNext(); ) {
      Coordinate p = (Coordinate) i.next();
      int loc = piaLoc.locate(p);
      if (loc != Location.EXTERIOR)
        return true;
    }
    return false;
  }
View Full Code Here

  protected boolean isAnyTargetComponentInAreaTest(Geometry testGeom, List targetRepPts)
  {
    PointOnGeometryLocator piaLoc = new SimplePointInAreaLocator(testGeom);
    for (Iterator i = targetRepPts.iterator(); i.hasNext(); ) {
      Coordinate p = (Coordinate) i.next();
      int loc = piaLoc.locate(p);
      if (loc != Location.EXTERIOR)
        return true;
    }
    return false;
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.