[GRASS-SVN] r50368 - grass/branches/develbranch_6/vector/v.info

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Jan 21 14:53:46 EST 2012


Author: neteler
Date: 2012-01-21 11:53:46 -0800 (Sat, 21 Jan 2012)
New Revision: 50368

Modified:
   grass/branches/develbranch_6/vector/v.info/main.c
Log:
fix projection/zone output

Modified: grass/branches/develbranch_6/vector/v.info/main.c
===================================================================
--- grass/branches/develbranch_6/vector/v.info/main.c	2012-01-21 19:51:39 UTC (rev 50367)
+++ grass/branches/develbranch_6/vector/v.info/main.c	2012-01-21 19:53:46 UTC (rev 50368)
@@ -298,14 +298,12 @@
 	    }
 
 	    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, _("        Projection: %s (zone %d)"),
-			Vect_get_proj_name(&Map), Vect_get_zone(&Map));
+			G_database_projection_name(), G_zone());
 	    else
 		sprintf(line, _("        Projection: %s"),
-			Vect_get_proj_name(&Map));
+			G_database_projection_name());
 	    printline(line);
 
 	    Vect_get_map_box(&Map, &box);



More information about the grass-commit mailing list