diff --git a/modules/globebrowsing/src/geojson/globegeometryfeature.cpp b/modules/globebrowsing/src/geojson/globegeometryfeature.cpp index c41f17d626..74c699b874 100644 --- a/modules/globebrowsing/src/geojson/globegeometryfeature.cpp +++ b/modules/globebrowsing/src/geojson/globegeometryfeature.cpp @@ -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: