Skip to content

Commit

Permalink
Merge pull request #3618 from rouault/fix_gdal_7210
Browse files Browse the repository at this point in the history
WKT1 parser: only emit warning when encountering invalid UNKNOWN WKT1 axis direction (fixes #7210)
  • Loading branch information
rouault authored Feb 10, 2023
2 parents 1be6e21 + da766b9 commit 049e8d4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/iso19111/io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2634,6 +2634,11 @@ WKTParser::Private::buildAxis(const WKTNodeNNPtr &node,
direction = &AxisDirection::GEOCENTRIC_Z;
} else if (dirString == AxisDirectionWKT1::OTHER.toString()) {
direction = &AxisDirection::UNSPECIFIED;
} else if (dirString == "UNKNOWN") {
// Found in WKT1 of NSIDC's EASE-Grid Sea Ice Age datasets.
// Cf https://github.com/OSGeo/gdal/issues/7210
emitRecoverableWarning("UNKNOWN is not a valid direction name.");
direction = &AxisDirection::UNSPECIFIED;
}

if (!direction) {
Expand Down

0 comments on commit 049e8d4

Please sign in to comment.