aboutsummaryrefslogtreecommitdiff
path: root/test/unit/test_c_api.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-01-23 23:26:17 +0100
committerGitHub <noreply@github.com>2020-01-23 23:26:17 +0100
commit9a4b8a6c21624192e111c7f1388ce4cbbd1d6fa7 (patch)
tree2bc164d821cf6d54958d228a65b823354b9669db /test/unit/test_c_api.cpp
parent0bd886d8b26016d26fac3e1c1bb8ed6982f30c4e (diff)
parentba37cd70b299d8ea918f6bb219805713c9e6507a (diff)
downloadPROJ-9a4b8a6c21624192e111c7f1388ce4cbbd1d6fa7.tar.gz
PROJ-9a4b8a6c21624192e111c7f1388ce4cbbd1d6fa7.zip
Merge pull request #1874 from rouault/backport_epsg_9_8_6
[6.3 backport] Database: update to EPSG v9.8.6
Diffstat (limited to 'test/unit/test_c_api.cpp')
-rw-r--r--test/unit/test_c_api.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/test/unit/test_c_api.cpp b/test/unit/test_c_api.cpp
index 78e6bced..050ffdb8 100644
--- a/test/unit/test_c_api.cpp
+++ b/test/unit/test_c_api.cpp
@@ -3333,9 +3333,11 @@ TEST_F(CApi, proj_get_crs_info_list_from_database) {
ASSERT_NE(list, nullptr);
EXPECT_GT(result_count, 1);
for (int i = 0; i < result_count; i++) {
- EXPECT_LE(list[i]->west_lon_degree, params->west_lon_degree);
+ if (list[i]->west_lon_degree < list[i]->east_lon_degree) {
+ EXPECT_LE(list[i]->west_lon_degree, params->west_lon_degree);
+ EXPECT_GE(list[i]->east_lon_degree, params->east_lon_degree);
+ }
EXPECT_LE(list[i]->south_lat_degree, params->south_lat_degree);
- EXPECT_GE(list[i]->east_lon_degree, params->east_lon_degree);
EXPECT_GE(list[i]->north_lat_degree, params->north_lat_degree);
}
proj_get_crs_list_parameters_destroy(params);
@@ -3360,9 +3362,11 @@ TEST_F(CApi, proj_get_crs_info_list_from_database) {
ASSERT_NE(list, nullptr);
EXPECT_GT(result_count, 1);
for (int i = 0; i < result_count; i++) {
- EXPECT_LE(list[i]->west_lon_degree, params->east_lon_degree);
+ if (list[i]->west_lon_degree < list[i]->east_lon_degree) {
+ EXPECT_LE(list[i]->west_lon_degree, params->west_lon_degree);
+ EXPECT_GE(list[i]->east_lon_degree, params->east_lon_degree);
+ }
EXPECT_LE(list[i]->south_lat_degree, params->north_lat_degree);
- EXPECT_GE(list[i]->east_lon_degree, params->west_lon_degree);
EXPECT_GE(list[i]->north_lat_degree, params->south_lat_degree);
}
proj_get_crs_list_parameters_destroy(params);