aboutsummaryrefslogtreecommitdiff
path: root/src/iso19111/coordinateoperation.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2019-09-23 13:26:02 +0200
committerEven Rouault <even.rouault@spatialys.com>2019-09-23 13:26:02 +0200
commitda802e250b2487d41013829437740628b2ede667 (patch)
tree4b3bcb89b8b94d9718f4cbf73db70f548ce798c0 /src/iso19111/coordinateoperation.cpp
parent91d3d51a5abafb773fca3e4aae3223cdedfc51af (diff)
downloadPROJ-da802e250b2487d41013829437740628b2ede667.tar.gz
PROJ-da802e250b2487d41013829437740628b2ede667.zip
Document the autopromotion to 3D when mix of 2D/3D CRS in createOperations(), and test it (fixes #1623)
Diffstat (limited to 'src/iso19111/coordinateoperation.cpp')
-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 aea8400c..56a3b38c 100644
--- a/src/iso19111/coordinateoperation.cpp
+++ b/src/iso19111/coordinateoperation.cpp
@@ -13445,8 +13445,13 @@ getResolvedCRS(const crs::CRSNNPtr &crs,
* by increasing accuracy. Operations with unknown accuracy are sorted last,
* whatever their area.
*
+ * When one of the source or target CRS has a vertical component but not the
+ * other one, the one that has no vertical component is automatically promoted
+ * to a 3D version, where its vertical axis is the ellipsoidal height in metres,
+ * using the ellipsoid of the base geodetic CRS.
+ *
* @param sourceCRS source CRS.
- * @param targetCRS source CRS.
+ * @param targetCRS target CRS.
* @param context Search context.
* @return a list
*/