[OpenLayers-Dev] Patch for WFS Protocol to allow for different
outputFormat
Roald de Wit
roald.dewit at lisasoft.com
Sun May 24 21:51:11 EDT 2009
Hi,
I wanted to do something relatively simple that is not possible with the
current WFS protocol: request a different outputFormat (JSON in my case).
The following patch makes this possible. I'd like to get feedback on
whether is is the right path to follow to get this done. If it looks
good, I'll create appropriate tests.
Example use:
protocol: new OpenLayers.Protocol.WFS({
readFormat: new OpenLayers.Format.GeoJSON(),
formatOptions: {
outputFormat: "JSON"
}, .....
Regards, Roald
P.S. I sent this to the dev list since trac is unusable atm.
--
Roald de Wit
Software Engineer
roald.dewit at lisasoft.com
Commercial Support for Open Source GIS Software
http://lisasoft.com/LISAsoft/SupportedProducts/
The contents of this email are confidential and may be subject to legal or professional privilege and copyright. No representation is made that this email is free of viruses or other defects. If you have received this communication in error, you may not copy or distribute any part of it or otherwise disclose its contents to anyone. Please advise the sender of your incorrect receipt of this correspondence.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wfs_protocol_custom_outputformat.diff
Type: text/x-patch
Size: 1421 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20090525/4752b5a1/wfs_protocol_custom_outputformat.bin
More information about the Dev
mailing list