Class: module:org/locationtech/jts/io/GeoJSONWriter

module:org/locationtech/jts/io/GeoJSONWriter(geometryFactory)

new module:org/locationtech/jts/io/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
Source:

Methods

write(geometry) → {Object}

Converts a Geometry to its GeoJSON representation.

Parameters:
Name Type Description
geometry Geometry

a Geometry to process.

Source:
Returns:

The GeoJSON representation of the Geometry.

Type
Object