aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorPeter Townsend <38544371+mlptownsend@users.noreply.github.com>2021-11-12 06:39:20 -0600
committerGitHub <noreply@github.com>2021-11-12 13:39:20 +0100
commitac882266b57d04720bb645b8144901127f7427cf (patch)
treeff3e30f46124ca53d842e56d69f9447d934f3b67 /src/init.cpp
parentac113a8898cded7f5359f1edd3abc17a78eee9b4 (diff)
downloadPROJ-ac882266b57d04720bb645b8144901127f7427cf.tar.gz
PROJ-ac882266b57d04720bb645b8144901127f7427cf.zip
Add new option to proj_create_crs_to_crs_from_pj method to force +over on transformation operations (#2914)
Fixes #2512
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/init.cpp b/src/init.cpp
index 61457cb6..b45c1128 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -589,6 +589,9 @@ pj_init_ctx_with_allow_init_epsg(PJ_CONTEXT *ctx, int argc, char **argv, int all
/* Over-ranging flag */
PIN->over = pj_param(ctx, start, "bover").i;
+ if (ctx->forceOver) {
+ PIN->over = ctx->forceOver;
+ }
/* Vertical datum geoid grids */
PIN->has_geoid_vgrids = pj_param(ctx, start, "tgeoidgrids").i;