forked from kubilus1/autoortho-scenery
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2b95360
commit 92c6a8f
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
# Outputs Makefile rules for elevations. | ||
# Ortho4XP uses all surrounding tiles' elevations for generation of a tile. | ||
# The generated rules look like this: | ||
# var/run/neighboursOfTile_+12+123.elevation: var/run/tile_+12+123.elevation ... |$(@D) | ||
|
||
# saner programming env: these switches turn some bugs into errors | ||
set -o errexit -o pipefail -o noclobber -o nounset | ||
|
||
tileListFile="$1" | ||
|
||
tiles="" | ||
while read -r dsf; do | ||
tiles="$tiles z_ao__single_${dsf/dsf/zip}" | ||
done < "$tileListFile" | ||
|
||
echo "$tiles" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
# Outputs Makefile rules for elevations. | ||
# Ortho4XP uses all surrounding tiles' elevations for generation of a tile. | ||
# The generated rules look like this: | ||
# var/run/neighboursOfTile_+12+123.elevation: var/run/tile_+12+123.elevation ... |$(@D) | ||
|
||
# saner programming env: these switches turn some bugs into errors | ||
set -o errexit -o pipefail -o noclobber -o nounset | ||
|
||
minLat="$1" | ||
maxLat="$2" | ||
minLon="$3" | ||
maxLon="$4" | ||
|
||
tiles="" | ||
for lat in $(seq "$minLat" "$maxLat"); do | ||
for lon in $(seq "$minLon" "$maxLon"); do | ||
tiles="$tiles z_ao__single_$(printf "%+03d%+04d" "$lat" "$lon").zip" | ||
done | ||
done | ||
|
||
echo "$tiles" |