toWKT
Converts a geometry object to its Well-Known Text (WKT) representation.
Parameters
Name | Type | Default | Description |
---|---|---|---|
geometry | Geometry | The geometry object to be converted to WKT | |
options? | object | Optional WKT output configuration | |
options.dim? | 2 | 3 | 4 | 4 | Output dimensionality of the writer. |
options.precision? | number | 16 | Number places after the decimal to output in WKT. |
options.trim? | boolean | true | Trim trailing 0's from the output coordinates. |
Returns
string
String with WKT representation of the geometry