diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/iso19111/io.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/iso19111/io.cpp b/src/iso19111/io.cpp index b2358eb1..8a8ad526 100644 --- a/src/iso19111/io.cpp +++ b/src/iso19111/io.cpp @@ -8783,7 +8783,7 @@ CRSNNPtr PROJStringParser::Private::buildProjectedCRS( if (k >= 0 && k <= 1) { const double es = geogCRS->ellipsoid()->squaredEccentricity(); - if (es < 0) { + if (es < 0 || es == 1) { throw ParsingException("Invalid flattening"); } value = |
