Address warnings and deprecations (#173)

This commit is contained in:
Michael Barry
2024-06-17 05:22:41 -04:00
committed by GitHub
parent 3c7e26da08
commit 4469a50ad9
16 changed files with 65 additions and 66 deletions

View File

@@ -72,8 +72,8 @@ public class Water implements
Tables.OsmWaterPolygon.Handler,
OpenMapTilesProfile.NaturalEarthProcessor,
OpenMapTilesProfile.OsmWaterPolygonProcessor,
ForwardingProfile.FeaturePostProcessor,
OpenMapTilesProfile.FinishHandler {
ForwardingProfile.LayerPostProcesser,
ForwardingProfile.FinishHandler {
/*
* At low zoom levels, use natural earth for oceans and major lakes, and at high zoom levels
@@ -126,7 +126,7 @@ public class Water implements
if (geom.isValid()) {
lakeInfo.geom = geom;
} else {
LOGGER.debug("Fixing geometry of NE lake {}", feature.getLong("ne_id"));
LOGGER.trace("Fixing geometry of NE lake {}", feature.getLong("ne_id"));
lakeInfo.geom = GeometryFixer.fix(geom);
}
lakeInfo.name = feature.getString("name");
@@ -201,7 +201,7 @@ public class Water implements
if (!geom.isValid()) {
geom = GeometryFixer.fix(geom);
stats.dataError("omt_fix_water_before_ne_intersect");
LOGGER.debug("Fixing geometry of OSM element {} before attempt to add ID to natural earth water feature",
LOGGER.trace("Fixing geometry of OSM element {} before attempt to add ID to natural earth water feature",
element.source().id());
}