[GRASS-SVN] r73043 - grass/branches/releasebranch_7_4/vector/v.in.ogr

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Aug 3 14:43:56 PDT 2018


Author: mmetz
Date: 2018-08-03 14:43:56 -0700 (Fri, 03 Aug 2018)
New Revision: 73043

Modified:
   grass/branches/releasebranch_7_4/vector/v.in.ogr/main.c
Log:
v.in.ogr: OGR dsn and GRASS db connections are independent of each other (backport trunk r72979)

Modified: grass/branches/releasebranch_7_4/vector/v.in.ogr/main.c
===================================================================
--- grass/branches/releasebranch_7_4/vector/v.in.ogr/main.c	2018-08-03 21:42:41 UTC (rev 73042)
+++ grass/branches/releasebranch_7_4/vector/v.in.ogr/main.c	2018-08-03 21:43:56 UTC (rev 73043)
@@ -455,7 +455,7 @@
 
     dsn = NULL;
     if (param.dsn->answer)
-        dsn = get_datasource_name(param.dsn->answer, TRUE);
+        dsn = G_store(param.dsn->answer);
     
     min_area = atof(param.min_area->answer);
     snap = atof(param.snap->answer);
@@ -947,7 +947,7 @@
 	    
 	    col_info = G_malloc(ncols_out * sizeof(struct grass_col_info));
 
-	    /* Create table */
+	    /* Collect column names and types */
 	    i_out = 0;
 	    col_info[i_out].idx = i_out;
 	    col_info[i_out].name = key_column[layer];
@@ -1109,7 +1109,7 @@
 	    qsort(col_info, ncols_out, sizeof(struct grass_col_info),
 		  cmp_col_idx);
 
-	    /* construct sql from column names and types */
+	    /* Create table */
 	    i = 0;
 	    sprintf(buf, "create table %s (%s %s", Fi->table,
 		    col_info[i].name, col_info[i].type);



More information about the grass-commit mailing list