[GRASS-SVN] r32327 - in grass-addons: raster/r.out.gmt2 vector/v.out.gmt

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jul 27 01:51:51 EDT 2008


Author: hcho
Date: 2008-07-27 01:51:51 -0400 (Sun, 27 Jul 2008)
New Revision: 32327

Modified:
   grass-addons/raster/r.out.gmt2/r.out.gmt2
   grass-addons/vector/v.out.gmt/v.out.gmt
Log:
Fixed for latlong locations

Modified: grass-addons/raster/r.out.gmt2/r.out.gmt2
===================================================================
--- grass-addons/raster/r.out.gmt2/r.out.gmt2	2008-07-27 03:06:33 UTC (rev 32326)
+++ grass-addons/raster/r.out.gmt2/r.out.gmt2	2008-07-27 05:51:51 UTC (rev 32327)
@@ -179,8 +179,7 @@
 
 # get our geographic extents
 eval `g.region -g`
-ns_extent=`g.region -e | grep south | cut -f2 -d: | sed -e 's=^ =='`
-ew_extent=`g.region -e | grep west | cut -f2 -d: | sed -e 's=^ =='`
+eval `g.region -ge`
 
 # preserve aspect ratio from UTM E,N coordinates:
 aspect_ratio=`echo $ns_extent $ew_extent | awk '{printf("%f", $1 / $2)}'`

Modified: grass-addons/vector/v.out.gmt/v.out.gmt
===================================================================
--- grass-addons/vector/v.out.gmt/v.out.gmt	2008-07-27 03:06:33 UTC (rev 32326)
+++ grass-addons/vector/v.out.gmt/v.out.gmt	2008-07-27 05:51:51 UTC (rev 32327)
@@ -115,8 +115,7 @@
 
 # get our geographic extents
 eval `g.region -g`
-ns_extent=`g.region -e | grep south | cut -f2 -d: | sed -e 's=^ =='`
-ew_extent=`g.region -e | grep west | cut -f2 -d: | sed -e 's=^ =='`
+eval `g.region -ge`
 
 # preserve aspect ratio from UTM E,N coordinates:
 aspect_ratio=`echo $ns_extent $ew_extent | awk '{printf("%f", $1 / $2)}'`



More information about the grass-commit mailing list