aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Harvey <andrew@alantgeo.com.au>2021-06-11 18:39:07 +1000
committerAndrew Harvey <andrew@alantgeo.com.au>2021-06-11 18:39:07 +1000
commit33f40e58ead559d3df7a19f04c305aeb48b117a8 (patch)
treeb75914dc80b5086b3df26ba7027345c4152f90d3
parent73d2dafdf6a6e42784c45d081982e76cb0317370 (diff)
indlude osm type/id in admin_level=10 extract
-rw-r--r--Makefile2
-rw-r--r--config/osmium-export-config-adminlevel10.json12
2 files changed, 13 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 9763806..7e07731 100644
--- a/Makefile
+++ b/Makefile
@@ -213,7 +213,7 @@ data/victoria-admin-level10.osm.pbf: data/victoria-admin.osm.pbf
osmium tags-filter --remove-tags --output=$@ $< r/admin_level=10
data/victoria-admin-level10.osm.geojson: data/victoria-admin-level10.osm.pbf
- osmium export --overwrite --geometry-types=polygon --add-unique-id=type_id --output-format=geojsonseq --format-option=print_record_separator=false --output $@ $<
+ osmium export --overwrite --config=config/osmium-export-config-adminlevel10.json --geometry-types=polygon --add-unique-id=type_id --output-format=geojsonseq --format-option=print_record_separator=false --output $@ $<
data/victoria-admin-level10.osm.fgb: data/victoria-admin-level10.osm.geojson
ogr2ogr -f FlatGeobuf $@ $<
diff --git a/config/osmium-export-config-adminlevel10.json b/config/osmium-export-config-adminlevel10.json
new file mode 100644
index 0000000..f531836
--- /dev/null
+++ b/config/osmium-export-config-adminlevel10.json
@@ -0,0 +1,12 @@
+{
+ "attributes": {
+ "type": true,
+ "id": true,
+ "version": false,
+ "changeset": false,
+ "timestamp": false,
+ "uid": false,
+ "user": false,
+ "way_nodes": false
+ }
+}