-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrenderTiles.ps1
More file actions
24 lines (17 loc) · 871 Bytes
/
renderTiles.ps1
File metadata and controls
24 lines (17 loc) · 871 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# this is designed to run on keira's computer in particular. it shouldn't be *too* difficult to change, however.
# note that to export... i think all you'll need tbh is uhhh the Roadgeek 2014 fonts, plus probably changing a few env vars somewhere
$python = "C:\Program Files\QGIS 3.28.0\bin\python-qgis"
Remove-Item "export-tiles" -Recurse -ErrorAction Ignore
mkdir "export-tiles" | out-null
$env:devilfishGitRev = $(git describe --tags --dirty --always)
Measure-Command { & $python .\renderTiles.py devilfish.qgs | Out-Default }
php renderTilesHTMLFixer.php
Measure-Command {
Get-ChildItem "export-tiles" -recurse -Filter *.png | Foreach-Object -Parallel {
optipng $_.FullName
} -ThrottleLimit 16
}
Measure-Command {
scp export-tiles/map.cdn.html syl.ae:~/public_html/wormrpmap.php
aws s3 sync export-tiles/ s3://cdn.syl.ae/wormrp/map/ --acl public-read
}