Module: OpenSearchAtomParser

Methods

(static) parse(xmlString, searchType) → {Object}

Parses Atom for EO as GeoJSON feature collection.
Parameters:
Name Type Description
xmlString String The Atom response as a string.
searchType String The relation type.
Source:
Returns:
The resulting GeoJSON feature collection.
Type
Object

(static) parseAttributesAsString(node) → {String}

Parses the attributes of a node as a string. Each attribute is in the format name="value". The attributes are delimited by a space. Example: 'name="value" name="value"'
Parameters:
Name Type Description
node Node The node to parse.
Source:
Returns:
The resulting string.
Type
String

(static) parseEntry(entryNode, searchType) → {Object}

Parses an Atom entry node as a GeoJSON feature.
Parameters:
Name Type Description
entryNode Node The entry node to parse.
searchType String The relation type.
Source:
Returns:
The resulting GeoJSON feature.
Type
Object
Parses the links in the entry node.
Parameters:
Name Type Description
node Node The link node to parse.
result Object The object to store the parsed results.
searchType String The relation type.
Source:
Parses the links in the feed node.
Parameters:
Name Type Description
node Node The link node to parse.
result Object The object to store the parsed results.
Source:
Parses an Atom link node.
Parameters:
Name Type Description
node Node The link node to parse.
Source:
Returns:
The object containing the attributes values from the link node.
Type
Object