-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
32 lines (28 loc) · 835 Bytes
/
main.py
File metadata and controls
32 lines (28 loc) · 835 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
26
27
28
29
30
31
32
import logging
import shutil
from pathlib import Path
from src.patch_rollback import rollback
logging.basicConfig(level=logging.INFO)
resolutions = [
[64.0, 64.0], # level 1
[32.0, 32.0], # level 2
[16.0, 16.0], # level 3
[8.0, 8.0], # level 4
[4.0, 4.0], # level 5
[2.0, 2.0], # level 6
[1.0, 1.0], # level 7
]
if __name__ == '__main__':
output_path = Path('./resource/output/')
if output_path.exists():
shutil.rmtree(output_path)
rollback(
patch_name='example_patch',
schema_name='example_schema',
epsg=2326,
element_resolution=resolutions,
source_ne='./resource/ne.txt',
source_ns='./resource/ns.txt',
target_patch='./resource/output/patch/',
target_schema='./resource/output/schema/'
)