diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2021-09-07 19:57:36 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2021-09-07 19:57:36 +0200 |
| commit | 5527b10ed140e20fac8e183317514fd59e4c8b99 (patch) | |
| tree | 9682f4e22952a3be38d858d5a00c753a19b7f258 /src/iso19111/coordinatesystem.cpp | |
| parent | 312e511cded7e29d23c5ff5ebf5f1be0bcdc44bb (diff) | |
| download | PROJ-5527b10ed140e20fac8e183317514fd59e4c8b99.tar.gz PROJ-5527b10ed140e20fac8e183317514fd59e4c8b99.zip | |
Support importing/exporting WKT & PROJJSON of 2D axis spherical planetocentric geodetic CRS
Diffstat (limited to 'src/iso19111/coordinatesystem.cpp')
| -rw-r--r-- | src/iso19111/coordinatesystem.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/iso19111/coordinatesystem.cpp b/src/iso19111/coordinatesystem.cpp index 498e3035..f9db5406 100644 --- a/src/iso19111/coordinatesystem.cpp +++ b/src/iso19111/coordinatesystem.cpp @@ -667,6 +667,27 @@ SphericalCSNNPtr SphericalCS::create(const util::PropertyMap &properties, // --------------------------------------------------------------------------- +/** \brief Instantiate a SphericalCS with 2 axis. + * + * This is an extension to ISO19111 to support (planet)-ocentric CS with + * geocentric latitude. + * + * @param properties See \ref general_properties. + * @param axis1 The first axis. + * @param axis2 The second axis. + * @return a new SphericalCS. + */ +SphericalCSNNPtr SphericalCS::create(const util::PropertyMap &properties, + const CoordinateSystemAxisNNPtr &axis1, + const CoordinateSystemAxisNNPtr &axis2) { + std::vector<CoordinateSystemAxisNNPtr> axis{axis1, axis2}; + auto cs(SphericalCS::nn_make_shared<SphericalCS>(axis)); + cs->setProperties(properties); + return cs; +} + +// --------------------------------------------------------------------------- + //! @cond Doxygen_Suppress EllipsoidalCS::~EllipsoidalCS() = default; //! @endcond |
