Package com.vividsolutions.jts.algorithm.locate

Examples of com.vividsolutions.jts.algorithm.locate.SimplePointInAreaLocator


   * @param repPts the representative points of the target geometry
   * @return true if any component intersects the areal test geometry
   */
  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


   * @param repPts the representative points of the target geometry
   * @return true if any component intersects the areal test geometry
   */
  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

   * @param repPts the representative points of the target geometry
   * @return true if any component intersects the areal test geometry
   */
  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

  {
    Stopwatch sw = new Stopwatch();
   
    // default is to use the simple, non-indexed tester
    if (pia2 == null)
      pia2 = new SimplePointInAreaLocator(area);
   
   
    int ptGridWidth = (int) Math.sqrt(numPts);
   
    Envelope areaEnv = area.getEnvelopeInternal();
View Full Code Here

TOP

Related Classes of com.vividsolutions.jts.algorithm.locate.SimplePointInAreaLocator

Copyright © 2018 www.massapicom. 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.