diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2019-10-11 23:45:19 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2019-10-12 00:04:23 +0200 |
| commit | c5fa51fb6382504c8e16e443f0781211a5ddf815 (patch) | |
| tree | a237b265c3a870bac1bc9f3a470f4eed569b5542 /src/4D_api.cpp | |
| parent | 109f75c74ee9e251b9507aeb5f3add109042bd5f (diff) | |
| download | PROJ-c5fa51fb6382504c8e16e443f0781211a5ddf815.tar.gz PROJ-c5fa51fb6382504c8e16e443f0781211a5ddf815.zip | |
proj_create_crs_to_crs(): remove elimination of Ballpark operations that caused transformation failures in some cases
Diffstat (limited to 'src/4D_api.cpp')
| -rw-r--r-- | src/4D_api.cpp | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/src/4D_api.cpp b/src/4D_api.cpp index 4b47c4e9..c182b3bf 100644 --- a/src/4D_api.cpp +++ b/src/4D_api.cpp @@ -1137,8 +1137,6 @@ PJ *proj_create_crs_to_crs_from_pj (PJ_CONTEXT *ctx, const PJ *source_crs, cons try { - bool skipDefaultTransforms = true; - // Iterate over source->target candidate transformations and reproject // their long-lat bounding box into the source CRS. for( int i = 0; i < op_count; i++ ) @@ -1150,26 +1148,7 @@ PJ *proj_create_crs_to_crs_from_pj (PJ_CONTEXT *ctx, const PJ *source_crs, cons double east_lon = 0.0; double north_lat = 0.0; - const char* name = proj_get_name(op); - bool canUseOp = true; - if( skipDefaultTransforms && - name && (strstr(name, "Ballpark geographic offset") || - strstr(name, "Ballpark geocentric translation")) ) - { - // Skip default transformations unless there is already one at - // the beginning (in which case all of them will have one) - if( i == 0 ) - { - skipDefaultTransforms = false; - } - else - { - canUseOp = false; - } - } - - if( canUseOp && - proj_get_area_of_use(ctx, op, + if( proj_get_area_of_use(ctx, op, &west_lon, &south_lat, &east_lon, &north_lat, nullptr) ) { if( west_lon <= east_lon ) |
