Thanks Adam, this looks like a valid fix. Can you create a ticket please? Also, it seems we don't have a CLA from you yet. Can you please submit one if you haven't already?
Thanks, Andreas. On Aug 2, 2011, at 07:05 , Adam Ratcliffe wrote: > 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 > _______________________________________________ > Dev mailing list > d...@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-dev -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. _______________________________________________ Dev mailing list d...@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-dev