From c0c9448e76e07c4a7a9f8cbcd32d367d7b6e58b2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jorge=20Ar=C3=A9valo?= Date: Fri, 15 Apr 2011 17:56:46 +0000 Subject: [PATCH] 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 --- raster/scripts/python/raster2pgsql.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 ) -- 2.50.1