Ticket #2107 (closed feature: fixed)
Patch for WFS Protocol to allow for different outputFormat
| Reported by: | rdewit | Owned by: | tschaub |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.9 Release |
| Component: | Protocol.WFS | Version: | 2.8 RC3 |
| Keywords: | Cc: | bartvde | |
| State: | Review |
Description
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 attached 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"
}, .....

