[OpenLayers-Users] Multipolygon to Polygons

vGIS valentino1s73s at gmx.net
Fri Sep 21 00:48:14 PDT 2012


Some Polygons were added to a MultiPolygon:

		// add Polygons to a MultiPolygon
		function cmd_Poly_add() {
		var features = wfs_polygon.selectedFeatures;
		var polygons = [];
		var f = null;
		for( f in features) {
			polygons.push(features[f].geometry);
			}
		var myCombinedFeature = new OpenLayers.Feature.Vector(new
OpenLayers.Geometry.MultiPolygon(polygons));
		myCombinedFeature.state = OpenLayers.State.INSERT;
		wfs_mpolygon.addFeatures([myCombinedFeature]);
		wfs_polygon.removeFeatures(features);
		wfs_mpolygon.redraw();
		} 

*How do I splitt the Multipolygon-features to several Polygon-features, that
have the same attributes (typ and tst)?*



--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Multipolygon-to-Polygons-tp5003436.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list