69 std::string write(
const geom::Geometry* geometry, GeoJSONType type = GeoJSONType::GEOMETRY);
71 std::string writeFormatted(
const geom::Geometry* geometry, GeoJSONType type = GeoJSONType::GEOMETRY,
int indent = 4);
73 std::string write(
const GeoJSONFeature& feature);
75 std::string write(
const GeoJSONFeatureCollection& features);
79 std::pair<double, double> convertCoordinate(
const geom::CoordinateXY* c);
83 void encode(
const geom::Geometry* g, GeoJSONType type, geos_nlohmann::ordered_json& j);
85 void encodeGeometry(
const geom::Geometry* g, geos_nlohmann::ordered_json& j);
87 void encodePoint(
const geom::Point* p, geos_nlohmann::ordered_json& j);
89 void encodeLineString(
const geom::LineString* l, geos_nlohmann::ordered_json& j);
91 void encodePolygon(
const geom::Polygon* p, geos_nlohmann::ordered_json& j);
93 void encodeMultiPoint(
const geom::MultiPoint* p, geos_nlohmann::ordered_json& j);
101 void encodeFeature(
const geom::Geometry* g, geos_nlohmann::ordered_json& j);
103 void encodeFeatureCollection(
const geom::Geometry* g, geos_nlohmann::ordered_json& j);
105 void encodeFeature(
const GeoJSONFeature& feature, geos_nlohmann::ordered_json& j);
107 void encodeGeoJSONValue(
const std::string& key,
const GeoJSONValue& value, geos_nlohmann::ordered_json& j);