Search in sources :

Example 1 with MultiPolygon

use of com.revolsys.geometry.model.MultiPolygon in project com.revolsys.open by revolsys.

the class PreparedMultiPolygon method preparePolygons.

private static Polygon[] preparePolygons(final MultiPolygon polygonal) {
    final Polygon[] polygons = new Polygon[polygonal.getPolygonCount()];
    for (int i = 0; i < polygons.length; i++) {
        final Polygon polygon = polygonal.getPolygon(i);
        polygons[i] = polygon.prepare();
    }
    return polygons;
}
Also used : MultiPolygon(com.revolsys.geometry.model.MultiPolygon) Polygon(com.revolsys.geometry.model.Polygon) Point(com.revolsys.geometry.model.Point)

Aggregations

MultiPolygon (com.revolsys.geometry.model.MultiPolygon)1 Point (com.revolsys.geometry.model.Point)1 Polygon (com.revolsys.geometry.model.Polygon)1