[GRASS-SVN] r74145 - grass/trunk/vector/v.external

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Mar 1 11:47:21 PST 2019


Author: mmetz
Date: 2019-03-01 11:47:21 -0800 (Fri, 01 Mar 2019)
New Revision: 74145

Modified:
   grass/trunk/vector/v.external/dsn.c
   grass/trunk/vector/v.external/main.c
Log:
v.external: enable GRASS-internal PostGIS driver again

Modified: grass/trunk/vector/v.external/dsn.c
===================================================================
--- grass/trunk/vector/v.external/dsn.c	2019-03-01 15:54:40 UTC (rev 74144)
+++ grass/trunk/vector/v.external/dsn.c	2019-03-01 19:47:21 UTC (rev 74145)
@@ -8,12 +8,6 @@
 {
     char *dsn;
 
-    dsn = G_store(opt_dsn);
-    
-    return dsn;
-
-    /* OGR dsn and GRASS db connections are independent of each other */
-
     if (G_strncasecmp(opt_dsn, "PG:", 3) == 0) {
         /* PostgreSQL/PostGIS */
         size_t i;

Modified: grass/trunk/vector/v.external/main.c
===================================================================
--- grass/trunk/vector/v.external/main.c	2019-03-01 15:54:40 UTC (rev 74144)
+++ grass/trunk/vector/v.external/main.c	2019-03-01 19:47:21 UTC (rev 74145)
@@ -101,12 +101,8 @@
     }
 
     dsn = NULL;
-    /* disabling GRASS-PostGIS driver:
-     *  TODO: a new fn that converts OGR dsn to PQ connection info,
-     *   ignoring current GRASS db connection */
-    use_ogr = TRUE;
     if (options.dsn->answer)
-        dsn = G_store(options.dsn->answer);
+        dsn = get_datasource_name(options.dsn->answer, use_ogr);
     
     if (flags.list->answer || flags.tlist->answer) {
         /* list layers */



More information about the grass-commit mailing list