From: Paul Ramsey Date: Tue, 22 Dec 2009 20:50:58 +0000 (+0000) Subject: Add message to GUI when creating spatial index. X-Git-Tag: 1.5.0b1~55 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=222b2ace5adc975781e9790e9a3816070d0681ff;p=postgis Add message to GUI when creating spatial index. git-svn-id: http://svn.osgeo.org/postgis/trunk@5047 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/loader/shp2pgsql-gui.c b/loader/shp2pgsql-gui.c index d5327aa35..3285dd62e 100644 --- a/loader/shp2pgsql-gui.c +++ b/loader/shp2pgsql-gui.c @@ -773,6 +773,11 @@ pgui_action_import(GtkWidget *widget, gpointer data) if (ret == SHPLOADERERR) goto import_cleanup; } + + if( state->config->createindex ) + { + pgui_logf("Creating spatial index...\n"); + } /* Send the footer to the server */ ret = pgui_exec(footer); @@ -786,9 +791,9 @@ pgui_action_import(GtkWidget *widget, gpointer data) import_cleanup: /* If we didn't finish inserting all of the items, an error occurred */ if (i != ShpLoaderGetRecordCount(state) || !ret) - pgui_logf("Shapefile import failed"); + pgui_logf("Shapefile import failed."); else - pgui_logf("Shapefile import completed"); + pgui_logf("Shapefile import completed."); /* Free the state object */ ShpLoaderDestroy(state);