diff --git a/test/srs/projection_interface.cpp b/test/srs/projection_interface.cpp index 54896251f..ac19730bb 100644 --- a/test/srs/projection_interface.cpp +++ b/test/srs/projection_interface.cpp @@ -15,6 +15,7 @@ #include #include #include +#include #include #include "check_geometry.hpp" @@ -28,7 +29,7 @@ int test_main(int, char*[]) typedef point > point_ll; typedef point point_xy; - + { point_ll pt_ll(1, 1); point_ll pt_ll2(0, 0); @@ -49,13 +50,16 @@ int test_main(int, char*[]) point_xy pt_xy(0, 0); projection<> prj = epsg(2000); - + prj.forward(pt_ll, pt_xy); test::check_geometry(pt_xy, "POINT(9413505.3284665551 237337.74515944949)", 0.001); prj.inverse(pt_xy, pt_ll2); // TODO: investigate this wierd result test::check_geometry(pt_ll2, "POINT(-2.4463131191981073 1.5066638962045082)", 0.001); + + projection<> prj2 = esri(37001); + projection<> prj3 = iau2000(19900); } { @@ -87,6 +91,9 @@ int test_main(int, char*[]) prj.inverse(pt_xy, pt_ll2); // TODO: investigate this wierd result test::check_geometry(pt_ll2, "POINT(-2.4463131191981073 1.5066638962045082)", 0.001); + + projection > prj2; + projection > prj3; } { diff --git a/test/srs/projections_static.cpp b/test/srs/projections_static.cpp index b47c6761a..002d1fecf 100644 --- a/test/srs/projections_static.cpp +++ b/test/srs/projections_static.cpp @@ -84,8 +84,8 @@ void test_all() geo_point_type utrecht = bg::make(5.1213, 52.0907); test_forward(amsterdam, utrecht, "+ellps=WGS84 +units=m +lat_1=55 +lat_2=65"); - test_forward(amsterdam, utrecht, "+ellps=WGS84 +units=m"); - test_forward(amsterdam, utrecht, "+ellps=WGS84 +units=m"); + test_forward(amsterdam, utrecht, "+ellps=WGS84 +units=m"); + test_forward(amsterdam, utrecht, "+ellps=WGS84 +units=m"); test_forward(amsterdam, utrecht, "+ellps=WGS84 +units=m", 4); test_forward(amsterdam, utrecht, "+ellps=WGS84 +units=m", 2);