[GRASS-SVN] r50480 - grass/branches/releasebranch_6_4/vector/v.info

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Jan 27 03:01:37 EST 2012


Author: hamish
Date: 2012-01-27 00:01:36 -0800 (Fri, 27 Jan 2012)
New Revision: 50480

Modified:
   grass/branches/releasebranch_6_4/vector/v.info/main.c
Log:
back to old utm zone behaviour, todo: once 6.4.2 is out merge improved way of handling this from devbr6

Modified: grass/branches/releasebranch_6_4/vector/v.info/main.c
===================================================================
--- grass/branches/releasebranch_6_4/vector/v.info/main.c	2012-01-27 07:58:12 UTC (rev 50479)
+++ grass/branches/releasebranch_6_4/vector/v.info/main.c	2012-01-27 08:01:36 UTC (rev 50480)
@@ -298,12 +298,14 @@
 	    }
 
 	    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)"),
-			G_database_projection_name(), G_zone());
+			Vect_get_proj_name(&Map), Vect_get_zone(&Map));
 	    else
 		sprintf(line, _("        Projection: %s"),
-			G_database_projection_name());
+			Vect_get_proj_name(&Map));
 	    printline(line);
 
 	    Vect_get_map_box(&Map, &box);



More information about the grass-commit mailing list