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.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to