OpenLayers OpenLayers

Changeset 9532

Show
Ignore:
Timestamp:
07/01/09 01:29:34 (9 months ago)
Author:
bartvde
Message:

add basic DescribeSensor support

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/bartvde/sosclient/openlayers/lib/OpenLayers/Format/SOS.js

    r9396 r9532  
    3232    }, 
    3333     
    34     maxValues: 1
     34    maxValues: 25
    3535     
    3636    /** 
     
    119119     */ 
    120120    write: function(name, params) { 
    121         console.log(params); 
    122121        var root = this.writeNode(name, params); 
    123122        this.setAttributeNS( 
     
    311310                return node;  
    312311            }, 
     312            "DescribeSensor": function(options) { 
     313                var node = this.createElementNSPlus("DescribeSensor", { 
     314                    attributes: { 
     315                        version: this.VERSION, 
     316                        service: 'SOS', 
     317                        outputFormat: options.outputFormat 
     318                    }  
     319                });  
     320                this.writeNode("procedure", options, node); 
     321                return node;  
     322            }, 
     323            "procedure": function(options) { 
     324                var node = this.createElementNSPlus("procedure", {value: options.procedure}); 
     325                return node; 
     326            }, 
    313327            "responseFormat": function(options) { 
    314328                var node = this.createElementNSPlus("responseFormat", {value: this.responseFormat});