From: Jorge Arévalo Date: Fri, 15 Apr 2011 17:56:46 +0000 (+0000) Subject: Bug fixed: Loader tried to insert in .raster_overviews instead of public... X-Git-Tag: 2.0.0alpha1~1764 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c0c9448e76e07c4a7a9f8cbcd32d367d7b6e58b2;p=postgis Bug fixed: Loader tried to insert in .raster_overviews instead of public.raster_overviews git-svn-id: http://svn.osgeo.org/postgis/trunk@7038 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/raster/scripts/python/raster2pgsql.py b/raster/scripts/python/raster2pgsql.py index 882090835..4b583f7c5 100755 --- a/raster/scripts/python/raster2pgsql.py +++ b/raster/scripts/python/raster2pgsql.py @@ -457,12 +457,11 @@ def make_sql_register_overview(options, ov_table, ov_factor): assert len(ov_table) > 0 assert ov_factor > 0 - catalog = quote_sql_value('') + catalog = quote_sql_value('') schema = make_sql_schema_table_names(options.table)[0] - raster_overviews = make_sql_full_table_name(schema + '.raster_overviews') r_table = make_sql_table_name(options.table) - sql = "INSERT INTO " + raster_overviews + " ( " \ + sql = "INSERT INTO public.raster_overviews( " \ "o_table_catalog, o_table_schema, o_table_name, o_column, " \ "r_table_catalog, r_table_schema, r_table_name, r_column, out_db, overview_factor) " \ "VALUES ('%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', FALSE, %d);\n" % \ @@ -864,7 +863,6 @@ def wkblify_raster_level(options, ds, level, band_range, infile, i): gen_table = options.table else: - assert level > 1 # Create overview table and register in RASTER_OVERVIEWS # CREATE TABLE o__ ( rid serial, options.column RASTER )