mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-07 04:00:37 -06:00
provide some more info in GEOS errors on geojson load
This commit is contained in:
@@ -231,13 +231,20 @@ void GlobeGeometryFeature::createFromSingleGeosGeometry(const geos::geom::Geomet
|
||||
|
||||
_type = GeometryType::Polygon;
|
||||
}
|
||||
catch (geos::util::IllegalStateException&) {
|
||||
LERROR("Non-simple (e.g. self-intersecting) polygons not supported yet");
|
||||
catch (geos::util::IllegalStateException& e) {
|
||||
LERROR(fmt::format(
|
||||
"Non-simple (e.g. self-intersecting) polygons not supported yet. "
|
||||
"GEOS error: '{}'", e.what()
|
||||
));
|
||||
throw ghoul::MissingCaseException();
|
||||
|
||||
// TODO: handle self-intersections points
|
||||
// https://www.sciencedirect.com/science/article/pii/S0304397520304199
|
||||
}
|
||||
catch (geos::util::GEOSException& e) {
|
||||
LERROR(fmt::format("Unknown geos error: {}", e.what()));
|
||||
throw ghoul::MissingCaseException();
|
||||
}
|
||||
break;
|
||||
}
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user