瀏覽代碼

vlib: report map format for created maps in verbose mode

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@56475 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 12 年之前
父節點
當前提交
d02506bdce
共有 1 個文件被更改,包括 14 次插入0 次删除
  1. 14 0
      lib/vector/Vlib/open.c

+ 14 - 0
lib/vector/Vlib/open.c

@@ -526,6 +526,7 @@ int Vect__open_old(struct Map_info *Map, const char *name, const char *mapset,
                 unlink(file_path);
                 unlink(file_path);
         }
         }
     }
     }
+
     G_free(path);
     G_free(path);
     
     
     return level;
     return level;
@@ -810,6 +811,19 @@ int open_new(struct Map_info *Map, const char *name, int with_z, int is_tmp)
 
 
     Map->dblnk = Vect_new_dblinks_struct();
     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;
     return 1;
 }
 }