1717
1818/**
1919 *
20- * @author jsorel
20+ * @author Johann Sorel (Geomatys)
2121 */
2222public class ClientTest extends AbstractIntegrationTest {
2323
@@ -43,6 +43,41 @@ public void operationTest() throws Exception {
4343 testTransform (factory , "EPSG:4326" , "EPSG:2154" , new double []{48 , 2 }, true , cartTolerance , geogTolerance );
4444 //Geocentric
4545 testTransform (factory , "EPSG:4326" , "EPSG:4978" , new double []{48 , 2 }, true , cartTolerance , geogTolerance );
46+ //Spherical to projection
47+ final String mars1 =
48+ "GEODCRS[\" Mars (2015) / Ocentric\" ,\n " +
49+ " DATUM[\" Mars (2015)\" ,\n " +
50+ " ELLIPSOID[\" Mars (2015)\" , 3396190, 169.8944472236118,\n " +
51+ " LENGTHUNIT[\" metre\" , 1, ID[\" EPSG\" , 9001]]],\n " +
52+ " ANCHOR[\" Viking 1 lander : 47.95137 W\" ]],\n " +
53+ " PRIMEM[\" Reference Meridian\" , 0,\n " +
54+ " ANGLEUNIT[\" degree\" , 0.0174532925199433, ID[\" EPSG\" , 9122]]],\n " +
55+ " CS[spherical, 2],\n " +
56+ " AXIS[\" planetocentric latitude (U)\" , north,\n " +
57+ " ANGLEUNIT[\" degree\" , 0.0174532925199433]],\n " +
58+ " AXIS[\" planetocentric longitude (V)\" , east,\n " +
59+ " ANGLEUNIT[\" degree\" , 0.0174532925199433]],\n " +
60+ " ID[\" IAU\" , 49902, 2015],\n " +
61+ " REMARK[\" Source of IAU Coordinate systems: doi:10.1007/s10569-017-9805-5\" ]]" ;
62+ final String mars2 =
63+ "PROJCRS[\" Mars (2015) / Ocentric / Equirectangular, clon = 0\" ,\n " +
64+ " BASEGEODCRS[\" Mars (2015) / Ocentric\" ,\n " +
65+ " DATUM[\" Mars (2015)\" ,\n " +
66+ " ELLIPSOID[\" Mars (2015)\" , 3396190, 169.8944472236118,\n " +
67+ " LENGTHUNIT[\" metre\" , 1, ID[\" EPSG\" , 9001]]],\n " +
68+ " ANCHOR[\" Viking 1 lander : 47.95137 W\" ]],\n " +
69+ " PRIMEM[\" Reference Meridian\" , 0,\n " +
70+ " ANGLEUNIT[\" degree\" , 0.0174532925199433, ID[\" EPSG\" , 9122]]],\n " +
71+ " ID[\" IAU\" , 49902, 2015]],\n " +
72+ " CONVERSION[\" Equirectangular, clon = 0\" ,\n " +
73+ " METHOD[\" Equidistant Cylindrical\" , ID[\" EPSG\" , 1028]]],\n " +
74+ " CS[Cartesian, 2],\n " +
75+ " AXIS[\" Easting (E)\" , east,\n " +
76+ " LENGTHUNIT[\" metre\" , 1]],\n " +
77+ " AXIS[\" Northing (N)\" , north,\n " +
78+ " LENGTHUNIT[\" metre\" , 1]],\n " +
79+ " ID[\" IAU\" , 49912, 2015]]" ;
80+ testTransform (factory , mars1 , mars2 , new double []{40 , 120 }, true , cartTolerance , geogTolerance );
4681
4782 //test PassThroughTransform : Not working yet
4883 CoordinateReferenceSystem crs1 = CRS .compound (CRS .forCode ("CRS:84" ));
0 commit comments