17 #include <geos/export.h> 19 #include <geos/io/GeoJSON.h> 20 #include <geos/geom/GeometryFactory.h> 21 #include <geos/geom/CoordinateSequence.h> 22 #include <geos/geom/Geometry.h> 24 #include "geos/vend/include_nlohmann_json.hpp" 30 class GeometryCollection;
36 class MultiLineString;
71 std::unique_ptr<geom::Geometry> read(
const std::string& geoJsonText)
const;
73 GeoJSONFeatureCollection readFeatures(
const std::string& geoJsonText)
const;
79 std::unique_ptr<geom::Geometry> readFeatureForGeometry(
const geos_nlohmann::json& j)
const;
81 GeoJSONFeature readFeature(
const geos_nlohmann::json& j)
const;
83 std::map<std::string, GeoJSONValue> readProperties(
const geos_nlohmann::json& p)
const;
85 GeoJSONValue readProperty(
const geos_nlohmann::json& p)
const;
87 std::unique_ptr<geom::Geometry> readFeatureCollectionForGeometry(
88 const geos_nlohmann::json& j)
const;
90 GeoJSONFeatureCollection readFeatureCollection(
91 const geos_nlohmann::json& j)
const;
93 std::unique_ptr<geom::Geometry> readGeometry(
94 const geos_nlohmann::json& j)
const;
96 std::unique_ptr<geom::Point> readPoint(
const geos_nlohmann::json& j)
const;
100 std::unique_ptr<geom::LineString> readLineString(
101 const geos_nlohmann::json& j)
const;
103 std::unique_ptr<geom::Polygon> readPolygon(
104 const geos_nlohmann::json& j)
const;
106 std::unique_ptr<geom::Polygon> readPolygon(
107 const std::vector<std::vector<std::vector<double>>>& c)
const;
109 std::unique_ptr<geom::MultiPoint> readMultiPoint(
110 const geos_nlohmann::json& j)
const;
112 std::unique_ptr<geom::MultiLineString> readMultiLineString(
113 const geos_nlohmann::json& j)
const;
115 std::unique_ptr<geom::MultiPolygon> readMultiPolygon(
116 const geos_nlohmann::json& j)
const;
118 std::unique_ptr<geom::GeometryCollection> readGeometryCollection(
119 const geos_nlohmann::json& j)
const;
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:58
Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...
Definition: GeometryFactory.h:66
Basic namespace for all GEOS functionalities.
Definition: Angle.h:25
GeoJSON reader class; see also GeoJSONWriter.
Definition: GeoJSONReader.h:49