ソースを参照

vlib: print topo format info in dump

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@51990 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 13 年 前
コミット
4abff7327b
1 ファイル変更7 行追加0 行削除
  1. 7 0
      lib/vector/Vlib/build.c

+ 7 - 0
lib/vector/Vlib/build.c

@@ -957,6 +957,13 @@ int Vect_topo_dump(const struct Map_info *Map, FILE *out)
     plus = &(Map->plus);
     
     fprintf(out, "---------- TOPOLOGY DUMP ----------\n");
+    if (Map->format == GV_FORMAT_NATIVE)
+        fprintf(out, "-------------- NATIVE -------------\n");
+    else if (Map->format == GV_FORMAT_POSTGIS &&
+             Map->fInfo.pg.toposchema_name)
+        fprintf(out, "------------- POSTGIS -------------\n");
+    else
+        fprintf(out, "-------------- PSEUDO -------------\n");
     
     /* box */
     Vect_box_copy(&box, &(plus->box));