]> granicus.if.org Git - postgis/commitdiff
Add message to GUI when creating spatial index.
authorPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 22 Dec 2009 20:50:58 +0000 (20:50 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 22 Dec 2009 20:50:58 +0000 (20:50 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5047 b70326c6-7e19-0410-871a-916f4a2858ee

loader/shp2pgsql-gui.c

index d5327aa352d2aee9f9bd130c00c9240419204831..3285dd62e25238e5c7c6f83ecd1045cf1c8284d9 100644 (file)
@@ -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);