[GRASS-SVN] r48262 - grass/trunk/vector/v.info
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Sep 13 05:21:10 EDT 2011
Author: huhabla
Date: 2011-09-13 02:21:10 -0700 (Tue, 13 Sep 2011)
New Revision: 48262
Modified:
grass/trunk/vector/v.info/print.c
Log:
Use double values for spatial extent in shell style output
Modified: grass/trunk/vector/v.info/print.c
===================================================================
--- grass/trunk/vector/v.info/print.c 2011-09-13 07:59:19 UTC (rev 48261)
+++ grass/trunk/vector/v.info/print.c 2011-09-13 09:21:10 UTC (rev 48262)
@@ -27,14 +27,15 @@
struct bound_box box;
+ /*Print the spatial extent as double values*/
Vect_get_map_box(Map, &box);
- G_format_northing(box.N, tmp1, Vect_get_proj(Map));
- G_format_northing(box.S, tmp2, Vect_get_proj(Map));
+ G_format_northing(box.N, tmp1, -1);
+ G_format_northing(box.S, tmp2, -1);
fprintf(stdout, "north=%s\n", tmp1);
fprintf(stdout, "south=%s\n", tmp2);
- G_format_easting(box.E, tmp1, Vect_get_proj(Map));
- G_format_easting(box.W, tmp2, Vect_get_proj(Map));
+ G_format_easting(box.E, tmp1, -1);
+ G_format_easting(box.W, tmp2, -1);
fprintf(stdout, "east=%s\n", tmp1);
fprintf(stdout, "west=%s\n", tmp2);
fprintf(stdout, "top=%f\n", box.T);
More information about the grass-commit
mailing list