PostGIS  2.5.7dev-r@@SVN_REVISION@@
window Namespace Reference

Functions

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

Variables

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