[OpenLayers-Dev] How to form URL for to Export and download Selected features as KML formate

Phil Scadden p.scadden at gns.cri.nz
Tue Oct 25 17:01:41 EDT 2011


> I get selected features when i draw polygon using this
> polygonSelectFeatureHighlightControl control.
> But i want to export selected features as kml when i draw polygon.
> 			
> If i write code like this
> window.open(wfsProtocol.url+'?service=WFS&srs=EPSG:4326&version='+wfsProtocol.version+'&request=GetFeature&outputFormat=OGR-KML&typeName='+stateLayer.name);
> 			
> i get kml file for full layer,but i need kml file for selected features when
> i draw polygon.
> 			
> so please reply which param i want add in the window URL(how to form URL) to
> download kml file for selected features.

Did you get any response to this question? I am pretty interested 
myself. One way would be convert the filter to a CQL inquiry. I have 
done this pretty much to make protocol.script work. Its messy stuff but 
works.
(CQL query has to be in native coordinates).


Notice: This email and any attachments are confidential. If received in error please destroy and immediately notify us. Do not copy or disclose the contents.



More information about the Dev mailing list