-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrenderMaps.ps1
More file actions
25 lines (19 loc) · 785 Bytes
/
renderMaps.ps1
File metadata and controls
25 lines (19 loc) · 785 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
25
# 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" -Recurse -ErrorAction Ignore
mkdir "export" | out-null
$env:devilfishGitRev = $(git describe --tags --dirty --always)
Get-ChildItem "." -Filter *.qgs |
Foreach-Object {
if ($_.FullName -notmatch '\~$') {
echo $_.FullName
Measure-Command { & $python .\renderMaps.py $_.FullName | Out-Default }
}
}
Measure-Command {
Get-ChildItem "export" -Filter *.png | Foreach-Object -Parallel {
echo $_.FullName
optipng $_.FullName
} -ThrottleLimit 8
}