PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ calculate_grid_size()

def raster2pgsql.calculate_grid_size (   raster_size,
  block_size 
)
Dimensions of grid made up with blocks of requested size

Definition at line 561 of file raster2pgsql.py.

Referenced by wkblify_raster_level().

561 def calculate_grid_size(raster_size, block_size):
562  """Dimensions of grid made up with blocks of requested size"""
563 
564  # Exact number of grid dimensions
565  nx = float(raster_size[0]) / float(block_size[0])
566  ny = float(raster_size[1]) / float(block_size[1])
567 
568  return ( int(math.ceil(nx)), int(math.ceil(ny)))
569 
def calculate_grid_size(raster_size, block_size)
Here is the caller graph for this function: