PostGIS  2.5.7dev-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 570 of file raster2pgsql.py.

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

Referenced by wkblify_band().

Here is the caller graph for this function: