aboutsummaryrefslogtreecommitdiff
path: root/src/transformations/defmodel.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2021-03-04 11:39:14 +0100
committerGitHub <noreply@github.com>2021-03-04 11:39:14 +0100
commitf278b5bee641dd94245ed54f4eb75e29c3d4d993 (patch)
treeec5700b9a252f27670e821da9f821c8bed867052 /src/transformations/defmodel.cpp
parent948f39a4da835d9e770ece735d58ac488591bd76 (diff)
parent095731d53405309c38bebe31af51d141f6319f1a (diff)
downloadPROJ-f278b5bee641dd94245ed54f4eb75e29c3d4d993.tar.gz
PROJ-f278b5bee641dd94245ed54f4eb75e29c3d4d993.zip
Merge pull request #2551 from rouault/clang_format
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;
}