Classes
Methods
# readFeature(geoJSON) → {Feature}
Read the feature from the GeoJSON geometry object.
Parameters:
Name | Type | Description |
---|---|---|
geoJSON |
object
|
GeoJSON geometry |
Feature.
# readFeatures(geoJSON) → {object}
Read the features from the GeoJSON geometry string.
Parameters:
Name | Type | Description |
---|---|---|
geoJSON |
object
|
GeoJSON geometry in geographic coordinates. |
Features.
object
# readGeometry(geoJSON) → {object}
Read the geometry from the GeoJSON geometry string.
Parameters:
Name | Type | Description |
---|---|---|
geoJSON |
object
|
GeoJSON geometry |
Geometry.
object
# writeFeature(feature) → {string}
Encode a feature as a GeoJSON object.
Parameters:
Name | Type | Description |
---|---|---|
feature |
Feature
|
Feature. |
Encoded feature.
string
# writeFeatures(features) → {string}
Encode an array of features as GeoJSON object.
Parameters:
Name | Type | Description |
---|---|---|
features |
Array.<Feature>
|
Features. |
Encoded features.
string
# writeGeometry(geometry) → {string}
Write a single geometry.
Parameters:
Name | Type | Description |
---|---|---|
geometry |
object
|
geometry. |
Geometry
string