aboutsummaryrefslogtreecommitdiff
path: root/test/unit/test_factory.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2019-03-25 13:56:43 +0100
committerEven Rouault <even.rouault@spatialys.com>2019-03-25 13:56:43 +0100
commit09db4826d4a1e5df900cb4b93a4b3eae2c487cb9 (patch)
treeee4ba388d7d9507397b5cbad5814cb7e1ee540c0 /test/unit/test_factory.cpp
parent46f08f1434f66a4160d7c74923efcfb81505b398 (diff)
downloadPROJ-09db4826d4a1e5df900cb4b93a4b3eae2c487cb9.tar.gz
PROJ-09db4826d4a1e5df900cb4b93a4b3eae2c487cb9.zip
WKT2_2018: always export ID of SOURCECRS/TARGETCRS and STEPs
even if there is one on upper node This is a particular logic allowed by paragraph 7.3.3 Identifier of OGC 18-010r6
Diffstat (limited to 'test/unit/test_factory.cpp')
-rw-r--r--test/unit/test_factory.cpp18
1 files changed, 12 insertions, 6 deletions
diff --git a/test/unit/test_factory.cpp b/test/unit/test_factory.cpp
index 944e0ebe..f4c560d5 100644
--- a/test/unit/test_factory.cpp
+++ b/test/unit/test_factory.cpp
@@ -734,7 +734,8 @@ TEST(factory, AuthorityFactory_createCoordinateOperation_helmert_15_CF) {
" LENGTHUNIT[\"metre\",1]],\n"
" AXIS[\"(Z)\",geocentricZ,\n"
" ORDER[3],\n"
- " LENGTHUNIT[\"metre\",1]]]],\n"
+ " LENGTHUNIT[\"metre\",1]],\n"
+ " ID[\"EPSG\",5332]]],\n"
" TARGETCRS[\n"
" GEODCRS[\"GDA94\",\n"
" DATUM[\"Geocentric Datum of Australia 1994\",\n"
@@ -751,7 +752,8 @@ TEST(factory, AuthorityFactory_createCoordinateOperation_helmert_15_CF) {
" LENGTHUNIT[\"metre\",1]],\n"
" AXIS[\"(Z)\",geocentricZ,\n"
" ORDER[3],\n"
- " LENGTHUNIT[\"metre\",1]]]],\n"
+ " LENGTHUNIT[\"metre\",1]],\n"
+ " ID[\"EPSG\",4938]]],\n"
" METHOD[\"Time-dependent Coordinate Frame rotation (geocen)\",\n"
" ID[\"EPSG\",1056]],\n"
" PARAMETER[\"X-axis translation\",-84.68,\n"
@@ -885,7 +887,8 @@ TEST(
" ANGLEUNIT[\"degree\",0.0174532925199433]],\n"
" AXIS[\"geodetic longitude (Lon)\",east,\n"
" ORDER[2],\n"
- " ANGLEUNIT[\"degree\",0.0174532925199433]]]],\n"
+ " ANGLEUNIT[\"degree\",0.0174532925199433]],\n"
+ " ID[\"EPSG\",4749]]],\n"
" TARGETCRS[\n"
" GEOGCRS[\"NEA74 Noumea\",\n"
" DATUM[\"NEA74 Noumea\",\n"
@@ -899,7 +902,8 @@ TEST(
" ANGLEUNIT[\"degree\",0.0174532925199433]],\n"
" AXIS[\"geodetic longitude (Lon)\",east,\n"
" ORDER[2],\n"
- " ANGLEUNIT[\"degree\",0.0174532925199433]]]],\n"
+ " ANGLEUNIT[\"degree\",0.0174532925199433]],\n"
+ " ID[\"EPSG\",4644]]],\n"
" METHOD[\"NTv2\",\n"
" ID[\"EPSG\",9615]],\n"
" PARAMETERFILE[\"Latitude and longitude difference "
@@ -953,7 +957,8 @@ TEST(factory, AuthorityFactory_createCoordinateOperation_other_transformation) {
" ANGLEUNIT[\"degree\",0.0174532925199433]],\n"
" AXIS[\"geodetic longitude (Lon)\",east,\n"
" ORDER[2],\n"
- " ANGLEUNIT[\"degree\",0.0174532925199433]]]],\n"
+ " ANGLEUNIT[\"degree\",0.0174532925199433]],\n"
+ " ID[\"EPSG\",4818]]],\n"
" TARGETCRS[\n"
" GEOGCRS[\"S-JTSK\",\n"
" DATUM[\"System of the Unified Trigonometrical Cadastral "
@@ -968,7 +973,8 @@ TEST(factory, AuthorityFactory_createCoordinateOperation_other_transformation) {
" ANGLEUNIT[\"degree\",0.0174532925199433]],\n"
" AXIS[\"geodetic longitude (Lon)\",east,\n"
" ORDER[2],\n"
- " ANGLEUNIT[\"degree\",0.0174532925199433]]]],\n"
+ " ANGLEUNIT[\"degree\",0.0174532925199433]],\n"
+ " ID[\"EPSG\",4156]]],\n"
" METHOD[\"Longitude rotation\",\n"
" ID[\"EPSG\",9601]],\n"
" PARAMETER[\"Longitude offset\",-17.6666666666667,\n"