PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ calculate_block_pad_size()

def raster2pgsql.calculate_block_pad_size (   band,
  xoff,
  yoff,
  block_size 
)
Calculates number of columns [0] and rows [1] of padding

Definition at line 571 of file raster2pgsql.py.

571 def calculate_block_pad_size(band, xoff, yoff, block_size):
572  """Calculates number of columns [0] and rows [1] of padding"""
573  assert band is not None
574 
575  xpad = 0
576  ypad= 0
577  block_bound = ( xoff + block_size[0], yoff + block_size[1] )
578 
579  if block_bound[0] > band.XSize:
580  xpad = block_bound[0] - band.XSize
581  if block_bound[1] > band.YSize:
582  ypad = block_bound[1] - band.YSize
583 
584  return (xpad, ypad)
585 
def calculate_block_pad_size(band, xoff, yoff, block_size)

Referenced by wkblify_band().

Here is the caller graph for this function: