diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2020-03-16 17:56:29 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-16 17:56:29 +0100 |
| commit | 6cfc2521d687e3de57fa13b0f80ef05073362571 (patch) | |
| tree | 7509a1282eea3bd939b42fbb7610aadedbb28e85 /include | |
| parent | f0d6b64fee8b796ec038929187b7b725f62a5ba8 (diff) | |
| parent | 175cbad0a7ca202cefff33f240100b01752f8f73 (diff) | |
| download | PROJ-6cfc2521d687e3de57fa13b0f80ef05073362571.tar.gz PROJ-6cfc2521d687e3de57fa13b0f80ef05073362571.zip | |
Merge branch 'master' into add_proj_get_suggested_operation
Diffstat (limited to 'include')
| -rw-r--r-- | include/proj/io.hpp | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/include/proj/io.hpp b/include/proj/io.hpp index 3dcf7928..f07f78b8 100644 --- a/include/proj/io.hpp +++ b/include/proj/io.hpp @@ -1013,6 +1013,8 @@ class PROJ_GCC_DLL AuthorityFactory { PROJ_DLL std::string getDescriptionText(const std::string &code) const; + // non-standard + /** CRS information */ struct CRSInfo { /** Authority name */ @@ -1049,7 +1051,33 @@ class PROJ_GCC_DLL AuthorityFactory { PROJ_DLL std::list<CRSInfo> getCRSInfoList() const; - // non-standard + /** Unit information */ + struct UnitInfo { + /** Authority name */ + std::string authName; + /** Code */ + std::string code; + /** Name */ + std::string name; + /** Category: one of "linear", "linear_per_time", "angular", + * "angular_per_time", "scale", "scale_per_time" or "time" */ + std::string category; + /** Conversion factor to the SI unit. + * It might be 0 in some cases to indicate no known conversion factor. + */ + double convFactor; + /** PROJ short name (may be empty) */ + std::string projShortName; + /** Whether the object is deprecated */ + bool deprecated; + + //! @cond Doxygen_Suppress + UnitInfo(); + //! @endcond + }; + + PROJ_DLL std::list<UnitInfo> getUnitList() const; + PROJ_DLL static AuthorityFactoryNNPtr create(const DatabaseContextNNPtr &context, const std::string &authorityName); |
