aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-10-31 13:59:25 +0100
committerEven Rouault <even.rouault@spatialys.com>2020-11-01 11:35:47 +0100
commit935538540234890250f77167b7f82a0fc46b47e5 (patch)
treef0c75113bcbe5d8f2c6f426882178c1dd02c8d8d /src
parentb4f5ee6be9b764010d81ba4cbef592b2f6049f0b (diff)
downloadPROJ-935538540234890250f77167b7f82a0fc46b47e5.tar.gz
PROJ-935538540234890250f77167b7f82a0fc46b47e5.zip
Make sure that remarks is preserved when substituting (EPSG) grid name by PROJ one
Diffstat (limited to 'src')
-rw-r--r--src/iso19111/coordinateoperation.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/iso19111/coordinateoperation.cpp b/src/iso19111/coordinateoperation.cpp
index be15b3e0..599e04bd 100644
--- a/src/iso19111/coordinateoperation.cpp
+++ b/src/iso19111/coordinateoperation.cpp
@@ -8836,11 +8836,16 @@ createSimilarPropertiesTransformation(TransformationNNPtr obj) {
// The domain(s) are unchanged
addDomains(map, obj.get());
- std::string forwardName = obj->nameStr();
+ const std::string &forwardName = obj->nameStr();
if (!forwardName.empty()) {
map.set(common::IdentifiedObject::NAME_KEY, forwardName);
}
+ const std::string &remarks = obj->remarks();
+ if (!remarks.empty()) {
+ map.set(common::IdentifiedObject::REMARKS_KEY, remarks);
+ }
+
addModifiedIdentifier(map, obj.get(), false, true);
return map;