Package org.geomajas.gwt.client.spatial.geometry.operation

Examples of org.geomajas.gwt.client.spatial.geometry.operation.AddRingOperation.execute()


  private Polygon addRing(Polygon polygon) {
    LinearRing interiorRing = polygon.getGeometryFactory().createLinearRing(new Coordinate[] {});
    AddRingOperation op = new AddRingOperation(interiorRing);
    index.setInteriorRingIndex(polygon.getNumInteriorRing());
    index.setExteriorRing(false);
    return (Polygon) op.execute(polygon);
  }

  private MultiPolygon addRing(MultiPolygon multiPolygon) {
    if (index.getGeometryIndex() >= 0) {
      Polygon[] polygons = new Polygon[multiPolygon.getNumGeometries()];
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.