fromWKT
Creates a Geometry from Well-Known Text (WKT) representation.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
wkt | string | String containing WKT representation of the geometry | |
options? | object | Optional WKT input configuration | |
options.fix? | boolean | false | Automatically repair structural errors in the input (currently just unclosed rings) while reading. |
Returns
Geometry
A new geometry object created from the WKT string
Throws
GEOSErroron invalid WKT string
See also
Examples
will fix unclosed ring