diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2020-03-16 17:55:36 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-16 17:55:36 +0100 |
| commit | 175cbad0a7ca202cefff33f240100b01752f8f73 (patch) | |
| tree | 3969a91e8499312c698d928f262d219d91aaea3b /src/iso19111/common.cpp | |
| parent | 78eaa34a4816fd9a36e902adae4663f13bc39fab (diff) | |
| parent | 2247841879faebe007ccade45d04027361d5d26c (diff) | |
| download | PROJ-175cbad0a7ca202cefff33f240100b01752f8f73.tar.gz PROJ-175cbad0a7ca202cefff33f240100b01752f8f73.zip | |
Merge pull request #2065 from rouault/add_proj_get_units_from_database
Add proj_get_units_from_database() (fixes #2004)
Diffstat (limited to 'src/iso19111/common.cpp')
| -rw-r--r-- | src/iso19111/common.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/iso19111/common.cpp b/src/iso19111/common.cpp index f2e4de4c..4606905b 100644 --- a/src/iso19111/common.cpp +++ b/src/iso19111/common.cpp @@ -39,6 +39,7 @@ #include "proj/internal/io_internal.hpp" #include "proj.h" +#include "proj_internal.h" #include <cmath> // M_PI #include <cstdlib> @@ -312,7 +313,7 @@ bool UnitOfMeasure::operator!=(const UnitOfMeasure &other) PROJ_PURE_DEFN { //! @cond Doxygen_Suppress std::string UnitOfMeasure::exportToPROJString() const { if (type() == Type::LINEAR) { - auto proj_units = proj_list_units(); + auto proj_units = pj_list_linear_units(); for (int i = 0; proj_units[i].id != nullptr; i++) { if (::fabs(proj_units[i].factor - conversionToSI()) < 1e-10 * conversionToSI()) { |
