Show
Ignore:
Timestamp:
06/03/09 07:56:31 (3 years ago)
Author:
mloskot
Message:

[wktraster] Added missing GiST index creation for overview tables.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • spike/wktraster/scripts/gdal2wktraster.py

    r4125 r4129  
    970970            wkblify_raster(opts, filename) 
    971971            i += 1 
    972      
    973     if opts.index: 
    974         sql = make_sql_create_gist(opts.table, opts.column) 
    975         opts.output.write(sql) 
    976  
    977     # COMMIT 
    978     opts.output.write('COMMIT;\n') 
     972 
     973    # INDEX 
     974    if opts.index and SUMMARY is not None: 
     975        for s in SUMMARY: 
     976            sql = make_sql_create_gist(s[0], opts.column) 
     977            opts.output.write(sql) 
     978     
    979979 
    980980    # VACUUM 
    981     if opts.vacuum: 
     981    if opts.vacuum and SUMMARY is not None: 
    982982        for s in SUMMARY: 
    983983            sql = make_sql_vacuum(s[0]) 
    984984            opts.output.write(sql) 
     985 
     986    # COMMIT 
     987    opts.output.write('END;\n') 
    985988 
    986989    # Cleanup