Classes
Methods
# readFeature(wkt) → {Feature}
Read the feature from the WKT geometry string.
Parameters:
Name | Type | Description |
---|---|---|
wkt |
string
|
WKT geometry in geographic coordinates [x,y] [long,lat].. |
Feature.
# readGeometry(wkt) → {object}
Read the geometry from the WKT geometry string.
Parameters:
Name | Type | Description |
---|---|---|
wkt |
string
|
WKT geometry in geographic coordinates. |
Geometry.
object
# writeFeatures(features) → {string}
Encode an array of features as string.
Parameters:
Name | Type | Description |
---|---|---|
features |
object
|
Features. |
Encoded features.
string
# writeGeometry(geometry) → {string}
Write a single geometry.
Parameters:
Name | Type | Description |
---|---|---|
geometry |
object
|
Geometry. |
Geometry.
string