@@ -50,7 +50,7 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
5050
5151/**
5252 * OSM element parsers generated from the <a href="https://github.com/omniscale/imposm3">imposm3</a> table definitions
53- * in the <a href="https://github.com/openmaptiles/openmaptiles/blob/v3.13/openmaptiles.yaml">OpenMapTiles vector tile
53+ * in the <a href="https://github.com/openmaptiles/openmaptiles/blob/v3.13.1 /openmaptiles.yaml">OpenMapTiles vector tile
5454 * schema</a>.
5555 *
5656 * These filter and parse the raw OSM key/value attribute pairs on tags into records with fields that match the columns
@@ -94,15 +94,15 @@ public record RowHandlerAndClass<T extends Row> (
9494 ) {}
9595 /** An OSM element that would appear in the {@code osm_water_polygon} table generated by imposm3. */
9696 public record OsmWaterPolygon (@ Override String name , @ Override String nameEn , @ Override String nameDe ,
97- @ Override String natural , @ Override String landuse , @ Override String waterway , @ Override String water ,
98- @ Override boolean isIntermittent , @ Override boolean isTunnel , @ Override boolean isBridge ,
97+ @ Override String natural , @ Override String landuse , @ Override String waterway , @ Override String leisure ,
98+ @ Override String water , @ Override boolean isIntermittent , @ Override boolean isTunnel , @ Override boolean isBridge ,
9999 @ Override SourceFeature source ) implements Row , WithName , WithNameEn , WithNameDe , WithNatural , WithLanduse ,
100- WithWaterway , WithWater , WithIsIntermittent , WithIsTunnel , WithIsBridge , WithSource {
100+ WithWaterway , WithLeisure , WithWater , WithIsIntermittent , WithIsTunnel , WithIsBridge , WithSource {
101101 public OsmWaterPolygon (SourceFeature source , String mappingKey ) {
102102 this (source .getString ("name" ), source .getString ("name:en" ), source .getString ("name:de" ),
103103 source .getString ("natural" ), source .getString ("landuse" ), source .getString ("waterway" ),
104- source .getString ("water " ), source .getBoolean ( "intermittent " ), source .getBoolean ("tunnel " ),
105- source .getBoolean ("bridge" ), source );
104+ source .getString ("leisure " ), source .getString ( "water " ), source .getBoolean ("intermittent " ),
105+ source .getBoolean ("tunnel" ), source . getBoolean ( " bridge" ), source );
106106 }
107107
108108 /** Imposm3 "mapping" to filter OSM elements that should appear in this "table". */
@@ -405,8 +405,8 @@ public OsmAerialwayLinestring(SourceFeature source, String mappingKey) {
405405 }
406406
407407 /** Imposm3 "mapping" to filter OSM elements that should appear in this "table". */
408- public static final Expression MAPPING =
409- and ( matchAny ( "aerialway " , "cable_car" , "gondola " ), matchType ("linestring" ));
408+ public static final Expression MAPPING = and ( matchAny ( "aerialway" , "chair_lift" , "drag_lift" , "platter" , "t-bar" ,
409+ "gondola " , "cable_car" , "j-bar" , "mixed_lift " ), matchType ("linestring" ));
410410
411411 /**
412412 * Interface for layer implementations to extend to subscribe to OSM elements filtered and parsed as
@@ -691,20 +691,21 @@ public interface Handler {
691691 public record OsmPoiPoint (@ Override String name , @ Override String nameEn , @ Override String nameDe ,
692692 @ Override String subclass , @ Override String mappingKey , @ Override String station , @ Override String funicular ,
693693 @ Override String information , @ Override String uicRef , @ Override String religion , @ Override long level ,
694- @ Override boolean indoor , @ Override long layer , @ Override String sport , @ Override SourceFeature source )
695- implements Row , WithName , WithNameEn , WithNameDe , WithSubclass , WithMappingKey , WithStation , WithFunicular ,
696- WithInformation , WithUicRef , WithReligion , WithLevel , WithIndoor , WithLayer , WithSport , WithSource {
694+ @ Override boolean indoor , @ Override long layer , @ Override String sport , @ Override String operator ,
695+ @ Override String network , @ Override SourceFeature source ) implements Row , WithName , WithNameEn , WithNameDe ,
696+ WithSubclass , WithMappingKey , WithStation , WithFunicular , WithInformation , WithUicRef , WithReligion , WithLevel ,
697+ WithIndoor , WithLayer , WithSport , WithOperator , WithNetwork , WithSource {
697698 public OsmPoiPoint (SourceFeature source , String mappingKey ) {
698699 this (source .getString ("name" ), source .getString ("name:en" ), source .getString ("name:de" ),
699700 source .getString (mappingKey ), mappingKey , source .getString ("station" ), source .getString ("funicular" ),
700701 source .getString ("information" ), source .getString ("uic_ref" ), source .getString ("religion" ),
701702 source .getLong ("level" ), source .getBoolean ("indoor" ), source .getLong ("layer" ), source .getString ("sport" ),
702- source );
703+ source . getString ( "operator" ), source . getString ( "network" ), source );
703704 }
704705
705706 /** Imposm3 "mapping" to filter OSM elements that should appear in this "table". */
706707 public static final Expression MAPPING = and (or (matchAny ("aerialway" , "station" ),
707- matchAny ("amenity" , "arts_centre" , "bank" , "bar" , "bbq" , "bicycle_parking" , "bicycle_rental" , "biergarten" ,
708+ matchAny ("amenity" , "arts_centre" , "atm" , " bank" , "bar" , "bbq" , "bicycle_parking" , "bicycle_rental" , "biergarten" ,
708709 "bus_station" , "cafe" , "cinema" , "clinic" , "college" , "community_centre" , "courthouse" , "dentist" , "doctors" ,
709710 "drinking_water" , "fast_food" , "ferry_terminal" , "fire_station" , "food_court" , "fuel" , "grave_yard" , "hospital" ,
710711 "ice_cream" , "kindergarten" , "library" , "marketplace" , "motorcycle_parking" , "nightclub" , "nursing_home" ,
@@ -758,20 +759,21 @@ public interface Handler {
758759 public record OsmPoiPolygon (@ Override String name , @ Override String nameEn , @ Override String nameDe ,
759760 @ Override String subclass , @ Override String mappingKey , @ Override String station , @ Override String funicular ,
760761 @ Override String information , @ Override String uicRef , @ Override String religion , @ Override long level ,
761- @ Override boolean indoor , @ Override long layer , @ Override String sport , @ Override SourceFeature source )
762- implements Row , WithName , WithNameEn , WithNameDe , WithSubclass , WithMappingKey , WithStation , WithFunicular ,
763- WithInformation , WithUicRef , WithReligion , WithLevel , WithIndoor , WithLayer , WithSport , WithSource {
762+ @ Override boolean indoor , @ Override long layer , @ Override String sport , @ Override String operator ,
763+ @ Override String network , @ Override SourceFeature source ) implements Row , WithName , WithNameEn , WithNameDe ,
764+ WithSubclass , WithMappingKey , WithStation , WithFunicular , WithInformation , WithUicRef , WithReligion , WithLevel ,
765+ WithIndoor , WithLayer , WithSport , WithOperator , WithNetwork , WithSource {
764766 public OsmPoiPolygon (SourceFeature source , String mappingKey ) {
765767 this (source .getString ("name" ), source .getString ("name:en" ), source .getString ("name:de" ),
766768 source .getString (mappingKey ), mappingKey , source .getString ("station" ), source .getString ("funicular" ),
767769 source .getString ("information" ), source .getString ("uic_ref" ), source .getString ("religion" ),
768770 source .getLong ("level" ), source .getBoolean ("indoor" ), source .getLong ("layer" ), source .getString ("sport" ),
769- source );
771+ source . getString ( "operator" ), source . getString ( "network" ), source );
770772 }
771773
772774 /** Imposm3 "mapping" to filter OSM elements that should appear in this "table". */
773775 public static final Expression MAPPING = and (or (matchAny ("aerialway" , "station" ),
774- matchAny ("amenity" , "arts_centre" , "bank" , "bar" , "bbq" , "bicycle_parking" , "bicycle_rental" , "biergarten" ,
776+ matchAny ("amenity" , "arts_centre" , "atm" , " bank" , "bar" , "bbq" , "bicycle_parking" , "bicycle_rental" , "biergarten" ,
775777 "bus_station" , "cafe" , "cinema" , "clinic" , "college" , "community_centre" , "courthouse" , "dentist" , "doctors" ,
776778 "drinking_water" , "fast_food" , "ferry_terminal" , "fire_station" , "food_court" , "fuel" , "grave_yard" , "hospital" ,
777779 "ice_cream" , "kindergarten" , "library" , "marketplace" , "motorcycle_parking" , "nightclub" , "nursing_home" ,
@@ -1144,6 +1146,11 @@ public interface WithNetwork {
11441146 String network ();
11451147 }
11461148
1149+ /** Rows with a String operator attribute. */
1150+ public interface WithOperator {
1151+ String operator ();
1152+ }
1153+
11471154 /** Rows with a String osmcSymbol attribute. */
11481155 public interface WithOsmcSymbol {
11491156 String osmcSymbol ();
0 commit comments