Add gitignore, add scripts to generate the required data

This commit is contained in:
Antonia 2024-08-24 21:02:27 +02:00
parent e07050059d
commit 78a31678d8
3 changed files with 74 additions and 0 deletions

18
scripts/mapbuilder.sh Executable file
View file

@ -0,0 +1,18 @@
#!/bin/bash
temp=$(mktemp -d)
mkdir "$temp/data"
for i in "$1/data/"*
do
ogrmerge.py -single -o "$temp/$i.json" "$i"/*
done
tippecanoe -aN -z10 -o "$temp/strecken.pmtiles" $temp/data/*.json
mv $temp/strecken.pmtiles "$2"
rm -r $temp