PostGIS  2.5.7dev-r@@SVN_REVISION@@
window.py File Reference

Go to the source code of this file.

Namespaces

 window
 

Functions

def window.is_georeferenced (gt)
 
def window.calculate_corner (gt, x, y)
 

Variables

 window.infile = sys.argv[1]
 
 window.inxoff = int(sys.argv[2])
 
 window.inyoff = int(sys.argv[3])
 
 window.inxsize = int(sys.argv[4])
 
 window.inysize = int(sys.argv[5])
 
 window.ds = gdal.Open(infile, gdalc.GA_ReadOnly);
 
 window.xsize = ds.RasterXSize
 
 window.ysize = ds.RasterYSize
 
 window.gt = ds.GetGeoTransform()
 
tuple window.res = ( gt[1], gt[5] )
 
tuple window.ulp = ( gt[0], gt[3] )
 
tuple window.rot = ( gt[2], gt[4] )