new GeoJSONWriter(geometryFactory)
The GeoJSONWriter outputs coordinates rounded to the precision
model. Only the maximum number of decimal places necessary to represent the
ordinates to the required precision will be output.
Parameters:
| Name | Type | Description |
|---|---|---|
geometryFactory |
GeometryFactory |
Methods
(static) write(geometry) → {Object}
Converts a Geometry to its GeoJSON representation.
Parameters:
| Name | Type | Description |
|---|---|---|
geometry |
Geometry | a |
Returns:
The GeoJSON representation of the Geometry.
- Type
- Object