Add gitignore, add scripts to generate the required data
This commit is contained in:
parent
e07050059d
commit
78a31678d8
3 changed files with 74 additions and 0 deletions
18
scripts/mapbuilder.sh
Executable file
18
scripts/mapbuilder.sh
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue