Members
(inner) parseFunctions
A hash-table associating the node name of common WCS objects with their
according parse function.
Methods
(inner) callParseFunctions(tagName, node)
Calls all registered functions for a specified node name. A merged object
with all results of each function is returned.
Parameters:
Name | Type | Description |
---|---|---|
tagName |
the tagName of the node to be parsed | |
node |
the DOM object |
Returns:
the merged object of all parsing results
(inner) parse(xml, options)
Parses a (EO-)WCS response to JavaScript objects.
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
xml |
the XML string to be parsed | |||||||
options |
options for parsing
Properties
|
Returns:
depending on the response a JavaScript object with all parsed data
or a collection thereof.
(inner) parseCapabilities(node)
Parsing function for wcs:Capabilities elements.
Parameters:
Name | Type | Description |
---|---|---|
node |
the DOM object |
Returns:
the parsed object
(inner) parseCoverageDescription(node)
Parsing function for wcs:CoverageDescription elements.
Parameters:
Name | Type | Description |
---|---|---|
node |
the DOM object |
Returns:
the parsed object
(inner) parseCoverageDescriptions(node)
Parsing function for wcs:CoverageDescriptions elements.
Parameters:
Name | Type | Description |
---|---|---|
node |
the DOM object |
Returns:
the parsed object
(inner) parseExceptionReport(node, options)
Parsing function for ows:ExceptionReport elements.
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
node |
the DOM object | |||||||
options |
Properties
|
Returns:
the parsed object
(inner) pushParseFunction(tagName, parseFunction)
Registers a new node parsing function for a specified tagName. A function
can be registered to multiple tagNames.
Parameters:
Name | Type | Description |
---|---|---|
tagName |
the tagName the function is registered to | |
parseFunction |
the function to be executed. The function shall receive the tag name and a wrapped DOM object as parameters and shall return an object of all parsed attributes. For extension parsing functions only extensive properties shall be parsed. |
(inner) pushParseFunctions(obj)
Convenience function to push multiple parsing functions at one. The same
rules as with `WCS.Core.pushParseFunction` apply here.
Parameters:
Name | Type | Description |
---|---|---|
obj |
a hash-table with key-value pairs, where the key is the tag name and the value the parsing function. |