File size: 463 Bytes
2f5b9e0
 
25c63a5
2f5b9e0
7d6e00c
 
2f5b9e0
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import rasterio
from affine import loadsw

from src import PROJECT_ROOT_FOLDER

if __name__ == '__main__':
    with open(PROJECT_ROOT_FOLDER / "tmp" / "japan_out_main.pgw") as pgw:
        pgw_file = pgw.read()
        a = loadsw(pgw_file)
    with rasterio.open(PROJECT_ROOT_FOLDER / "tmp" / "japan_out_main.png", "r") as src:
        src_transform = src.transform
        print(a, src_transform)
        print(a, src_transform)
        print("a, src_tranform")