Class: GeoJSONReader

jsts.io.GeoJSONReader

new GeoJSONReader()

Converts a geometry in GeoJSON to a Geometry.

A GeoJSONReader is parameterized by a GeometryFactory, to allow it to create Geometry objects of the appropriate implementation. In particular, the GeometryFactory determines the PrecisionModel and SRID that is used.

Source:

Methods

read(geoJson) → {jsts.geom.Geometry}

Reads a GeoJSON representation of a Geometry
Parameters:
Name Type Description
geoJson object a GeoJSON Object or String.
Source:
Returns:
a Geometry.
Type
jsts.geom.Geometry