Package org.geojson

Examples of org.geojson.Polygon


  /**Convert a multi-polygon to a java.awt.geom.shape.**/
  protected static Shape toArea(MultiPolygon source) {
    Area a = new Area();
    for (List<List<LngLatAlt>> polyPoints: source.getCoordinates()) {
      Polygon part = new Polygon(polyPoints.get(0));
      for (int i=1; i<polyPoints.size();i++) {
        part.addInteriorRing(polyPoints.get(i));
      }
      a.add(toArea(part));
    }
    return a;
  }
View Full Code Here

TOP

Related Classes of org.geojson.Polygon

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.