[GRASS-SVN] r50369 - grass/trunk/vector/v.info
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Jan 21 15:53:13 EST 2012
Author: martinl
Date: 2012-01-21 12:53:13 -0800 (Sat, 21 Jan 2012)
New Revision: 50369
Modified:
grass/trunk/vector/v.info/print.c
Log:
v.info: fix projection/zone output
Modified: grass/trunk/vector/v.info/print.c
===================================================================
--- grass/trunk/vector/v.info/print.c 2012-01-21 19:53:46 UTC (rev 50368)
+++ grass/trunk/vector/v.info/print.c 2012-01-21 20:53:13 UTC (rev 50369)
@@ -213,10 +213,10 @@
}
fprintf(stdout, "projection=%s\n",
- Vect_get_proj_name(Map));
+ G_database_projection_name());
if (G_projection() == PROJECTION_UTM) {
fprintf(stdout, "zone=%d\n",
- Vect_get_zone(Map));
+ G_zone());
}
fprintf(stdout, "digitization_threshold=%f\n",
Vect_get_thresh(Map));
@@ -366,17 +366,15 @@
}
printline("");
- /* this differs from r.info in that proj info IS taken from the map here, not the location settings */
- /* Vect_get_proj_name() and _zone() are typically unset?! */
if (G_projection() == PROJECTION_UTM)
sprintf(line, " %s: %s (%s %d)",
_("Projection:"),
- Vect_get_proj_name(Map),
- _("zone"), Vect_get_zone(Map));
+ G_database_projection_name(),
+ _("zone"), G_zone());
else
sprintf(line, " %s: %s",
_("Projection"),
- Vect_get_proj_name(Map));
+ G_database_projection_name());
printline(line);
printline("");
More information about the grass-commit
mailing list