Build points from repo

This commit is contained in:
Antonia 2025-03-25 22:22:03 +01:00
parent 634df5ebf4
commit 4c9b1b555f

View file

@ -15,8 +15,17 @@ do
done
tippecanoe -aN -z"$zoom" -o "$temp/strecken.pmtiles" $temp/*.json
mv $temp/strecken.pmtiles "$2"
if [ -f "$1/points.json" ]
then
ogr2ogr -t_srs WGS84 "$temp/points.json" "$1/points.json"
tippecanoe -aN -z12 -r1 -o "$temp/points.pmtiles" "$temp/points.json"
jq '.points_url = "points.pmtiles"' "$1/layers.json" > "$2/layers.json"
fi
mv $temp/*.pmtiles "$2"
rm -r $temp