Parses Atom for EO to GeoJSON.
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. |
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. |
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. |
Returns:
The resulting GeoJSON feature.
- Type
- Object
(static) parseEntryLinks(node, result, searchType)
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. |
(static) parseFeedLinks(node, result)
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. |
(static) parseLink(node) → {Object}
Parses an Atom link node.
Parameters:
Name | Type | Description |
---|---|---|
node |
Node | The link node to parse. |
Returns:
The object containing the attributes values from the link node.
- Type
- Object