I would like to download selected features from WFS as a zip file but I get an 
empty zip file. This is part of my code....
var url=OpenLayers.Protocol.WFS.fromWMSLayer(wms,{outputFormat: "SHAPE-ZIP"});

control = new OpenLayers.Control.GetFeature({
                protocol: url,
                box: true,
                hover: true,
                multipleKey: "shiftKey",
                toggleKey: "ctrlKey"
            });

control.events.register("featureselected", this, function(e) {

select.addFeatures([e.feature]);

        var features = select;
                var content = escape(features);
        var url = "data:application/zip;base64," + content;
        window.open(url);
Any idea is welcome
Neus

_______________________________________________
Users mailing list
us...@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to