PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ check_hex()

def raster2pgsql.check_hex (   hex,
  bytes_size = None 
)

Definition at line 620 of file raster2pgsql.py.

Referenced by wkblify_band(), wkblify_band_header(), wkblify_raster_header(), and wkblify_raster_level().

620 def check_hex(hex, bytes_size = None):
621  assert hex is not None, "Error: Missing hex string"
622  size = len(hex)
623  assert size > 0, "Error: hex string is empty"
624  assert size % 2 == 0, "Error: invalid size of hex string"
625  if bytes_size is not None:
626  n = int(size / 2)
627  assert n == bytes_size, "Error: invalid number of bytes %d, expected %d" % (n, bytes_size)
628 
def check_hex(hex, bytes_size=None)
Here is the caller graph for this function: