From 54484e1f7a752e13494133de15310b6bc7f47deb Mon Sep 17 00:00:00 2001 From: Paul Ramsey Date: Sat, 17 Sep 2011 19:59:41 +0000 Subject: [PATCH] shp2pgsql gui wrong use of create spatial index (#1091) git-svn-id: http://svn.osgeo.org/postgis/trunk@7862 b70326c6-7e19-0410-871a-916f4a2858ee --- loader/shp2pgsql-core.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/loader/shp2pgsql-core.c b/loader/shp2pgsql-core.c index b926f40d2..846b39fde 100644 --- a/loader/shp2pgsql-core.c +++ b/loader/shp2pgsql-core.c @@ -1711,12 +1711,6 @@ ShpLoaderGetSQLFooter(SHPLOADERSTATE *state, char **strfooter) { stringbuffer_t *sb; char *ret; - char *ops; - - if ( state->config->geography ) - ops = "gist_geography_ops"; - else - ops = "gist_geometry_ops"; /* Create the stringbuffer containing the header; we use this API as it's easier for handling string resizing during append */ @@ -1732,7 +1726,7 @@ ShpLoaderGetSQLFooter(SHPLOADERSTATE *state, char **strfooter) { stringbuffer_aprintf(sb, "\"%s\".",state->config->schema); } - stringbuffer_aprintf(sb, "\"%s\" USING GIST (\"%s\" %s)", state->config->table, state->geo_col, ops); + stringbuffer_aprintf(sb, "\"%s\" USING GIST (\"%s\")", state->config->table, state->geo_col); /* Tablespace is also optional. */ if (state->config->idxtablespace != NULL) { -- 2.50.0