new GeoJSONReader(geometryFactory)
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.
Parameters:
Name | Type | Description |
---|---|---|
geometryFactory |
GeometryFactory |
Methods
(static) read(geoJson) → {Geometry}
Reads a GeoJSON representation of a Geometry
Parameters:
Name | Type | Description |
---|---|---|
geoJson |
Object | String | a GeoJSON Object or String. |
Returns:
a Geometry.
- Type
- Geometry