aboutsummaryrefslogtreecommitdiff
path: root/include/proj/metadata.hpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2019-07-06 02:03:50 +0200
committerEven Rouault <even.rouault@spatialys.com>2019-07-06 02:27:46 +0200
commit17f0b0b3bc65ffba39bf6f22a12b2cc7fcb9bafd (patch)
tree5993d701145e2117fb8598faa186312b98d54f00 /include/proj/metadata.hpp
parent1da55c8be619a21153845607a553c9d1206bc792 (diff)
downloadPROJ-17f0b0b3bc65ffba39bf6f22a12b2cc7fcb9bafd.tar.gz
PROJ-17f0b0b3bc65ffba39bf6f22a12b2cc7fcb9bafd.zip
Proof-of-concept of JSON export limited to PrimeMeridian (refs #1545)
Diffstat (limited to 'include/proj/metadata.hpp')
-rw-r--r--include/proj/metadata.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/proj/metadata.hpp b/include/proj/metadata.hpp
index d32996fb..37241e6f 100644
--- a/include/proj/metadata.hpp
+++ b/include/proj/metadata.hpp
@@ -361,7 +361,8 @@ using IdentifierNNPtr = util::nn<IdentifierPtr>;
* originates from \ref ISO_19115
*/
class PROJ_GCC_DLL Identifier : public util::BaseObject,
- public io::IWKTExportable {
+ public io::IWKTExportable,
+ public io::IJSONExportable {
public:
//! @cond Doxygen_Suppress
PROJ_DLL Identifier(const Identifier &other);
@@ -401,6 +402,9 @@ class PROJ_GCC_DLL Identifier : public util::BaseObject,
PROJ_INTERNAL void _exportToWKT(io::WKTFormatter *formatter)
const override; // throw(io::FormattingException)
+ PROJ_INTERNAL void _exportToJSON(io::JSONFormatter *formatter)
+ const override; // throw(io::FormattingException)
+
//! @endcond
protected: