PostGIS  2.1.10dev-r@@SVN_REVISION@@
def raster2pgsql.calculate_block_pad_size (   band,
  xoff,
  yoff,
  block_size 
)
Calculates number of columns [0] and rows [1] of padding

Definition at line 572 of file raster2pgsql.py.

Referenced by wkblify_band().

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

Here is the caller graph for this function: