PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ calculate_bounding_box()

def raster2pgsql.calculate_bounding_box (   ds,
  gt 
)
Calculate georeferenced coordinates of spatial extent of raster dataset

Definition at line 608 of file raster2pgsql.py.

References calculate_geoxy().

Referenced by wkblify_raster_level().

608 def calculate_bounding_box(ds, gt):
609  """Calculate georeferenced coordinates of spatial extent of raster dataset"""
610  assert ds is not None
611 
612  # UL, LL, UR, LR
613  dim = ( (0,0),(0,ds.RasterYSize),(ds.RasterXSize,0),(ds.RasterXSize,ds.RasterYSize) )
614 
615  ext = (calculate_geoxy(gt, dim[0]), calculate_geoxy(gt, dim[1]),
616  calculate_geoxy(gt, dim[2]), calculate_geoxy(gt, dim[3]))
617 
618  return ext
619 
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: