-
Notifications
You must be signed in to change notification settings - Fork 1
/
filter_osm.sh
executable file
·35 lines (33 loc) · 1.02 KB
/
filter_osm.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash -e
source env.sh
inputfile=${1:?Usage: $0 inputfile outputfile}
outputfile=${2:?Usage: $0 inputfile outputfile}
osmfilter "$inputfile" \
--keep="building" \
--keep="building:part" \
--keep="disused:building" \
--keep="abandoned:building" \
--keep="demolished:building" \
--keep="removed:building" \
--keep="razed:building" \
--keep="landuse" \
--keep-ways="amenity" \
--keep-relations="amenity" \
--keep-ways="man_made" \
--keep-relations="man_made" \
--keep-ways="leisure" \
--keep-relations="leisure" \
--keep-ways="power=plant" \
--keep-relations="power=plant" \
--keep-ways="police" \
--keep-relations="police" \
--keep-ways="aeroway" \
--keep-relations="aeroway" \
--keep-ways="disused:aeroway" \
--keep-relations="disused:aeroway" \
--keep-ways="place=square" \
--keep-relations="place=square" \
--keep-ways="tourism" \
--keep-relations="tourism" \
--keep="type=boundary boundary=administrative" \
-o="$outputfile"