aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2019-01-08 17:32:03 +0100
committerEven Rouault <even.rouault@spatialys.com>2019-01-08 21:25:08 +0100
commit87cde49072b55c220f0ad10fa997fe9a584d1df1 (patch)
tree3ff97c08350adaa997e00eced120010fd0bfdc4c /src
parentf5e5435fd5071d550e0d13f7a5d71e09c1fab2c0 (diff)
downloadPROJ-87cde49072b55c220f0ad10fa997fe9a584d1df1.tar.gz
PROJ-87cde49072b55c220f0ad10fa997fe9a584d1df1.zip
Fix export of BoundCRS as with PROJ_5 convention
Diffstat (limited to 'src')
-rw-r--r--src/iso19111/crs.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/iso19111/crs.cpp b/src/iso19111/crs.cpp
index 7ee1b46c..6776093a 100644
--- a/src/iso19111/crs.cpp
+++ b/src/iso19111/crs.cpp
@@ -3757,13 +3757,6 @@ void BoundCRS::_exportToWKT(io::WKTFormatter *formatter) const {
void BoundCRS::_exportToPROJString(
io::PROJStringFormatter *formatter) const // throw(io::FormattingException)
{
- if (formatter->convention() ==
- io::PROJStringFormatter::Convention::PROJ_5) {
- io::FormattingException::Throw(
- "BoundCRS cannot be exported as a PROJ.5 string, but its baseCRS "
- "might");
- }
-
auto crs_exportable =
dynamic_cast<const io::IPROJStringExportable *>(d->baseCRS_.get());
if (!crs_exportable) {