[srs] Support axis orientation using the +axis proj4 argument

This commit is contained in:
Vissarion Fisikopoulos
2022-05-20 17:21:06 +03:00
parent 442d03cef5
commit 38d47dd7cb
9 changed files with 221 additions and 12 deletions

View File

@@ -413,7 +413,21 @@ void test_srs()
// EPSG:9833 Hyperbolic Cassini-Soldner, SRS EPSG:3139
test_both<P>("cass", 179.99433651, -16.841456514, 322174, 268950,
"+proj=cass +hyperbolic +lat_0=-16.25 +lon_0=179.33333332 +x_0=251727.9155424\
+y_0=334519.953768 +towgs84=51,391,-36,0,0,0,0");
+y_0=334519.953768 +towgs84=51,391,-36,0,0,0,0 +axis=enu");
// test +axis argument
test_both<P>("cass", 179.99433651, -16.841456514, -322174, 268950,
"+proj=cass +hyperbolic +lat_0=-16.25 +lon_0=179.33333332 +x_0=251727.9155424\
+y_0=334519.953768 +towgs84=51,391,-36,0,0,0,0 +axis=wnu");
test_both<P>("cass", 179.99433651, -16.841456514, 322174, -268950,
"+proj=cass +hyperbolic +lat_0=-16.25 +lon_0=179.33333332 +x_0=251727.9155424\
+y_0=334519.953768 +towgs84=51,391,-36,0,0,0,0 +axis=esu");
test_both<P>("cass", 179.99433651, -16.841456514, -322174, -268950,
"+proj=cass +hyperbolic +lat_0=-16.25 +lon_0=179.33333332 +x_0=251727.9155424\
+y_0=334519.953768 +towgs84=51,391,-36,0,0,0,0 +axis=wsu");
test_both<P>("cass", 179.99433651, -16.841456514, 268950, 322174,
"+proj=cass +hyperbolic +lat_0=-16.25 +lon_0=179.33333332 +x_0=251727.9155424\
+y_0=334519.953768 +towgs84=51,391,-36,0,0,0,0 +axis=neu");
}
int test_main(int, char* [])