Skip to content

Commit

Permalink
Merge pull request #53 from Qwant/add_filter_reject
Browse files Browse the repository at this point in the history
Add filter reject
  • Loading branch information
sdrll authored Jun 30, 2023
2 parents 0695a9c + 69a4755 commit 5dc503b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 13 deletions.
25 changes: 14 additions & 11 deletions layers/poi/mapping.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

# imposm3 mapping file for https://github.com/osm2vectortiles/imposm3
# Warning: this is not the official imposm3

Expand All @@ -9,6 +8,7 @@ def_poi_mapping_aerialway: &poi_mapping_aerialway
# amenity values , see http://taginfo.openstreetmap.org/keys/amenity#values
def_poi_mapping_amenity: &poi_mapping_amenity
- arts_centre
- atm
- bank
- bar
- bbq
Expand All @@ -17,6 +17,7 @@ def_poi_mapping_amenity: &poi_mapping_amenity
- biergarten
- bus_station
- cafe
- car_sharing
- cinema
- clinic
- college
Expand Down Expand Up @@ -48,11 +49,11 @@ def_poi_mapping_amenity: &poi_mapping_amenity
- prison
- pub
- public_building
- public_bookcase
- recycling
- restaurant
- school
- shelter
- swimming_pool
- taxi
- telephone
- theatre
Expand Down Expand Up @@ -92,13 +93,11 @@ def_poi_mapping_landuse: &poi_mapping_landuse
- basin
- brownfield
- cemetery
- commercial
- military
- port
- recreation_ground
- religious
- reservoir
- retail
- winter_sports

# leisure values , see http://taginfo.openstreetmap.org/keys/leisure#values
Expand All @@ -117,12 +116,13 @@ def_poi_mapping_leisure: &poi_mapping_leisure
- sports_centre
- stadium
- swimming_area
- swimming_pool
- water_park

# office values , see http://taginfo.openstreetmap.org/keys/office#values
def_poi_mapping_office: &poi_mapping_office
- diplomatic
- government
- company

# railway values , see http://taginfo.openstreetmap.org/keys/railway#values
def_poi_mapping_railway: &poi_mapping_railway
Expand Down Expand Up @@ -374,20 +374,20 @@ def_poi_fields: &poi_fields

def_poi_mapping: &poi_mapping
aerialway: *poi_mapping_aerialway
amenity: [__any__]
amenity: *poi_mapping_amenity
barrier: *poi_mapping_barrier
building: *poi_mapping_building
craft: [__any__]
healthcare: [__any__]
craft: [ __any__ ]
healthcare: [ __any__ ]
highway: *poi_mapping_highway
historic: *poi_mapping_historic
landuse: *poi_mapping_landuse
leisure: *poi_mapping_leisure
office: *poi_mapping_office
railway: *poi_mapping_railway
shop: [__any__]
sport: [__any__]
tourism: [__any__]
shop: [ __any__ ]
sport: *poi_mapping_sport
tourism: [ __any__ ]
waterway: *poi_mapping_waterway

tables:
Expand All @@ -402,3 +402,6 @@ tables:
type: polygon
columns: *poi_fields
mapping: *poi_mapping

tags:
load_all: true
2 changes: 2 additions & 0 deletions layers/poi/poi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ layer:
subclass: ['townhall', 'public_building', 'courthouse', 'community_centre']
golf:
subclass: ['golf', 'golf_course', 'miniature_golf']
barrier:
subclass: ['bollard', 'border_control', 'cycle_barrier', 'gate', 'lift_gate', 'sally_port', 'stile', 'toll_booth']
fast_food:
subclass: ['fast_food', 'food_court']
park:
Expand Down
2 changes: 0 additions & 2 deletions layers/water/mapping.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,6 @@ tables:
- reservoir
- basin
- salt_pond
leisure:
- swimming_pool
natural:
- water
- bay
Expand Down

0 comments on commit 5dc503b

Please sign in to comment.