diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2021-09-14 16:13:05 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-14 16:13:05 +0200 |
| commit | 92ca1a9455cdd136aaaeb1dbb0d8d867020e70c6 (patch) | |
| tree | 4afffd03c77810e455aae0265419ad136cfa32a9 /src/iso19111/coordinatesystem.cpp | |
| parent | 884cff477ed084a242bf31cdafe2045c915a4a06 (diff) | |
| parent | 078952e7f078e029d66ab6ca1ed594dfecadd1fc (diff) | |
| download | PROJ-92ca1a9455cdd136aaaeb1dbb0d8d867020e70c6.tar.gz PROJ-92ca1a9455cdd136aaaeb1dbb0d8d867020e70c6.zip | |
Merge pull request #2847 from rouault/spherical_ocentric
Add support for GeodeticCRS using a Spherical ocentric coordinate system
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 |
