Package com.vividsolutions.jts.algorithm.locate

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


   * @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

    gridBuilder.setLineWidth(10.0);
    gridBuilder.setSeed(1185072199562L);
    Geometry area = gridBuilder.getGeometry();
   
//    PointInAreaLocator pia = new IndexedPointInAreaLocator(area);
    PointOnGeometryLocator pia = new IndexedPointInAreaLocator(area);

    PointInAreaStressTester gridTester = new PointInAreaStressTester(geomFactory, area);
    gridTester.setNumPoints(100000);
    gridTester.setPIA(pia);
   
View Full Code Here

    Geometry area = ssFact.createSineStar();
    System.out.println(area);
   
    Stopwatch sw = new Stopwatch();

    PointOnGeometryLocator pia = new MCIndexedPointInAreaLocator(area);
//    PointInAreaLocator pia = new IntervalIndexedPointInAreaLocator(area);
//    PointInAreaLocator pia = new SimplePointInAreaLocator(area);

    PointInAreaPerfTester perfTester = new PointInAreaPerfTester(geomFactory, area);
    perfTester.setNumPoints(50000);
View Full Code Here

TOP

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

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.