PostGIS  2.1.10dev-r@@SVN_REVISION@@
def raster2pgsql.calculate_bounding_box (   ds,
  gt 
)
Calculate georeferenced coordinates of spatial extent of raster dataset

Definition at line 610 of file raster2pgsql.py.

References calculate_geoxy().

Referenced by wkblify_raster_level().

611  """Calculate georeferenced coordinates of spatial extent of raster dataset"""
612  assert ds is not None
613 
614  # UL, LL, UR, LR
615  dim = ( (0,0),(0,ds.RasterYSize),(ds.RasterXSize,0),(ds.RasterXSize,ds.RasterYSize) )
616 
617  ext = (calculate_geoxy(gt, dim[0]), calculate_geoxy(gt, dim[1]),
618  calculate_geoxy(gt, dim[2]), calculate_geoxy(gt, dim[3]))
619 
620  return ext
621 
def calculate_geoxy(gt, xy)
def calculate_bounding_box(ds, gt)

Here is the call graph for this function:

Here is the caller graph for this function: