/** * Creates a MultiPolygon using the given Polygons; a null or empty array * will create an empty Polygon. The polygons must conform to the * assertions specified in the <A * HREF="http://www.opengis.org/techno/specs.htm">OpenGIS Simple Features * Specification for SQL</A>. * * @param polygons * Polygons, each of which may be empty but not null */ public MultiPolygon createMultiPolygon(Polygon[] polygons) { return new MultiPolygon(polygons, this); }
/** * Creates a MultiPolygon using the given Polygons; a null or empty array * will create an empty Polygon. The polygons must conform to the * assertions specified in the <A * HREF="http://www.opengis.org/techno/specs.htm">OpenGIS Simple Features * Specification for SQL</A>. * * @param polygons * Polygons, each of which may be empty but not null * @return the created MultiPolygon */ public MultiPolygon createMultiPolygon(Polygon[] polygons) { return new MultiPolygon(polygons, this); }
@Override public com.vividsolutions.jts.geom.MultiPolygon backwardConvert(final MultiPolygon object) { final Polygon[] polygons = JTS_MULTI_POLYGON_CONVERTER.convert(object) .toArray(new Polygon[0]); return new com.vividsolutions.jts.geom.MultiPolygon(polygons, FACTORY); }
mp = new MultiPolygon(p,mp.getFactory()); f.setDefaultGeometry(mp);
mp = new MultiPolygon(p,mp.getFactory()); f.setDefaultGeometry(mp);
if (fixedPolygon instanceof Polygon) fixedPolygon = new com.vividsolutions.jts.geom.MultiPolygon( new Polygon[] { (Polygon) fixedPolygon }, JtsPrecisionManager.getGeometryFactory());