aboutsummaryrefslogtreecommitdiff
path: root/include/proj/common.hpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2019-07-06 17:06:23 +0200
committerEven Rouault <even.rouault@spatialys.com>2019-07-08 00:05:00 +0200
commitece151aed1b4bf2634de5759f37fd7bc005e8313 (patch)
tree8e2e38daaffc878cc3ba673857e66274555e3dcc /include/proj/common.hpp
parent17f0b0b3bc65ffba39bf6f22a12b2cc7fcb9bafd (diff)
downloadPROJ-ece151aed1b4bf2634de5759f37fd7bc005e8313.tar.gz
PROJ-ece151aed1b4bf2634de5759f37fd7bc005e8313.zip
CRS JSON: export GeographicCRS and Projected CRS
Diffstat (limited to 'include/proj/common.hpp')
-rw-r--r--include/proj/common.hpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/proj/common.hpp b/include/proj/common.hpp
index d857dafd..0a1f5d19 100644
--- a/include/proj/common.hpp
+++ b/include/proj/common.hpp
@@ -330,10 +330,13 @@ class PROJ_GCC_DLL IdentifiedObject : public util::BaseObject,
//! @cond Doxygen_Suppress
void
formatID(io::WKTFormatter *formatter) const;
- PROJ_INTERNAL void formatRemarks(io::WKTFormatter *formatter) const;
PROJ_INTERNAL void formatID(io::JSONFormatter *formatter) const;
+ PROJ_INTERNAL void formatRemarks(io::WKTFormatter *formatter) const;
+
+ PROJ_INTERNAL void formatRemarks(io::JSONFormatter *formatter) const;
+
PROJ_INTERNAL bool
_isEquivalentTo(const util::IComparable *other,
util::IComparable::Criterion criterion =
@@ -394,6 +397,9 @@ class PROJ_GCC_DLL ObjectDomain : public util::BaseObject,
_exportToWKT(io::WKTFormatter *formatter)
const; // throw(io::FormattingException)
+ PROJ_INTERNAL void _exportToJSON(
+ io::JSONFormatter *formatter) const; // throw(FormattingException)
+
bool
_isEquivalentTo(const util::IComparable *other,
util::IComparable::Criterion criterion =
@@ -455,6 +461,9 @@ class PROJ_GCC_DLL ObjectUsage : public IdentifiedObject {
void baseExportToWKT(
io::WKTFormatter *formatter) const; // throw(io::FormattingException)
+ void baseExportToJSON(
+ io::JSONFormatter *formatter) const; // throw(io::FormattingException)
+
private:
PROJ_OPAQUE_PRIVATE_DATA
ObjectUsage &operator=(const ObjectUsage &other) = delete;