mirror of
https://github.com/cfpwastaken/planetiler-openmaptiles.git
synced 2026-02-04 04:21:08 +00:00
clean-up, based on recent changes in planetiler-core reg. LayerPostProcesser (#201)
clean-up, based on recent changes in planetiler-core: s/LayerPostProcesser/LayerPostProcessor
This commit is contained in:
@@ -42,7 +42,7 @@ import org.openmaptiles.layers.TransportationName;
|
|||||||
* </ul>
|
* </ul>
|
||||||
* Layers can also subscribe to notifications when we finished processing an input source by implementing
|
* Layers can also subscribe to notifications when we finished processing an input source by implementing
|
||||||
* {@link FinishHandler} or post-process features in that layer before rendering the output tile by implementing
|
* {@link FinishHandler} or post-process features in that layer before rendering the output tile by implementing
|
||||||
* {@link LayerPostProcesser}.
|
* {@link LayerPostProcessor}.
|
||||||
*/
|
*/
|
||||||
public class OpenMapTilesProfile extends ForwardingProfile {
|
public class OpenMapTilesProfile extends ForwardingProfile {
|
||||||
|
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ public class Boundary implements
|
|||||||
ForwardingProfile.OsmRelationPreprocessor,
|
ForwardingProfile.OsmRelationPreprocessor,
|
||||||
OpenMapTilesProfile.OsmAllProcessor,
|
OpenMapTilesProfile.OsmAllProcessor,
|
||||||
Tables.OsmBoundaryPolygon.Handler,
|
Tables.OsmBoundaryPolygon.Handler,
|
||||||
ForwardingProfile.LayerPostProcesser,
|
ForwardingProfile.LayerPostProcessor,
|
||||||
ForwardingProfile.FinishHandler {
|
ForwardingProfile.FinishHandler {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ import org.openmaptiles.generated.Tables;
|
|||||||
public class Building implements
|
public class Building implements
|
||||||
OpenMapTilesSchema.Building,
|
OpenMapTilesSchema.Building,
|
||||||
Tables.OsmBuildingPolygon.Handler,
|
Tables.OsmBuildingPolygon.Handler,
|
||||||
ForwardingProfile.LayerPostProcesser,
|
ForwardingProfile.LayerPostProcessor,
|
||||||
ForwardingProfile.OsmRelationPreprocessor {
|
ForwardingProfile.OsmRelationPreprocessor {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ import org.slf4j.LoggerFactory;
|
|||||||
public class Housenumber implements
|
public class Housenumber implements
|
||||||
OpenMapTilesSchema.Housenumber,
|
OpenMapTilesSchema.Housenumber,
|
||||||
Tables.OsmHousenumberPoint.Handler,
|
Tables.OsmHousenumberPoint.Handler,
|
||||||
ForwardingProfile.LayerPostProcesser {
|
ForwardingProfile.LayerPostProcessor {
|
||||||
|
|
||||||
private static final Logger LOGGER = LoggerFactory.getLogger(Housenumber.class);
|
private static final Logger LOGGER = LoggerFactory.getLogger(Housenumber.class);
|
||||||
private static final String OSM_SEPARATOR = ";";
|
private static final String OSM_SEPARATOR = ";";
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ public class Landcover implements
|
|||||||
OpenMapTilesSchema.Landcover,
|
OpenMapTilesSchema.Landcover,
|
||||||
OpenMapTilesProfile.NaturalEarthProcessor,
|
OpenMapTilesProfile.NaturalEarthProcessor,
|
||||||
Tables.OsmLandcoverPolygon.Handler,
|
Tables.OsmLandcoverPolygon.Handler,
|
||||||
ForwardingProfile.LayerPostProcesser {
|
ForwardingProfile.LayerPostProcessor {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Large ice areas come from natural earth and the rest come from OpenStreetMap at higher zoom
|
* Large ice areas come from natural earth and the rest come from OpenStreetMap at higher zoom
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ import org.openmaptiles.generated.Tables;
|
|||||||
public class Landuse implements
|
public class Landuse implements
|
||||||
OpenMapTilesSchema.Landuse,
|
OpenMapTilesSchema.Landuse,
|
||||||
OpenMapTilesProfile.NaturalEarthProcessor,
|
OpenMapTilesProfile.NaturalEarthProcessor,
|
||||||
ForwardingProfile.LayerPostProcesser,
|
ForwardingProfile.LayerPostProcessor,
|
||||||
Tables.OsmLandusePolygon.Handler {
|
Tables.OsmLandusePolygon.Handler {
|
||||||
|
|
||||||
private static final ZoomFunction<Number> MIN_PIXEL_SIZE_THRESHOLDS = ZoomFunction.fromMaxZoomThresholds(Map.of(
|
private static final ZoomFunction<Number> MIN_PIXEL_SIZE_THRESHOLDS = ZoomFunction.fromMaxZoomThresholds(Map.of(
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ public class MountainPeak implements
|
|||||||
OpenMapTilesSchema.MountainPeak,
|
OpenMapTilesSchema.MountainPeak,
|
||||||
Tables.OsmPeakPoint.Handler,
|
Tables.OsmPeakPoint.Handler,
|
||||||
Tables.OsmMountainLinestring.Handler,
|
Tables.OsmMountainLinestring.Handler,
|
||||||
ForwardingProfile.LayerPostProcesser {
|
ForwardingProfile.LayerPostProcessor {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Mountain peaks come from OpenStreetMap data and are ranked by importance (based on if they
|
* Mountain peaks come from OpenStreetMap data and are ranked by importance (based on if they
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ import org.openmaptiles.util.OmtLanguageUtils;
|
|||||||
public class Park implements
|
public class Park implements
|
||||||
OpenMapTilesSchema.Park,
|
OpenMapTilesSchema.Park,
|
||||||
Tables.OsmParkPolygon.Handler,
|
Tables.OsmParkPolygon.Handler,
|
||||||
ForwardingProfile.LayerPostProcesser {
|
ForwardingProfile.LayerPostProcessor {
|
||||||
|
|
||||||
// constants for determining the minimum zoom level for a park label based on its area
|
// constants for determining the minimum zoom level for a park label based on its area
|
||||||
private static final double WORLD_AREA_FOR_70K_SQUARE_METERS =
|
private static final double WORLD_AREA_FOR_70K_SQUARE_METERS =
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ public class Place implements
|
|||||||
Tables.OsmIslandPolygon.Handler,
|
Tables.OsmIslandPolygon.Handler,
|
||||||
Tables.OsmCityPoint.Handler,
|
Tables.OsmCityPoint.Handler,
|
||||||
Tables.OsmBoundaryPolygon.Handler,
|
Tables.OsmBoundaryPolygon.Handler,
|
||||||
ForwardingProfile.LayerPostProcesser {
|
ForwardingProfile.LayerPostProcessor {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Place labels locations and names come from OpenStreetMap, but we also join with natural
|
* Place labels locations and names come from OpenStreetMap, but we also join with natural
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ public class Poi implements
|
|||||||
OpenMapTilesSchema.Poi,
|
OpenMapTilesSchema.Poi,
|
||||||
Tables.OsmPoiPoint.Handler,
|
Tables.OsmPoiPoint.Handler,
|
||||||
Tables.OsmPoiPolygon.Handler,
|
Tables.OsmPoiPolygon.Handler,
|
||||||
ForwardingProfile.LayerPostProcesser,
|
ForwardingProfile.LayerPostProcessor,
|
||||||
ForwardingProfile.FinishHandler {
|
ForwardingProfile.FinishHandler {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ public class Transportation implements
|
|||||||
Tables.OsmShipwayLinestring.Handler,
|
Tables.OsmShipwayLinestring.Handler,
|
||||||
Tables.OsmHighwayPolygon.Handler,
|
Tables.OsmHighwayPolygon.Handler,
|
||||||
OpenMapTilesProfile.NaturalEarthProcessor,
|
OpenMapTilesProfile.NaturalEarthProcessor,
|
||||||
ForwardingProfile.LayerPostProcesser,
|
ForwardingProfile.LayerPostProcessor,
|
||||||
ForwardingProfile.OsmRelationPreprocessor,
|
ForwardingProfile.OsmRelationPreprocessor,
|
||||||
OpenMapTilesProfile.IgnoreWikidata {
|
OpenMapTilesProfile.IgnoreWikidata {
|
||||||
|
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ public class TransportationName implements
|
|||||||
Tables.OsmHighwayLinestring.Handler,
|
Tables.OsmHighwayLinestring.Handler,
|
||||||
Tables.OsmAerialwayLinestring.Handler,
|
Tables.OsmAerialwayLinestring.Handler,
|
||||||
Tables.OsmShipwayLinestring.Handler,
|
Tables.OsmShipwayLinestring.Handler,
|
||||||
ForwardingProfile.LayerPostProcesser,
|
ForwardingProfile.LayerPostProcessor,
|
||||||
OpenMapTilesProfile.IgnoreWikidata,
|
OpenMapTilesProfile.IgnoreWikidata,
|
||||||
ForwardingProfile.OsmNodePreprocessor,
|
ForwardingProfile.OsmNodePreprocessor,
|
||||||
ForwardingProfile.OsmWayPreprocessor {
|
ForwardingProfile.OsmWayPreprocessor {
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ public class Water implements
|
|||||||
Tables.OsmWaterPolygon.Handler,
|
Tables.OsmWaterPolygon.Handler,
|
||||||
OpenMapTilesProfile.NaturalEarthProcessor,
|
OpenMapTilesProfile.NaturalEarthProcessor,
|
||||||
OpenMapTilesProfile.OsmWaterPolygonProcessor,
|
OpenMapTilesProfile.OsmWaterPolygonProcessor,
|
||||||
ForwardingProfile.LayerPostProcesser,
|
ForwardingProfile.LayerPostProcessor,
|
||||||
ForwardingProfile.FinishHandler {
|
ForwardingProfile.FinishHandler {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ import org.openmaptiles.util.Utils;
|
|||||||
public class Waterway implements
|
public class Waterway implements
|
||||||
OpenMapTilesSchema.Waterway,
|
OpenMapTilesSchema.Waterway,
|
||||||
Tables.OsmWaterwayLinestring.Handler,
|
Tables.OsmWaterwayLinestring.Handler,
|
||||||
ForwardingProfile.LayerPostProcesser,
|
ForwardingProfile.LayerPostProcessor,
|
||||||
OpenMapTilesProfile.NaturalEarthProcessor,
|
OpenMapTilesProfile.NaturalEarthProcessor,
|
||||||
ForwardingProfile.OsmRelationPreprocessor,
|
ForwardingProfile.OsmRelationPreprocessor,
|
||||||
OpenMapTilesProfile.OsmAllProcessor {
|
OpenMapTilesProfile.OsmAllProcessor {
|
||||||
|
|||||||
Reference in New Issue
Block a user