Package chunmap.model.geom

Examples of chunmap.model.geom.GeometryCollection


    g2 = m2;
  }

  @Override
  protected void computeIM() {
    GeometryCollection c1 = (GeometryCollection) g1;
    GeometryCollection c2 = (GeometryCollection) g2;
    for (Geometry ge1 : c1) {
      for (Geometry ge2 : c2) {
        IntersectionMatrix tim = ComputeImFactory.getInstance()
            .getImComputer(ge1, ge2).getIM();
        im.unite(tim);
View Full Code Here


                return false;
            }
        }
        else if (geom instanceof GeometryCollection)
        {
            GeometryCollection gs = (GeometryCollection)geom;
            for (Geometry g : gs)
            {
                if (hasIntersect(env, g)) return true;
            }
            return false;
View Full Code Here

      drawLineSymbol((Graphics2D) g, pg.getShell());
      for (Ring r : pg.getHoles()) {
        drawLineSymbol((Graphics2D) g, r);
      }
    } else if (geo instanceof GeometryCollection) {
      GeometryCollection gs = (GeometryCollection) geo;
      for (Geometry ge : gs) {
        drawGeo(g, ge, renderer);
      }
    }
  }
View Full Code Here

    } else if (geo instanceof LineString) {
      drawHelper.drawLineString(g, geo,view);
    } else if (geo instanceof Polygon) {
      drawHelper.drawPolygon(g, geo,view);
    } else if (geo instanceof GeometryCollection) {
      GeometryCollection geoCollection = (GeometryCollection) geo;
      for (Geometry geo2 : geoCollection) {
        draw(geo2);
      }
    } else {
      throw new UnsupportedOperationException();
View Full Code Here

TOP

Related Classes of chunmap.model.geom.GeometryCollection

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.