aboutsummaryrefslogtreecommitdiff
path: root/include/proj/datum.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/proj/datum.hpp')
-rw-r--r--include/proj/datum.hpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/include/proj/datum.hpp b/include/proj/datum.hpp
index 47bab4a0..00e56a1c 100644
--- a/include/proj/datum.hpp
+++ b/include/proj/datum.hpp
@@ -247,7 +247,8 @@ using EllipsoidNNPtr = util::nn<EllipsoidPtr>;
* \remark Implements Ellipsoid from \ref ISO_19111_2019
*/
class PROJ_GCC_DLL Ellipsoid final : public common::IdentifiedObject,
- public io::IPROJStringExportable {
+ public io::IPROJStringExportable,
+ public io::IJSONExportable {
public:
//! @cond Doxygen_Suppress
PROJ_DLL ~Ellipsoid() override;
@@ -304,6 +305,9 @@ class PROJ_GCC_DLL Ellipsoid final : public common::IdentifiedObject,
_exportToWKT(io::WKTFormatter *formatter)
const override; // throw(io::FormattingException)
+ PROJ_INTERNAL void _exportToJSON(io::JSONFormatter *formatter)
+ const override; // throw(io::FormattingException)
+
PROJ_INTERNAL bool
_isEquivalentTo(const util::IComparable *other,
util::IComparable::Criterion criterion =
@@ -375,7 +379,8 @@ using GeodeticReferenceFrameNNPtr = util::nn<GeodeticReferenceFramePtr>;
*
* \remark Implements GeodeticReferenceFrame from \ref ISO_19111_2019
*/
-class PROJ_GCC_DLL GeodeticReferenceFrame : public Datum {
+class PROJ_GCC_DLL GeodeticReferenceFrame : public Datum,
+ public io::IJSONExportable {
public:
//! @cond Doxygen_Suppress
PROJ_DLL ~GeodeticReferenceFrame() override;
@@ -403,6 +408,9 @@ class PROJ_GCC_DLL GeodeticReferenceFrame : public Datum {
PROJ_INTERNAL void _exportToWKT(io::WKTFormatter *formatter)
const override; // throw(io::FormattingException)
+ PROJ_INTERNAL void _exportToJSON(io::JSONFormatter *formatter)
+ const override; // throw(FormattingException)
+
PROJ_INTERNAL bool
_isEquivalentTo(const util::IComparable *other,
util::IComparable::Criterion criterion =