Package org.geotools.geometry.iso.root

Examples of org.geotools.geometry.iso.root.GeometryImpl


   * @return true if the coord is located in the interior or boundary of a
   *         geometry in the list.
   */
  private boolean isCovered(Coordinate coord, List geomList) {
    for (Iterator it = geomList.iterator(); it.hasNext();) {
      GeometryImpl geom = (GeometryImpl) it.next();
      int loc = this.ptLocator.locate(coord, geom);
      if (loc != Location.EXTERIOR)
        return true;
    }
    return false;
View Full Code Here


  /**
   * If the Geometries are disjoint, we need to enter their dimension and
   * boundary dimension in the EXTERIOR rows in the IM
   */
  private void computeDisjointIM(IntersectionMatrix im) {
    GeometryImpl ga = arg[0].getGeometry();
//    if (!ga.isEmpty()) {
//      im.set(Location.INTERIOR, Location.EXTERIOR, ga.getDimension());
//      im.set(Location.BOUNDARY, Location.EXTERIOR, ga
//          .getBoundaryDimension());
//    }
    im.set(Location.INTERIOR, Location.EXTERIOR, ga.getDimension(null));
    if (ga.getBoundary() == null) {
      im.set(Location.BOUNDARY, Location.EXTERIOR, Dimension.FALSE);
    }
    else {
      im.set(Location.BOUNDARY, Location.EXTERIOR, ga.getBoundary().getDimension(null));
    }
   
    GeometryImpl gb = arg[1].getGeometry();
//    if (!gb.isEmpty()) {
//      im.set(Location.EXTERIOR, Location.INTERIOR, gb.getDimension());
//      im.set(Location.EXTERIOR, Location.BOUNDARY, gb
//          .getBoundaryDimension());
//    }
    im.set(Location.EXTERIOR, Location.INTERIOR, gb.getDimension(null));
    if (gb.getBoundary() == null) {
      im.set(Location.EXTERIOR, Location.BOUNDARY, Dimension.FALSE);
    }
    else {
      im.set(Location.EXTERIOR, Location.BOUNDARY, gb.getBoundary().getDimension(null));
    }
   
  }
View Full Code Here

      return containsPointInPolygon(p, (SurfaceImpl) geom);
    }
    else if (geom instanceof MultiPrimitive) {
      Iterator geomi = ((MultiPrimitive) geom).getElements().iterator();
      while (geomi.hasNext()) {
        GeometryImpl g2 = (GeometryImpl) geomi.next();
        if (g2 != geom)
          if (containsPoint(p, g2))
            return true;
      }
    }
View Full Code Here

TOP

Related Classes of org.geotools.geometry.iso.root.GeometryImpl

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.