daily pastebin goal
18%
SHARE
TWEET

Untitled

a guest Apr 16th, 2018 43 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. with rasterio.open("<absolute_path_to_image>") as dataset:
  2.     raster = dataset.read(1)
  3.     crs = dataset.crs
  4.     transform = dataset.transform
  5.     epsg = crs['init'].lstrip('epsg:')
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top