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

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jun 6 08:48:51 PDT 2012


Author: martinl
Date: 2012-06-06 08:48:50 -0700 (Wed, 06 Jun 2012)
New Revision: 51990

Modified:
   grass/trunk/lib/vector/Vlib/build.c
Log:
vlib: print topo format info in dump


Modified: grass/trunk/lib/vector/Vlib/build.c
===================================================================
--- grass/trunk/lib/vector/Vlib/build.c	2012-06-06 15:38:22 UTC (rev 51989)
+++ grass/trunk/lib/vector/Vlib/build.c	2012-06-06 15:48:50 UTC (rev 51990)
@@ -957,6 +957,13 @@
     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));



More information about the grass-commit mailing list