diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2021-07-20 11:16:10 +0200 |
|---|---|---|
| committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2021-07-20 09:16:36 +0000 |
| commit | 3126383bebf1f2a16bffda30680c79333d5bb9cc (patch) | |
| tree | 318a8d919add94a09436a87b8c9509d26151f33c /src | |
| parent | ff2d8357be7a2cf7d845aabca9f1141136c349be (diff) | |
| download | PROJ-3126383bebf1f2a16bffda30680c79333d5bb9cc.tar.gz PROJ-3126383bebf1f2a16bffda30680c79333d5bb9cc.zip | |
Merge pull request #2782 from rouault/fix_crs_extent_use_none
createOperations(): fix SourceTargetCRSExtentUse::NONE mode
Diffstat (limited to 'src')
| -rw-r--r-- | src/iso19111/operation/coordinateoperationfactory.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/iso19111/operation/coordinateoperationfactory.cpp b/src/iso19111/operation/coordinateoperationfactory.cpp index e04cdb8d..d63db19e 100644 --- a/src/iso19111/operation/coordinateoperationfactory.cpp +++ b/src/iso19111/operation/coordinateoperationfactory.cpp @@ -5346,6 +5346,12 @@ CoordinateOperationFactory::createOperations( metadata::ExtentPtr targetCRSExtent; auto l_resolvedTargetCRS = crs::CRS::getResolvedCRS(l_targetCRS, authFactory, targetCRSExtent); + if (context->getSourceAndTargetCRSExtentUse() == + CoordinateOperationContext::SourceTargetCRSExtentUse::NONE) { + // Make sure *not* to use CRS extent if requested to ignore it + sourceCRSExtent.reset(); + targetCRSExtent.reset(); + } Private::Context contextPrivate(sourceCRSExtent, targetCRSExtent, context); if (context->getSourceAndTargetCRSExtentUse() == |
