This commit is contained in:
Miel Truyen 2020-08-07 18:24:19 +02:00
parent 029d755ea1
commit f3b680e143
5 changed files with 67 additions and 8 deletions

View File

@ -159,7 +159,8 @@ SELECT osm_id,
NULLIF(leisure, ''),
NULLIF(tourism, ''),
NULLIF(place, ''),
NULLIF(waterway, '')
NULLIF(waterway, ''),
NULLIF(man_made, ''),
) AS class
FROM (
-- etldoc: landuse_z4 -> layer_landuse:z4

View File

@ -75,6 +75,7 @@ tables:
- garages
- retail
- religious
- construction
amenity:
- bus_station
- school

View File

@ -77,6 +77,8 @@ def_poi_mapping_barrier: &poi_mapping_barrier
# building values , see http://taginfo.openstreetmap.org/keys/building#values
def_poi_mapping_building: &poi_mapping_building
- dormitory
- office
- industrial
# highway values , see http://taginfo.openstreetmap.org/keys/highway#values
def_poi_mapping_highway: &poi_mapping_highway

View File

@ -18,18 +18,25 @@ layer:
values:
shop:
subclass: ['accessories', 'antiques', 'beauty', 'bed', 'boutique', 'camera', 'carpet', 'charity', 'chemist',
'coffee', 'computer', 'convenience', 'copyshop', 'cosmetics', 'doityourself',
'coffee', 'computer', 'convenience', 'copyshop', 'cosmetics',
'erotic', 'fabric', 'frozen_food', 'video_games', 'video', 'general', 'gift',
'hearing_aids', 'hifi', 'interior_decoration', 'kiosk', 'lamps', 'mall', 'massage', 'motorcycle',
'newsagent', 'outdoor', 'perfumery', 'perfume', 'pet', 'photo',
'second_hand', 'sports', 'stationery', 'tailor', 'tattoo', 'ticket', 'tobacco', 'toys',
'travel_agency', 'watches', 'weapons', 'wholesale']
'hearing_aids', 'hifi', 'interior_decoration', 'kiosk', 'lamps', 'mall', 'massage','outdoor',
'perfumery', 'perfume', 'pet', 'photo', 'second_hand', 'sports', 'stationery', 'tailor', 'tattoo',
'ticket', 'tobacco', 'travel_agency', 'watches', 'weapons', 'wholesale']
optician:
subclass: ['optician']
subclass: ['optician']
toys:
subclass: ['toys']
jewelry:
subclass: ['jewelry']
furniture:
subclass: ['furniture']
newsagent:
subclass: ['newsagent']
paint:
subclass: ['paint']
beverages:
subclass: ['beverages']
electronics:
subclass: ['electronics']
garden_centre:
@ -39,7 +46,7 @@ layer:
shoes:
subclass: ['shoes']
hardware:
subclass: ['hardware']
subclass: ['hardware', 'doityourself']
florist:
subclass: ['florist']
town_hall:
@ -91,6 +98,8 @@ layer:
subclass: ['marina', 'dock']
taxi:
subclass: ['taxi']
motorcycle_dealer:
subclass: ['motorcycle']
car_dealer:
subclass: ['car', 'car_parts']
car_repair:

46
test.sh Normal file
View File

@ -0,0 +1,46 @@
#!/usr/bin/env bash
set -e
# Test script for generating tiles for Lummen and region (e.g. including Hasselt)
export SOURCE=osmfr
export AREA=europe/belgium/flanders
export BBOX=4.964926,50.882471,5.411252,51.071236
# Which zooms to generate in make generate-tiles
export MIN_ZOOM=0
export MAX_ZOOM=16
# Update the .env to match
sed -i "s/MIN_ZOOM=.*/MIN_ZOOM=${MIN_ZOOM}/" .env
sed -i "s/MAX_ZOOM=.*/MAX_ZOOM=${MAX_ZOOM}/" .env
sed -i "s/BBOX=.*/BBOX=${BBOX}/" .env
# Setup
make clean
make DC_OPTS=--rm
# Start from a clean db
make start-db
make destroy-db
make import-data
# ALTERNATIVE would be this
#make start-db-preloaded
# Download
make download-${SOURCE} area="${AREA}"
# Import
make import-osm
make import-borders
make import-wikidata
make import-sql
make analyze-db
# (This potentially screws stuff up?!)
#rm -rf data/${AREA}.dc-config.yml
#make generate-dc-config
# Generate
make generate-tiles
make stop-db