Skip to content

Commit

Permalink
WKT1 parser: only emit warning when encountering invalid UNKNOWN WKT1…
Browse files Browse the repository at this point in the history
… axis direction (fixes #7210)
  • Loading branch information
rouault committed Feb 9, 2023
1 parent 7704c3e commit da766b9
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 da766b9

Please sign in to comment.