add Format for writing out Web Coverage Service (WCS) requests, r=ahocevar (closes #3375)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12125 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -5,6 +5,9 @@
|
||||
|
||||
/**
|
||||
* @requires OpenLayers/Format/XML.js
|
||||
* @requires OpenLayers/Format/OWSCommon/v1_1_0.js
|
||||
* @requires OpenLayers/Format/WCSGetCoverage.js
|
||||
* @requires OpenLayers/Format/WFST/v1_1_0.js
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -25,7 +28,7 @@ OpenLayers.Format.WPSExecute = OpenLayers.Class(OpenLayers.Format.XML, {
|
||||
wps: "http://www.opengis.net/wps/1.0.0",
|
||||
wfs: "http://www.opengis.net/wfs",
|
||||
ogc: "http://www.opengis.net/ogc",
|
||||
wcs: "http://www.opengis.net/wcs/1.1.1",
|
||||
wcs: "http://www.opengis.net/wcs",
|
||||
xlink: "http://www.w3.org/1999/xlink",
|
||||
xsi: "http://www.w3.org/2001/XMLSchema-instance"
|
||||
},
|
||||
@@ -222,7 +225,10 @@ OpenLayers.Format.WPSExecute = OpenLayers.Class(OpenLayers.Format.XML, {
|
||||
},
|
||||
"Body": function(body) {
|
||||
var node = this.createElementNSPlus("wps:Body", {});
|
||||
if (body.wfs) {
|
||||
if (body.wcs) {
|
||||
this.writeNode("wcs:GetCoverage", body.wcs, node);
|
||||
}
|
||||
else if (body.wfs) {
|
||||
// OpenLayers.Format.WFST expects these to be on the
|
||||
// instance and not in the options
|
||||
this.featureType = body.wfs.featureType;
|
||||
@@ -234,6 +240,7 @@ OpenLayers.Format.WPSExecute = OpenLayers.Class(OpenLayers.Format.XML, {
|
||||
return node;
|
||||
}
|
||||
},
|
||||
"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
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user