aboutsummaryrefslogtreecommitdiff
path: root/src/transformations/defmodel.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2021-03-03 18:34:50 +0100
committerEven Rouault <even.rouault@spatialys.com>2021-03-03 18:34:50 +0100
commitd5e07c53993d73cdc85c6cbe48694aa9cc3872f4 (patch)
treede0719771863f6d987d5a0ac195c6e3593decc8f /src/transformations/defmodel.cpp
parent5cf4ca197c36234a60976a236c1af69c76571460 (diff)
downloadPROJ-d5e07c53993d73cdc85c6cbe48694aa9cc3872f4.tar.gz
PROJ-d5e07c53993d73cdc85c6cbe48694aa9cc3872f4.zip
Reformat code with clang-format-10 from ubuntu 20.04
Diffstat (limited to 'src/transformations/defmodel.cpp')
-rw-r--r--src/transformations/defmodel.cpp20
1 files changed, 12 insertions, 8 deletions
diff --git a/src/transformations/defmodel.cpp b/src/transformations/defmodel.cpp
index 0d9f6690..443660c9 100644
--- a/src/transformations/defmodel.cpp
+++ b/src/transformations/defmodel.cpp
@@ -89,15 +89,17 @@ struct Grid : public GridPrototype {
}
}
if (foundDesc && (!foundDescX || !foundDescY)) {
- pj_log(ctx, PJ_LOG_ERROR, "grid %s : Found band description, "
- "but not the ones expected",
+ pj_log(ctx, PJ_LOG_ERROR,
+ "grid %s : Found band description, "
+ "but not the ones expected",
realGrid->name().c_str());
return false;
}
const auto unit = realGrid->unit(sampleX);
if (!unit.empty() && unit != expectedUnit) {
- pj_log(ctx, PJ_LOG_ERROR, "grid %s : Only unit=%s "
- "currently handled for this mode",
+ pj_log(ctx, PJ_LOG_ERROR,
+ "grid %s : Only unit=%s "
+ "currently handled for this mode",
realGrid->name().c_str(), expectedUnit.c_str());
return false;
}
@@ -145,15 +147,17 @@ struct Grid : public GridPrototype {
}
}
if (foundDesc && !foundDescZ) {
- pj_log(ctx, PJ_LOG_ERROR, "grid %s : Found band description, "
- "but not the ones expected",
+ pj_log(ctx, PJ_LOG_ERROR,
+ "grid %s : Found band description, "
+ "but not the ones expected",
realGrid->name().c_str());
return false;
}
const auto unit = realGrid->unit(sampleZ);
if (!unit.empty() && unit != STR_METRE) {
- pj_log(ctx, PJ_LOG_ERROR, "grid %s : Only unit=metre currently "
- "handled for this mode",
+ pj_log(ctx, PJ_LOG_ERROR,
+ "grid %s : Only unit=metre currently "
+ "handled for this mode",
realGrid->name().c_str());
return false;
}