aboutsummaryrefslogtreecommitdiff
path: root/src/iso19111/coordinateoperation.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-05-16 13:17:08 +0200
committerEven Rouault <even.rouault@spatialys.com>2020-05-16 13:17:08 +0200
commite3e246854ac8b4192bee95283f4e09d6573baa13 (patch)
tree331986959436e149e726caeea61b502fe56f83aa /src/iso19111/coordinateoperation.cpp
parente3bbef82833589c2286c2dde6c8b8d05a91698e0 (diff)
downloadPROJ-e3e246854ac8b4192bee95283f4e09d6573baa13.tar.gz
PROJ-e3e246854ac8b4192bee95283f4e09d6573baa13.zip
createOperations(): improve operation name when inverting a 'axis order change (geographic3D horizontal)' operation
Diffstat (limited to 'src/iso19111/coordinateoperation.cpp')
-rw-r--r--src/iso19111/coordinateoperation.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/iso19111/coordinateoperation.cpp b/src/iso19111/coordinateoperation.cpp
index 0285b89f..35be415f 100644
--- a/src/iso19111/coordinateoperation.cpp
+++ b/src/iso19111/coordinateoperation.cpp
@@ -126,6 +126,8 @@ static const char *BALLPARK_VERTICAL_TRANSFORMATION_NO_ELLIPSOID_VERT_HEIGHT =
"height correction)";
static const std::string AXIS_ORDER_CHANGE_2D_NAME = "axis order change (2D)";
+static const std::string AXIS_ORDER_CHANGE_3D_NAME =
+ "axis order change (geographic3D horizontal)";
//! @endcond
//! @cond Doxygen_Suppress
@@ -4840,8 +4842,7 @@ Conversion::createHeightDepthReversal(const util::PropertyMap &properties) {
*/
ConversionNNPtr Conversion::createAxisOrderReversal(bool is3D) {
if (is3D) {
- return create(createMapNameEPSGCode(
- "axis order change (geographic3D horizontal)", 15499),
+ return create(createMapNameEPSGCode(AXIS_ORDER_CHANGE_3D_NAME, 15499),
createMethodMapNameEPSGCode(
EPSG_CODE_METHOD_AXIS_ORDER_REVERSAL_3D),
{}, {});
@@ -7827,7 +7828,8 @@ createPropertiesForInverse(const CoordinateOperation *op, bool derivedFrom,
}
if (starts_with(tokens[i], INVERSE_OF)) {
name += tokens[i].substr(INVERSE_OF.size());
- } else if (tokens[i] == AXIS_ORDER_CHANGE_2D_NAME) {
+ } else if (tokens[i] == AXIS_ORDER_CHANGE_2D_NAME ||
+ tokens[i] == AXIS_ORDER_CHANGE_3D_NAME) {
name += tokens[i];
} else {
name += INVERSE_OF + tokens[i];