PostGIS  2.5.0beta2dev-r@@SVN_REVISION@@
raster2pgsql Namespace Reference

Functions

def is_nan (x)
 
def parse_command_line ()
 
def logit (msg)
 
def gdt2pt (gdt)
 
def pt2numpy (pt)
 
def pt2fmt (pt)
 
def fmt2printfmt (fmt)
 
def parse_block_size (options)
 
def quote_sql_value (value)
 SQL OPERATIONS. More...
 
def quote_sql_name (name)
 
def make_sql_value_array (values)
 
def make_sql_schema_table_names (schema_table)
 
def make_sql_full_table_name (schema_table)
 
def make_sql_table_name (schema_table)
 
def make_sql_drop_table (table)
 
def make_sql_drop_raster_table (table)
 
def make_sql_create_table (options, table=None, is_overview=False)
 
def make_sql_create_gist (table, column)
 
def make_sql_addrastercolumn (options, pixeltypes, nodata, pixelsize, blocksize, extent)
 
def make_sql_insert_raster (table, rast, hexwkb, insert_filename, file)
 
def make_sql_create_raster_overviews (options)
 
def make_sql_register_overview (options, ov_table, ov_factor)
 
def make_sql_vacuum (table)
 
def calculate_overviews (ds, band_from=None, band_to=None)
 RASTER OPERATIONS. More...
 
def calculate_overview_factor (ds, overview)
 
def collect_pixel_types (ds, band_from, band_to)
 
def collect_nodata_values (ds, band_from, band_to)
 
def calculate_block_size (ds, band_from, band_to)
 
def calculate_grid_size (raster_size, block_size)
 
def calculate_block_pad_size (band, xoff, yoff, block_size)
 
def get_gdal_geotransform (ds)
 
def calculate_geoxy (gt, xy)
 
def calculate_geoxy_level (gt, xy, level)
 
def calculate_bounding_box (ds, gt)
 
def check_hex (hex, bytes_size=None)
 
def dump_block_numpy (pixels)
 
def fetch_band_nodata (band, default=0)
 
def wkblify (fmt, data)
 
def wkblify_raster_header (options, ds, level, ulp, xsize=None, ysize=None)
 
def wkblify_band_header (options, band)
 
def wkblify_band (options, band, level, xoff, yoff, read_block_size, block_size, infile, bandidx)
 
def wkblify_raster_level (options, ds, level, band_range, infile, i)
 
def wkblify_raster (options, infile, i, previous_gt=None)
 
def main ()
 

Variables

int NDR = 1
 CONSTANTS - DO NOT CHANGE. More...
 
int XDR = 0
 
int g_rt_version = 0
 
int g_rt_endian = NDR
 
string g_rt_column = 'rast'
 
string g_rt_catalog = ''
 
string g_rt_schema = 'public'
 
bool VERBOSE = False
 UTILITIES. More...
 
list SUMMARY = []