Package com.vividsolutions.jts.index.bintree

Examples of com.vividsolutions.jts.index.bintree.Interval.overlaps()


  public List query(Interval searchInterval)
  {
    List result = new ArrayList();
    for (Iterator i = list.iterator(); i.hasNext(); ) {
      Interval interval = (Interval) i.next();
      if (interval.overlaps(searchInterval))
        result.add(interval);
    }
    return result;
  }
View Full Code Here


  private List getOverlapping(List items, Interval searchInterval)
  {
    List result = new ArrayList();
    for (int i = 0; i < items.size(); i++) {
      Interval interval = (Interval) items.get(i);
      if (interval.overlaps(searchInterval)) result.add(interval);
    }
    return result;
  }

}
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.