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 /src/iso19111/common.cpp | |
| 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 '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()) { |
