diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2021-04-10 17:58:04 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2021-04-10 19:17:39 +0200 |
| commit | efef14e274a028b08dbdc5b021d0b8189a63a39c (patch) | |
| tree | 171b42f2c0507c3ef2bf7b9356269379cbe0de11 | |
| parent | 0db805dfab85d8ec6a6ad95a7287624872047c1d (diff) | |
| download | PROJ-efef14e274a028b08dbdc5b021d0b8189a63a39c.tar.gz PROJ-efef14e274a028b08dbdc5b021d0b8189a63a39c.zip | |
Add UnitOfMeasure::FOOT and US_FOOT
| -rw-r--r-- | include/proj/common.hpp | 2 | ||||
| -rw-r--r-- | src/iso19111/static.cpp | 11 |
2 files changed, 13 insertions, 0 deletions
diff --git a/include/proj/common.hpp b/include/proj/common.hpp index c8ffe904..4cc1d63d 100644 --- a/include/proj/common.hpp +++ b/include/proj/common.hpp @@ -125,6 +125,8 @@ class PROJ_GCC_DLL UnitOfMeasure : public util::BaseObject { PROJ_DLL static const UnitOfMeasure METRE; PROJ_DLL static const UnitOfMeasure METRE_PER_YEAR; + PROJ_DLL static const UnitOfMeasure FOOT; + PROJ_DLL static const UnitOfMeasure US_FOOT; PROJ_DLL static const UnitOfMeasure RADIAN; PROJ_DLL static const UnitOfMeasure MICRORADIAN; diff --git a/src/iso19111/static.cpp b/src/iso19111/static.cpp index d099cd6c..e4467882 100644 --- a/src/iso19111/static.cpp +++ b/src/iso19111/static.cpp @@ -317,6 +317,17 @@ const UnitOfMeasure UnitOfMeasure::METRE("metre", 1.0, UnitOfMeasure::Type::LINEAR, Identifier::EPSG, "9001"); +/** \brief Foot, unit of measure of type LINEAR. */ +const UnitOfMeasure UnitOfMeasure::FOOT("foot", 0.3048, + UnitOfMeasure::Type::LINEAR, + Identifier::EPSG, "9002"); + +/** \brief US survey foot, unit of measure of type LINEAR. */ +const UnitOfMeasure UnitOfMeasure::US_FOOT("US survey foot", + 0.304800609601219241184, + UnitOfMeasure::Type::LINEAR, + Identifier::EPSG, "9003"); + /** \brief Degree, unit of measure of type ANGULAR. */ const UnitOfMeasure UnitOfMeasure::DEGREE("degree", M_PI / 180., UnitOfMeasure::Type::ANGULAR, |
