diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2021-04-12 11:51:10 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-12 11:51:10 +0200 |
| commit | 3bc25ac8a9deb868174a19392266dd2c870e3179 (patch) | |
| tree | 3c31c61f240b01cafda33cce2f40d4f749bf7507 /test | |
| parent | 3361e5286881be9686b11b2bbfb5371d91aba7e8 (diff) | |
| parent | 88426c18e43538edc6075d47b3b6829ada7e9a76 (diff) | |
| download | PROJ-3bc25ac8a9deb868174a19392266dd2c870e3179.tar.gz PROJ-3bc25ac8a9deb868174a19392266dd2c870e3179.zip | |
Merge pull request #2659 from rouault/fix_2603
CRS::normalizeForVisualization(): propagate domains/extent of original CRS (fixes #2603)
Diffstat (limited to 'test')
| -rwxr-xr-x | test/cli/testprojinfo | 5 | ||||
| -rw-r--r-- | test/cli/testprojinfo_out.dist | 3 | ||||
| -rw-r--r-- | test/unit/test_crs.cpp | 4 |
3 files changed, 12 insertions, 0 deletions
diff --git a/test/cli/testprojinfo b/test/cli/testprojinfo index ce8cd762..a9bbfa37 100755 --- a/test/cli/testprojinfo +++ b/test/cli/testprojinfo @@ -135,6 +135,11 @@ echo "Testing -s EPSG:32631 -t EPSG:4326+3855 --3d --summary" >> ${OUT} $EXE -s EPSG:32631 -t EPSG:4326+3855 --3d --summary >>${OUT} 2>&1 echo "" >>${OUT} +# Undocumented option: --normalize-axis-order +echo "Testing -s EPSG:4326 -t EPSG:32661 --normalize-axis-order -o PROJ -q --single-line" >> ${OUT} +$EXE -s EPSG:4326 -t EPSG:32661 --normalize-axis-order -o PROJ -q --single-line >>${OUT} 2>&1 +echo "" >>${OUT} + echo "Testing -s EPSG:4936 -t EPSG:4978 --spatial-test intersects --summary where WGS 84 to ETRS89 (2) uses a transformation method not supported by PROJ currently (time-specific Helmert), and thus must be sorted last" >> ${OUT} $EXE -s EPSG:4936 -t EPSG:4978 --spatial-test intersects --summary >>${OUT} 2>&1 echo "" >>${OUT} diff --git a/test/cli/testprojinfo_out.dist b/test/cli/testprojinfo_out.dist index 4f48b222..596f915c 100644 --- a/test/cli/testprojinfo_out.dist +++ b/test/cli/testprojinfo_out.dist @@ -1238,6 +1238,9 @@ unknown id, Inverse of UTM zone 31N + WGS 84 to EGM2008 height (1), 1 m, World. unknown id, Inverse of UTM zone 31N + WGS 84 to EGM2008 height (2), 0.5 m, World. unknown id, Inverse of UTM zone 31N + Inverse of Transformation from EGM2008 height to WGS 84 (ballpark vertical transformation, without ellipsoid height to vertical height correction), unknown accuracy, World, has ballpark transformation +Testing -s EPSG:4326 -t EPSG:32661 --normalize-axis-order -o PROJ -q --single-line ++proj=pipeline +step +proj=unitconvert +xy_in=deg +xy_out=rad +step +proj=stere +lat_0=90 +lon_0=0 +k=0.994 +x_0=2000000 +y_0=2000000 +ellps=WGS84 + Testing -s EPSG:4936 -t EPSG:4978 --spatial-test intersects --summary where WGS 84 to ETRS89 (2) uses a transformation method not supported by PROJ currently (time-specific Helmert), and thus must be sorted last Candidate operations found: 2 unknown id, Ballpark geocentric translation from ETRS89 to WGS 84, unknown accuracy, World, has ballpark transformation diff --git a/test/unit/test_crs.cpp b/test/unit/test_crs.cpp index 5ff4dd2d..719cd125 100644 --- a/test/unit/test_crs.cpp +++ b/test/unit/test_crs.cpp @@ -1002,6 +1002,10 @@ TEST(crs, EPSG_32661_projected_north_pole_north_east) { EXPECT_EQ( opNormalized->exportToPROJString(PROJStringFormatter::create().get()), proj_string_normalized); + + EXPECT_EQ(opNormalized->sourceCRS()->domains().size(), 1U); + EXPECT_EQ(opNormalized->sourceCRS()->remarks(), + "Axis order reversed compared to EPSG:4326"); } // --------------------------------------------------------------------------- |
