diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2021-07-20 04:28:09 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2021-07-20 04:28:13 +0200 |
| commit | be83b7dd836a94ce7cba999716f8bff1c2effac0 (patch) | |
| tree | 714495c294b02ae95879b798300afec46996fd16 /src/iso19111/operation/coordinateoperationfactory.cpp | |
| parent | 88147888b8cbfcd7bcba6991de857029ac095dc6 (diff) | |
| download | PROJ-be83b7dd836a94ce7cba999716f8bff1c2effac0.tar.gz PROJ-be83b7dd836a94ce7cba999716f8bff1c2effac0.zip | |
createOperations(): fix SourceTargetCRSExtentUse::NONE mode
Fix issue reported in https://lists.osgeo.org/pipermail/proj/2021-July/010318.html
Diffstat (limited to 'src/iso19111/operation/coordinateoperationfactory.cpp')
| -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() == |
