aboutsummaryrefslogtreecommitdiff
path: root/src/4D_api.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-11-30 16:39:18 +0100
committerGitHub <noreply@github.com>2020-11-30 16:39:18 +0100
commitdc7a0c3c6f6c91cb97a991bdb8e51b805230f901 (patch)
tree515ff8780b19821e66095a8c1173aabb0e8aefdd /src/4D_api.cpp
parente9f7439946d9a6de799b0ba02af549875aae9979 (diff)
parentebe3425bf66287e004958eb53976d3837f88b9e1 (diff)
downloadPROJ-dc7a0c3c6f6c91cb97a991bdb8e51b805230f901.tar.gz
PROJ-dc7a0c3c6f6c91cb97a991bdb8e51b805230f901.zip
Merge pull request #2466 from rouault/fix_2423
cs2cs: add --area and --bbox options to restrict candidate coordinate operations (fixes #2423)
Diffstat (limited to 'src/4D_api.cpp')
-rw-r--r--src/4D_api.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/4D_api.cpp b/src/4D_api.cpp
index 15bc73c8..9231a7ed 100644
--- a/src/4D_api.cpp
+++ b/src/4D_api.cpp
@@ -1287,9 +1287,11 @@ PJ *proj_create_crs_to_crs_from_pj (PJ_CONTEXT *ctx, const PJ *source_crs, cons
area->east_lon_degree,
area->north_lat_degree);
}
+ else {
+ proj_operation_factory_context_set_spatial_criterion(
+ ctx, operation_ctx, PROJ_SPATIAL_CRITERION_PARTIAL_INTERSECTION);
+ }
- proj_operation_factory_context_set_spatial_criterion(
- ctx, operation_ctx, PROJ_SPATIAL_CRITERION_PARTIAL_INTERSECTION);
proj_operation_factory_context_set_grid_availability_use(
ctx, operation_ctx,
proj_context_is_network_enabled(ctx) ?