a guest Apr 16th, 2018 42 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- with rasterio.open("<absolute_path_to_image>") as dataset:
- raster = dataset.read(1)
- crs = dataset.crs
- transform = dataset.transform
- epsg = crs['init'].lstrip('epsg:')
RAW Paste Data