PostGIS  2.1.10dev-r@@SVN_REVISION@@
def raster2pgsql.calculate_grid_size (   raster_size,
  block_size 
)
Dimensions of grid made up with blocks of requested size

Definition at line 563 of file raster2pgsql.py.

Referenced by wkblify_raster_level().

563 def calculate_grid_size(raster_size, block_size):
564  """Dimensions of grid made up with blocks of requested size"""
565 
566  # Exact number of grid dimensions
567  nx = float(raster_size[0]) / float(block_size[0])
568  ny = float(raster_size[1]) / float(block_size[1])
569 
570  return ( int(math.ceil(nx)), int(math.ceil(ny)))
571 
def calculate_grid_size(raster_size, block_size)

Here is the caller graph for this function: