OpenLayers OpenLayers

Changeset 9533

Show
Ignore:
Timestamp:
07/01/09 01:30:35 (7 months ago)
Author:
bartvde
Message:

parse more elements from SOS GetCapabilities response

Files:

Legend:

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

    r9527 r9533  
    2020        ows: "http://www.opengis.net/ows/1.1", 
    2121        sos: "http://www.opengis.net/sos/1.0", 
    22         xlink: "http://www.w3.org/1999/xlink", 
    23         xsi: "http://www.w3.org/2001/XMLSchema-instance" 
     22        xlink: "http://www.w3.org/1999/xlink" 
    2423    }, 
    2524     
     
    7877            }, 
    7978            "Operation": function(node, obj) { 
    80                 if (node.getAttribute("name") === "GetObservation") { 
     79                var name = node.getAttribute("name"); 
     80                if (name === "GetObservation") { 
    8181                    obj.GetObservation = {}; 
    8282                    this.readChildNodes(node, obj.GetObservation); 
     83                } else if (name === "DescribeSensor") { 
     84                    obj.DescribeSensor = {}; 
     85                    this.readChildNodes(node, obj.DescribeSensor); 
    8386                } 
    8487            }, 
     
    101104                    obj.observedProperties = []; 
    102105                    this.readChildNodes(node, obj.observedProperties); 
     106                } else if (name === "outputFormat") { 
     107                    obj.outputFormat = []; 
     108                    this.readChildNodes(node, obj.outputFormat); 
    103109                } 
    104110            },