PostGIS  3.0.6dev-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 562 of file raster2pgsql.py.

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

Referenced by wkblify_raster_level().

Here is the caller graph for this function: