Skip to content

Commit 879e35f

Browse files
Merge branch 'openmaptiles:main' into main
2 parents 48c3192 + d906163 commit 879e35f

16 files changed

+25
-17
lines changed

pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<maven.compiler.source>21</maven.compiler.source>
1111
<maven.compiler.target>21</maven.compiler.target>
1212
<planetiler.version>0.8.3-SNAPSHOT</planetiler.version>
13-
<junit.version>5.11.2</junit.version>
13+
<junit.version>5.11.3</junit.version>
1414

1515
<mainClass>org.openmaptiles.OpenMapTilesMain</mainClass>
1616
<image.version>${project.version}</image.version>
@@ -229,7 +229,7 @@
229229
<plugin>
230230
<groupId>com.google.cloud.tools</groupId>
231231
<artifactId>jib-maven-plugin</artifactId>
232-
<version>3.4.3</version>
232+
<version>3.4.4</version>
233233
<configuration>
234234
<from>
235235
<image>

src/main/java/org/openmaptiles/OpenMapTilesProfile.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
* </ul>
4343
* Layers can also subscribe to notifications when we finished processing an input source by implementing
4444
* {@link FinishHandler} or post-process features in that layer before rendering the output tile by implementing
45-
* {@link LayerPostProcesser}.
45+
* {@link LayerPostProcessor}.
4646
*/
4747
public class OpenMapTilesProfile extends ForwardingProfile {
4848

src/main/java/org/openmaptiles/layers/Boundary.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public class Boundary implements
9999
ForwardingProfile.OsmRelationPreprocessor,
100100
OpenMapTilesProfile.OsmAllProcessor,
101101
Tables.OsmBoundaryPolygon.Handler,
102-
ForwardingProfile.LayerPostProcesser,
102+
ForwardingProfile.LayerPostProcessor,
103103
ForwardingProfile.FinishHandler {
104104

105105
/*

src/main/java/org/openmaptiles/layers/Building.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
6767
public class Building implements
6868
OpenMapTilesSchema.Building,
6969
Tables.OsmBuildingPolygon.Handler,
70-
ForwardingProfile.LayerPostProcesser,
70+
ForwardingProfile.LayerPostProcessor,
7171
ForwardingProfile.OsmRelationPreprocessor {
7272

7373
/*

src/main/java/org/openmaptiles/layers/Housenumber.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
6666
public class Housenumber implements
6767
OpenMapTilesSchema.Housenumber,
6868
Tables.OsmHousenumberPoint.Handler,
69-
ForwardingProfile.LayerPostProcesser {
69+
ForwardingProfile.LayerPostProcessor {
7070

7171
private static final Logger LOGGER = LoggerFactory.getLogger(Housenumber.class);
7272
private static final String OSM_SEPARATOR = ";";

src/main/java/org/openmaptiles/layers/Landcover.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public class Landcover implements
6666
OpenMapTilesSchema.Landcover,
6767
OpenMapTilesProfile.NaturalEarthProcessor,
6868
Tables.OsmLandcoverPolygon.Handler,
69-
ForwardingProfile.LayerPostProcesser {
69+
ForwardingProfile.LayerPostProcessor {
7070

7171
/*
7272
* Large ice areas come from natural earth and the rest come from OpenStreetMap at higher zoom

src/main/java/org/openmaptiles/layers/Landuse.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
6868
public class Landuse implements
6969
OpenMapTilesSchema.Landuse,
7070
OpenMapTilesProfile.NaturalEarthProcessor,
71-
ForwardingProfile.LayerPostProcesser,
71+
ForwardingProfile.LayerPostProcessor,
7272
Tables.OsmLandusePolygon.Handler {
7373

7474
private static final ZoomFunction<Number> MIN_PIXEL_SIZE_THRESHOLDS = ZoomFunction.fromMaxZoomThresholds(Map.of(

src/main/java/org/openmaptiles/layers/MountainPeak.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public class MountainPeak implements
7575
OpenMapTilesSchema.MountainPeak,
7676
Tables.OsmPeakPoint.Handler,
7777
Tables.OsmMountainLinestring.Handler,
78-
ForwardingProfile.LayerPostProcesser {
78+
ForwardingProfile.LayerPostProcessor {
7979

8080
/*
8181
* Mountain peaks come from OpenStreetMap data and are ranked by importance (based on if they

src/main/java/org/openmaptiles/layers/Park.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
6868
public class Park implements
6969
OpenMapTilesSchema.Park,
7070
Tables.OsmParkPolygon.Handler,
71-
ForwardingProfile.LayerPostProcesser {
71+
ForwardingProfile.LayerPostProcessor {
7272

7373
// constants for determining the minimum zoom level for a park label based on its area
7474
private static final double WORLD_AREA_FOR_70K_SQUARE_METERS =

src/main/java/org/openmaptiles/layers/Place.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public class Place implements
9090
Tables.OsmIslandPolygon.Handler,
9191
Tables.OsmCityPoint.Handler,
9292
Tables.OsmBoundaryPolygon.Handler,
93-
ForwardingProfile.LayerPostProcesser {
93+
ForwardingProfile.LayerPostProcessor {
9494

9595
/*
9696
* Place labels locations and names come from OpenStreetMap, but we also join with natural

src/main/java/org/openmaptiles/layers/Poi.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public class Poi implements
8080
OpenMapTilesSchema.Poi,
8181
Tables.OsmPoiPoint.Handler,
8282
Tables.OsmPoiPolygon.Handler,
83-
ForwardingProfile.LayerPostProcesser,
83+
ForwardingProfile.LayerPostProcessor,
8484
ForwardingProfile.FinishHandler {
8585

8686
/*

src/main/java/org/openmaptiles/layers/Transportation.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public class Transportation implements
9494
Tables.OsmShipwayLinestring.Handler,
9595
Tables.OsmHighwayPolygon.Handler,
9696
OpenMapTilesProfile.NaturalEarthProcessor,
97-
ForwardingProfile.LayerPostProcesser,
97+
ForwardingProfile.LayerPostProcessor,
9898
ForwardingProfile.OsmRelationPreprocessor,
9999
OpenMapTilesProfile.IgnoreWikidata {
100100

src/main/java/org/openmaptiles/layers/TransportationName.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public class TransportationName implements
8181
Tables.OsmHighwayLinestring.Handler,
8282
Tables.OsmAerialwayLinestring.Handler,
8383
Tables.OsmShipwayLinestring.Handler,
84-
ForwardingProfile.LayerPostProcesser,
84+
ForwardingProfile.LayerPostProcessor,
8585
OpenMapTilesProfile.IgnoreWikidata,
8686
ForwardingProfile.OsmNodePreprocessor,
8787
ForwardingProfile.OsmWayPreprocessor {

src/main/java/org/openmaptiles/layers/Water.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public class Water implements
7272
Tables.OsmWaterPolygon.Handler,
7373
OpenMapTilesProfile.NaturalEarthProcessor,
7474
OpenMapTilesProfile.OsmWaterPolygonProcessor,
75-
ForwardingProfile.LayerPostProcesser,
75+
ForwardingProfile.LayerPostProcessor,
7676
ForwardingProfile.FinishHandler {
7777

7878
/*

src/main/java/org/openmaptiles/layers/Waterway.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
7171
public class Waterway implements
7272
OpenMapTilesSchema.Waterway,
7373
Tables.OsmWaterwayLinestring.Handler,
74-
ForwardingProfile.LayerPostProcesser,
74+
ForwardingProfile.LayerPostProcessor,
7575
OpenMapTilesProfile.NaturalEarthProcessor,
7676
ForwardingProfile.OsmRelationPreprocessor,
7777
OpenMapTilesProfile.OsmAllProcessor {

src/main/java/org/openmaptiles/util/OmtLanguageUtils.java

+9-1
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,18 @@ public static Map<String, Object> getNames(Map<String, Object> tags, Translation
114114
return result;
115115
}
116116

117+
public static String string(Object obj) {
118+
return nullIfEmpty(obj == null ? null : obj.toString());
119+
}
120+
121+
public static String transliteratedName(Map<String, Object> tags) {
122+
return Translations.transliterate(string(tags.get("name")));
123+
}
124+
117125
private static Stream<String> getAllNameTranslationsBesidesEnglishAndGerman(Map<String, Object> tags) {
118126
return tags.entrySet().stream()
119127
.filter(e -> !EN_DE_NAME_KEYS.contains(e.getKey()) && VALID_NAME_TAGS.test(e.getKey()))
120128
.map(Map.Entry::getValue)
121-
.map(LanguageUtils::string);
129+
.map(OmtLanguageUtils::string);
122130
}
123131
}

0 commit comments

Comments
 (0)