Examples of PolygonTypeInfo


Examples of org.geomajas.sld.geometry.PolygonTypeInfo

        geometry = factory.createLineString(getCoordinates(linestring.getCoordList()));
      } else if (linestring.ifCoordinates()) {
        geometry = factory.createLineString(getCoordinates(linestring.getCoordinates()));
      }
    } else if (geom instanceof PolygonTypeInfo) {
      PolygonTypeInfo polygon = (PolygonTypeInfo) geom;
      OuterBoundaryIsInfo outer = polygon.getOuterBoundaryIs();
      LinearRing shell = toLinearRing(factory, outer.getLinearRing());
      LinearRing[] holes = new LinearRing[polygon.getInnerBoundaryIList().size()];
      int i = 0;
      for (InnerBoundaryIsInfo inner : polygon.getInnerBoundaryIList()) {
        holes[i++] = toLinearRing(factory, inner.getLinearRing());
      }
      geometry = factory.createPolygon(shell, holes);
    }
    return geometry;
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.