From fc62c13c33369ef167f63ef1cf7d84be0e81906f Mon Sep 17 00:00:00 2001 From: Peter Hanecak Date: Fri, 19 Apr 2024 15:22:58 +0200 Subject: [PATCH 1/2] mvn spotless:apply --- src/main/java/org/openmaptiles/layers/Water.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/openmaptiles/layers/Water.java b/src/main/java/org/openmaptiles/layers/Water.java index 27f52ad6..d3fc8bf8 100644 --- a/src/main/java/org/openmaptiles/layers/Water.java +++ b/src/main/java/org/openmaptiles/layers/Water.java @@ -186,12 +186,12 @@ public void process(Tables.OsmWaterPolygon element, FeatureCollector features) { attemptNeLakeIdMapping(element, fixedGeom); } catch (TopologyException e2) { throw new GeometryException("fix_omt_water_topology_error", - "error fixing polygon: " + e2 + "; original error: " + e); + "error fixing polygon: " + e2 + "; original error: " + e); } } } catch (GeometryException e) { e.log(stats, "omt_water", - "Error getting geometry for OSM feature " + element.source().id()); + "Error getting geometry for OSM feature " + element.source().id()); } } } From 5ec171aae4dd2f273c6a71c53fec4affb88c62fb Mon Sep 17 00:00:00 2001 From: Peter Hanecak Date: Fri, 19 Apr 2024 15:27:21 +0200 Subject: [PATCH 2/2] tweaked error message, to better mach cases when TopologyException occurs --- src/main/java/org/openmaptiles/layers/Water.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/openmaptiles/layers/Water.java b/src/main/java/org/openmaptiles/layers/Water.java index d3fc8bf8..700d101f 100644 --- a/src/main/java/org/openmaptiles/layers/Water.java +++ b/src/main/java/org/openmaptiles/layers/Water.java @@ -191,7 +191,7 @@ public void process(Tables.OsmWaterPolygon element, FeatureCollector features) { } } catch (GeometryException e) { e.log(stats, "omt_water", - "Error getting geometry for OSM feature " + element.source().id()); + "Unable to process intersections for OSM feature " + element.source().id()); } } }