Skip to content

Commit

Permalink
fix: Add join_or tag which is now required in the enhanced YAML format
Browse files Browse the repository at this point in the history
  • Loading branch information
robsavoye committed Sep 10, 2023
1 parent d0f24cb commit 06f926f
Show file tree
Hide file tree
Showing 16 changed files with 32 additions and 17 deletions.
3 changes: 2 additions & 1 deletion osm_fieldwork/data_models/amenities.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ from:
- ways_poly
where:
tags:
- { amenity: [brewery, cafe, bar, pub, fuel, fire_station, library,
- join_or:
- { amenity: [brewery, cafe, bar, pub, fuel, fire_station, library,
townhall, courthouse, hospital, restaurant, clinic], shop:
[alcohol, bakery, car_parts, hardware, convienience, general],
cusine: not null}
Expand Down
3 changes: 2 additions & 1 deletion osm_fieldwork/data_models/buildings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ from:
- ways_poly
where:
tags:
- { building: not null, amenity: not null, tourism: not null }
- join_or:
- { building: not null, amenity: not null, tourism: not null }
keep:
- building
- building:levels
Expand Down
3 changes: 2 additions & 1 deletion osm_fieldwork/data_models/camping.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ from:
- ways_poly
where:
tags:
- { tourism: [camp_site, camp_pitch] }
- join_or:
- { tourism: [camp_site, camp_pitch] }

keep:
- leisure
Expand Down
3 changes: 2 additions & 1 deletion osm_fieldwork/data_models/cemeteries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ from:
- ways_poly
where:
tags:
- { amenity: [grave_yard], landuse: [cemetery] }
- join_or:
- { amenity: [grave_yard], landuse: [cemetery] }
4 changes: 2 additions & 2 deletions osm_fieldwork/data_models/education.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ from:
- ways_poly
where:
tags:
- { amenity:
[college, indergarten, school, music_school, language_school, university]}
- join_or:
- { amenity: [college, indergarten, school, music_school, language_school, university]}
keep:
- wheelchar
- religion
Expand Down
3 changes: 2 additions & 1 deletion osm_fieldwork/data_models/emergency.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ from:
- ways_poly
where:
tags:
- { emergency: not null, fire_hydrant:type: not null }
- join_or:
- { emergency: not null, fire_hydrant:type: not null }
3 changes: 2 additions & 1 deletion osm_fieldwork/data_models/health.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ from:
- ways_poly
where:
tags:
- { healthcare: not null, social_facility: not null, healthcare:speciality: not null }
- join_or:
- { healthcare: not null, social_facility: not null, healthcare:speciality: not null }
keep:
- healthcare:type
- healthcare
Expand Down
3 changes: 2 additions & 1 deletion osm_fieldwork/data_models/highways.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ from:
- ways_line
where:
tags:
- { highway: not null }
- join_or:
- { highway: not null }
keep:
- name
- smoothness
Expand Down
3 changes: 2 additions & 1 deletion osm_fieldwork/data_models/landusage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ from:
- ways_poly
where:
tags:
- { landuse: not null }
- join_or:
- { landuse: not null }
3 changes: 2 additions & 1 deletion osm_fieldwork/data_models/nature.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ from:
- ways_poly
where:
tags:
- { natural: not null }
- join_or:
- { natural: not null }
3 changes: 2 additions & 1 deletion osm_fieldwork/data_models/places.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ from:
- ways_poly
where:
tags:
- { place: not null }
- join_or:
- { place: not null }
3 changes: 2 additions & 1 deletion osm_fieldwork/data_models/religious.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ from:
- ways_poly
where:
tags:
- { religion: not null }
- join_or:
- { religion: not null }
3 changes: 2 additions & 1 deletion osm_fieldwork/data_models/toilets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ from:
- ways_poly
where:
tags:
- { amenity: not null, toilets:access: not null, toilets:disposal: not null, toilets:position: not null, toilets:unisex: not null, toilets:wheelchair: not null }
- join_or:
- { amenity: not null, toilets:access: not null, toilets:disposal: not null, toilets:position: not null, toilets:unisex: not null, toilets:wheelchair: not null }
3 changes: 2 additions & 1 deletion osm_fieldwork/data_models/wastedisposal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ from:
- ways_poly
where:
tags:
- { amenity: [waste_disposal, waste_dump_site, waste_transfer_station, waste_basket, recycling, landfill], waste: not null, recycling_type: not null, recycling: not null, recycling:aluminum: not null, recycling:glass: not null, recycling:hazardous_waste: not null }
- join_or:
- { amenity: [waste_disposal, waste_dump_site, waste_transfer_station, waste_basket, recycling, landfill], waste: not null, recycling_type: not null, recycling: not null, recycling:aluminum: not null, recycling:glass: not null, recycling:hazardous_waste: not null }
3 changes: 2 additions & 1 deletion osm_fieldwork/data_models/waterpoints.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ from:
- ways_poly
where:
tags:
- { drinking_water: not null, amenity: [drinking_water, water_point], man_made: [water_tap] }
- join_or:
- { drinking_water: not null, amenity: [drinking_water, water_point], man_made: [water_tap] }
3 changes: 2 additions & 1 deletion osm_fieldwork/data_models/waterways.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ from:
- ways_line
where:
tags:
- { waterway: not null }
- join_or:
- { waterway: not null }
keep:
- name
- intermittent
Expand Down

0 comments on commit 06f926f

Please sign in to comment.