-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcreate_map_CH_samples.py
executable file
·46 lines (34 loc) · 1.3 KB
/
create_map_CH_samples.py
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
from oruxmap.utils.context import Context
from oruxmap.utils.constants_switzerland import tiffs_wetzikon
from oruxmap.oruxmap import OruxMap
def get_contextA():
context = Context()
# context.skip_optimize_png = True
context.only_tiffs = tiffs_wetzikon
# context.only_tiles_border = 5
# context.only_tiles_modulo = 10
# context.skip_tiff_read = True
# context.skip_png_write = True
return context
def get_contextB():
context = get_contextA()
context.skip_optimize_png = True
# context.multiprocessing = False
return context
def main():
if True:
context = get_contextB()
with OruxMap("CH_samples_wetzikon_25k_up", context=context) as oruxmap:
# oruxmap.create_layers(iMasstabMin=100, iMasstabMax=100)
oruxmap.create_layers(iMasstabMin=50, iMasstabMax=200)
return
for context in (
get_contextA(),
get_contextB(),
):
with OruxMap("CH_samples_wetzikon_25k_up", context=context) as oruxmap:
oruxmap.create_layers(iMasstabMin=25, iMasstabMax=1000)
with OruxMap("CH_samples_wetzikon_10k", context=context) as oruxmap:
oruxmap.create_layers(iMasstabMin=10, iMasstabMax=10)
if __name__ == "__main__":
main()