Class to read GetFeatureInfo responses from Web Mapping Services
OpenLayers. | Class to read GetFeatureInfo responses from Web Mapping Services |
Properties | |
layerIdentifier | {String} All xml nodes containing this search criteria will populate an internal array of layer nodes. |
featureIdentifier | {String} All xml nodes containing this search criteria will populate an internal array of feature nodes for each layer node found. |
regExes | Compiled regular expressions for manipulating strings. |
gmlFormat | {OpenLayers.Format.GML} internal GML format for parsing geometries in msGMLOutput |
Constructor | |
OpenLayers. | Create a new parser for WMS GetFeatureInfo responses |
Functions | |
read | Read WMS GetFeatureInfo data from a string, and return an array of features |
read_msGMLOutput | Parse msGMLOutput nodes. |
read_FeatureInfoResponse | Parse FeatureInfoResponse nodes. |
getSiblingNodesByTagCriteria | Recursively searches passed xml node and all it’s descendant levels for nodes whose tagName contains the passed search string. |
parseAttributes | |
parseGeometry | Parse the geometry and the feature bounds out of the node using Format.GML |
{OpenLayers.Format.GML} internal GML format for parsing geometries in msGMLOutput
read: function( data )
Read WMS GetFeatureInfo data from a string, and return an array of features
data | {String} or {DOMElement} data to read/parse. |
{Array(OpenLayers.Feature.Vector)} An array of features.
getSiblingNodesByTagCriteria: function( node, criteria )
Recursively searches passed xml node and all it’s descendant levels for nodes whose tagName contains the passed search string. This returns an array of all sibling nodes which match the criteria from the highest hierarchial level from which a match is found.
node | {DOMElement} An xml node |
criteria | {String} Search string which will match some part of a tagName |
Array({DOMElement}) An array of sibling xml nodes
Read WMS GetFeatureInfo data from a string, and return an array of features
read: function( data )
Parse msGMLOutput nodes.
read_msGMLOutput: function( data )
Parse FeatureInfoResponse nodes.
read_FeatureInfoResponse: function( data )
Recursively searches passed xml node and all it’s descendant levels for nodes whose tagName contains the passed search string.
getSiblingNodesByTagCriteria: function( node, criteria )
parseAttributes: function( node )
Parse the geometry and the feature bounds out of the node using Format.GML
parseGeometry: function( node )