[OpenLayers-Dev] Problem with OpenLayers.Format.WPSExecute and WFS
references
Adam Ratcliffe
adam at prema.co.nz
Tue Aug 2 01:05:17 EDT 2011
Hi,
I'm using the WPSExecute format class in trunk and have found a
problem with the way it's currently implemented. I'm not overly
familiar with the format classes but it seems that WPSExecute
currently augments its writer functions with the WFS v1.1.0 functions
but does not inherit from OpenLayers.Format.WFST.v1_1_0 the helper
functions called by those writer functions. Below is a diff of the
changes I made to get this to work for me:
===================================================================
--- lib/OpenLayers/Format/WPSExecute.js (revision 12201)
+++ lib/OpenLayers/Format/WPSExecute.js (working copy)
@@ -16,7 +16,11 @@
* Inherits from:
* - <OpenLayers.Format.XML>
*/
-OpenLayers.Format.WPSExecute = OpenLayers.Class(OpenLayers.Format.XML, {
+OpenLayers.Format.WPSExecute =
OpenLayers.Class(OpenLayers.Format.WFST.v1_1_0, {
+
+ initialize: function(options) {
+ OpenLayers.Format.WFST.v1_1_0.prototype.initialize.apply(this,
[options]);
+ },
/**
* Property: namespaces
@@ -242,7 +246,10 @@
},
"wcs": OpenLayers.Format.WCSGetCoverage.prototype.writers.wcs,
"wfs": OpenLayers.Format.WFST.v1_1_0.prototype.writers.wfs,
- "ows": OpenLayers.Format.OWSCommon.v1_1_0.prototype.writers.ows
+ "ows": OpenLayers.Format.OWSCommon.v1_1_0.prototype.writers.ows,
+ "gml": OpenLayers.Format.GML.v2.prototype.writers.gml,
+ "feature": OpenLayers.Format.GML.v2.prototype.writers.feature,
+ "ogc": OpenLayers.Format.Filter.v1_0_0.prototype.writers.ogc
},
CLASS_NAME: "OpenLayers.Format.WPSExecute"
Cheers
Adam
More information about the Dev
mailing list