Parses GeoRSS and converts it to GeoJSON.
The Simple and GML encoding of GeoRSS are supported.
Methods
(static) parseBox(node) → {Array}
Parses the specified GeoRSS box node as GeoJSON bounding box.
Parameters:
Name | Type | Description |
---|---|---|
node |
Node | The GeoRSS box node. |
Returns:
The resulting GeoJSON bounding box.
- Type
- Array
(static) parseGml(node) → {Object}
Parses the specified GeoRSS-GML node as a GeoJSON geometry.
Parameters:
Name | Type | Description |
---|---|---|
node |
Node | The GeoRSS node. |
Returns:
The resulting GeoJSON geometry.
- Type
- Object
(static) parseGmlPolygon(node) → {Array}
Extracts the coordinates of the specified GeoRSS-GML Polygon node as a GeoJSON coordinates array.
Parameters:
Name | Type | Description |
---|---|---|
node |
Node | The GeoRSS-GML Polygon node. |
Returns:
The resulting GeoJSON coordinates array.
- Type
- Array
(static) parseLocations(node) → {Array}
Extracts the coordinates of the specified GeoRSS node as a GeoJSON coordinates array.
Parameters:
Name | Type | Description |
---|---|---|
node |
Node | The GeoRSS node. |
Returns:
The resulting GeoJSON coordinates array.
- Type
- Array
(static) parseMultiPolygon(node) → {Array}
Extracts the coordinates of the specified GeoRSS-GML MultiSurface node as a GeoJSON coordinates array.
Parameters:
Name | Type | Description |
---|---|---|
node |
Node | The GeoRSS-GML MultiSurface node. |
Returns:
The resulting GeoJSON coordinates array.
- Type
- Array
(static) parseSimple(node) → {Object}
Parses the specified GeoRSS-Simple node as a GeoJSON geometry.
Parameters:
Name | Type | Description |
---|---|---|
node |
Node | The GeoRSS node. |
Returns:
The resulting GeoJSON geometry.
- Type
- Object