[GRASS-SVN] r39535 - grass-addons/raster/r.out.kml

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Oct 16 23:32:12 EDT 2009


Author: hamish
Date: 2009-10-16 23:32:12 -0400 (Fri, 16 Oct 2009)
New Revision: 39535

Modified:
   grass-addons/raster/r.out.kml/r.out.kml
Log:
conv angle comment

Modified: grass-addons/raster/r.out.kml/r.out.kml
===================================================================
--- grass-addons/raster/r.out.kml/r.out.kml	2009-10-17 03:26:15 UTC (rev 39534)
+++ grass-addons/raster/r.out.kml/r.out.kml	2009-10-17 03:32:12 UTC (rev 39535)
@@ -106,12 +106,13 @@
 
 if [ "$IS_LL_WGS84" = "false" ] ; then
    # check convergence angle is less than (arbitrary) 1px per 1280x1024 (~= 0.09 degrees)
-  eval `g.region -gn`
-  CONV_ANGLE_3INT=`echo $converge_angle | sed -e 's/\.//' | cut -b 1-3`
-  if [ "$CONV_ANGLE_3INT" -gt 009 ] ; then
+   # also test conv angle at 4 corners? (world wide scale image might be ok at 0,0 center, but horrible elsewhere)
+   eval `g.region -gn`
+   CONV_ANGLE_3INT=`echo $converge_angle | sed -e 's/\.//' | cut -b 1-3`
+   if [ "$CONV_ANGLE_3INT" -gt 009 ] ; then
      g.message -e "Convergence angle too great for undistorted output, reproject first. ($converge_angle degrees)"
      exit 1
-  fi
+   fi
 fi
 
 



More information about the grass-commit mailing list