fix up SOS client example, non-functional change, the underlying SOS service had changed something in the accepted resultModel values
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10713 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
+1
-1
@@ -127,7 +127,7 @@
|
|||||||
var offering = this.SOSCapabilities.contents.offeringList[name];
|
var offering = this.SOSCapabilities.contents.offeringList[name];
|
||||||
var xml = this.obsformat.write({
|
var xml = this.obsformat.write({
|
||||||
eventTime: 'latest',
|
eventTime: 'latest',
|
||||||
resultModel: 'measurement',
|
resultModel: 'om:Measurement',
|
||||||
responseMode: 'inline',
|
responseMode: 'inline',
|
||||||
procedure: feature.attributes.id,
|
procedure: feature.attributes.id,
|
||||||
offering: name,
|
offering: name,
|
||||||
|
|||||||
@@ -104,6 +104,7 @@ OpenLayers.Format.SOSGetObservation = OpenLayers.Class(OpenLayers.Format.XML, {
|
|||||||
*/
|
*/
|
||||||
write: function(options) {
|
write: function(options) {
|
||||||
var node = this.writeNode("sos:GetObservation", options);
|
var node = this.writeNode("sos:GetObservation", options);
|
||||||
|
node.setAttribute("xmlns:om", this.namespaces.om);
|
||||||
this.setAttributeNS(
|
this.setAttributeNS(
|
||||||
node, this.namespaces.xsi,
|
node, this.namespaces.xsi,
|
||||||
"xsi:schemaLocation", this.schemaLocation
|
"xsi:schemaLocation", this.schemaLocation
|
||||||
|
|||||||
Reference in New Issue
Block a user