GEOS 3.12.0
Public Member Functions | List of all members
geos::io::GeoJSONReader Class Reference

GeoJSON reader class; see also GeoJSONWriter. More...

#include <GeoJSONReader.h>

Public Member Functions

 GeoJSONReader (const geom::GeometryFactory &gf)
 Inizialize parser with given GeometryFactory.
 
 GeoJSONReader ()
 Inizialize parser with default GeometryFactory.
 
std::unique_ptr< geom::Geometryread (const std::string &geoJsonText) const
 Parse a GeoJSON string returning a Geometry.
 
GeoJSONFeatureCollection readFeatures (const std::string &geoJsonText) const
 

Detailed Description

GeoJSON reader class; see also GeoJSONWriter.

Constructor & Destructor Documentation

◆ GeoJSONReader() [1/2]

geos::io::GeoJSONReader::GeoJSONReader ( const geom::GeometryFactory gf)

Inizialize parser with given GeometryFactory.

Note that all Geometry objects created by the parser will contain a pointer to the given factory so be sure you'll keep the factory alive for the whole GeoJSONReader and created Geometry life.

◆ GeoJSONReader() [2/2]

geos::io::GeoJSONReader::GeoJSONReader ( )

Inizialize parser with default GeometryFactory.


The documentation for this class was generated from the following file: