aboutsummaryrefslogtreecommitdiff
path: root/src/iso19111
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2019-11-16 11:52:29 +0100
committerEven Rouault <even.rouault@spatialys.com>2019-11-16 11:53:17 +0100
commit88875c1b191d5e8f98e66a19ffae7420cdf3fe77 (patch)
tree48be661b4f419d3abee41e405b65e45b56ff4af1 /src/iso19111
parentfab6ae78eaea6881d24d2554be642bc1d2099a7e (diff)
downloadPROJ-88875c1b191d5e8f98e66a19ffae7420cdf3fe77.tar.gz
PROJ-88875c1b191d5e8f98e66a19ffae7420cdf3fe77.zip
proj_create_crs_to_crs(): fix autoselection logic of operation to compute correctly the geographic coordinates of the input coord when the CRS is not Greenwich based
Diffstat (limited to 'src/iso19111')
-rw-r--r--src/iso19111/coordinateoperation.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/iso19111/coordinateoperation.cpp b/src/iso19111/coordinateoperation.cpp
index 287611f8..070dfc20 100644
--- a/src/iso19111/coordinateoperation.cpp
+++ b/src/iso19111/coordinateoperation.cpp
@@ -9346,7 +9346,8 @@ void Transformation::_exportToPROJString(
}
if (!sourceCRSGeog->ellipsoid()->_isEquivalentTo(
- targetCRSGeog->ellipsoid().get())) {
+ targetCRSGeog->ellipsoid().get(),
+ util::IComparable::Criterion::EQUIVALENT)) {
// This is arguable if we should check this...
throw io::FormattingException("Can apply Longitude rotation "
"only to SRS with same "