diff options
| author | typebrook <typebrook@gmail.com> | 2019-11-19 21:34:34 +0800 |
|---|---|---|
| committer | typebrook <typebrook@gmail.com> | 2019-11-19 21:34:34 +0800 |
| commit | b2470324e3927c5e505ff206aa6d6fe63f42a191 (patch) | |
| tree | cb15f921f8e20e3531d30525f1260b4c15e46d5d /scripts/osm/osm.village.nat_ref.makefile | |
| parent | 56c24f398714b9594085eb85be38e90d24b5b49d (diff) | |
update
Diffstat (limited to 'scripts/osm/osm.village.nat_ref.makefile')
| -rw-r--r-- | scripts/osm/osm.village.nat_ref.makefile | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/osm/osm.village.nat_ref.makefile b/scripts/osm/osm.village.nat_ref.makefile index cfaf92a..a051ee4 100644 --- a/scripts/osm/osm.village.nat_ref.makefile +++ b/scripts/osm/osm.village.nat_ref.makefile | |||
| @@ -19,6 +19,13 @@ village.csv: data/taiwan-latest.osm.pbf | |||
| 19 | FROM multipolygons \ | 19 | FROM multipolygons \ |
| 20 | WHERE admin_level = '9'" | 20 | WHERE admin_level = '9'" |
| 21 | 21 | ||
| 22 | town.csv: data/taiwan-latest.osm.pbf | ||
| 23 | ogr2ogr $@ $< \ | ||
| 24 | -dialect sqlite \ | ||
| 25 | -sql "SELECT osm_id, name, other_tags \ | ||
| 26 | FROM multipolygons \ | ||
| 27 | WHERE admin_level = '5' OR admin_level = '7' OR admin_level = '8'" | ||
| 28 | |||
| 22 | village.no_nat_ref.csv: village.csv | 29 | village.no_nat_ref.csv: village.csv |
| 23 | grep -v nat_ref $< > $@ | 30 | grep -v nat_ref $< > $@ |
| 24 | 31 | ||