aboutsummaryrefslogtreecommitdiff
path: root/src/iso19111/io.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-12-14 21:12:43 +0100
committerEven Rouault <even.rouault@spatialys.com>2020-12-14 21:12:43 +0100
commit95340fb1d1011d6864d82b60194eb77df9e9e38f (patch)
tree30e2d3909d33c04f7966f996f90c971cd7023ade /src/iso19111/io.cpp
parentbfc54bbac8550e18d352468032ad0b3d5ca2d328 (diff)
downloadPROJ-95340fb1d1011d6864d82b60194eb77df9e9e38f.tar.gz
PROJ-95340fb1d1011d6864d82b60194eb77df9e9e38f.zip
createOperations(): fix inconsistent chaining exception when transforming from BoundCRS of projected CRS based on NTF Paris to BoundCRS of geog CRS NTF Paris. Fixes https://github.com/OSGeo/gdal/issues/3273
Diffstat (limited to 'src/iso19111/io.cpp')
-rw-r--r--src/iso19111/io.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/iso19111/io.cpp b/src/iso19111/io.cpp
index 86ece49d..dc51c5d9 100644
--- a/src/iso19111/io.cpp
+++ b/src/iso19111/io.cpp
@@ -4238,7 +4238,8 @@ createBoundCRSSourceTransformationCRS(const crs::CRSPtr &sourceCRS,
sourceGeographicCRS->datum()->ellipsoid(),
util::optional<std::string>(),
datum::PrimeMeridian::GREENWICH),
- sourceGeographicCRS->coordinateSystem())
+ cs::EllipsoidalCS::createLatitudeLongitude(
+ common::UnitOfMeasure::DEGREE))
.as_nullable();
}
} else {