From 11f63432d39e33a04e1fb0acd8215b86f27dceb8 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Wed, 1 Jan 2020 14:31:04 +0100 Subject: deformation.cpp: check that unit in TIFF file is 'millimetres per year' which is the official name in EPSG --- src/transformations/deformation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/transformations/deformation.cpp') diff --git a/src/transformations/deformation.cpp b/src/transformations/deformation.cpp index 031e9eba..eb109826 100644 --- a/src/transformations/deformation.cpp +++ b/src/transformations/deformation.cpp @@ -131,8 +131,8 @@ static bool get_grid_values(PJ* P, } } const auto unit = grid->unit(sampleE); - if( !unit.empty() && unit != "mm/year" ) { - proj_log_error(P, "deformation: Only unit=mm/year currently handled"); + if( !unit.empty() && unit != "millimetres per year" ) { + proj_log_error(P, "deformation: Only unit=millimetres per year currently handled"); return false; } -- cgit v1.2.3