[GRASS-SVN] r56475 - grass/trunk/lib/vector/Vlib

svn_grass at osgeo.org svn_grass at osgeo.org
Wed May 29 05:48:07 PDT 2013


Author: martinl
Date: 2013-05-29 05:48:06 -0700 (Wed, 29 May 2013)
New Revision: 56475

Modified:
   grass/trunk/lib/vector/Vlib/open.c
Log:
vlib: report map format for created maps in verbose mode


Modified: grass/trunk/lib/vector/Vlib/open.c
===================================================================
--- grass/trunk/lib/vector/Vlib/open.c	2013-05-29 12:43:15 UTC (rev 56474)
+++ grass/trunk/lib/vector/Vlib/open.c	2013-05-29 12:48:06 UTC (rev 56475)
@@ -526,6 +526,7 @@
                 unlink(file_path);
         }
     }
+
     G_free(path);
     
     return level;
@@ -810,6 +811,19 @@
 
     Map->dblnk = Vect_new_dblinks_struct();
 
+    if (Map->fInfo.ogr.driver_name) {
+        G_verbose_message(_("Using OGR/%s format"), Map->fInfo.ogr.driver_name);
+    }
+    else if (Map->fInfo.pg.conninfo) {
+        if (Map->fInfo.pg.toposchema_name)
+            G_verbose_message(_("Using PostGIS Topology format"));
+        else
+            G_verbose_message(_("Using PostGIS format"));
+    }
+    else {
+        G_verbose_message(_("Using native format"));
+    }
+
     return 1;
 }
 



More information about the grass-commit mailing list