[GRASS-SVN] r55815 - grass/trunk/lib/vector/Vlib
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Apr 15 03:48:52 PDT 2013
Author: martinl
Date: 2013-04-15 03:48:51 -0700 (Mon, 15 Apr 2013)
New Revision: 55815
Modified:
grass/trunk/lib/vector/Vlib/build.c
Log:
vlib: Vect_topo_dump(): extend dump header (topology format)
Modified: grass/trunk/lib/vector/Vlib/build.c
===================================================================
--- grass/trunk/lib/vector/Vlib/build.c 2013-04-15 10:12:13 UTC (rev 55814)
+++ grass/trunk/lib/vector/Vlib/build.c 2013-04-15 10:48:51 UTC (rev 55815)
@@ -1041,14 +1041,25 @@
plus = &(Map->plus);
fprintf(out, "---------- TOPOLOGY DUMP ----------\n");
+ fprintf(out, "Map: %s\n", Vect_get_full_name(Map));
+ fprintf(out, "Topology format: ");
if (Map->format == GV_FORMAT_NATIVE)
- fprintf(out, "-------------- NATIVE -------------\n");
+ fprintf(out, "native");
else if (Map->format == GV_FORMAT_POSTGIS &&
- Map->fInfo.pg.toposchema_name)
- fprintf(out, "------------- POSTGIS -------------\n");
- else
- fprintf(out, "-------------- PSEUDO -------------\n");
+ Map->fInfo.pg.toposchema_name) {
+ fprintf(out, "PostGIS");
+ }
+ else {
+ fprintf(out, "pseudo (simple features)");
+ if (Map->format == GV_FORMAT_OGR)
+ fprintf(out, " @ OGR");
+ else
+ fprintf(out, " @ PostgreSQL");
+ }
+ fprintf(out, "\n");
+ fprintf(out, SEP);
+
/* box */
Vect_box_copy(&box, &(plus->box));
fprintf(out, "N,S,E,W,T,B: %f, %f, %f, %f, %f, %f\n", box.N, box.S,
More information about the grass-commit
mailing list