aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
+ }
+}