[GRASS-SVN] r62835 - grass/trunk/scripts/r.reclass.area

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Nov 20 03:07:25 PST 2014


Author: neteler
Date: 2014-11-20 03:07:25 -0800 (Thu, 20 Nov 2014)
New Revision: 62835

Modified:
   grass/trunk/scripts/r.reclass.area/r.reclass.area.py
Log:
r.reclass.area: minor code cleanup of location check

Modified: grass/trunk/scripts/r.reclass.area/r.reclass.area.py
===================================================================
--- grass/trunk/scripts/r.reclass.area/r.reclass.area.py	2014-11-20 11:06:09 UTC (rev 62834)
+++ grass/trunk/scripts/r.reclass.area/r.reclass.area.py	2014-11-20 11:07:25 UTC (rev 62835)
@@ -191,14 +191,12 @@
     diagonal = flags['d']
     islesser = False
 
+    # check for unsupported locations
     in_proj = grass.parse_command('g.proj', flags='g')
-
-    # check non supported location
     if in_proj['unit'].lower() == 'degree':
-        grass.fatal(_("Latitude-Longitude locations are not supported"))
+        grass.fatal(_("Latitude-longitude locations are not supported"))
     if in_proj['name'].lower() == 'xy_location_unprojected':
         grass.fatal(_("xy-locations are not supported"))
-        grass.fatal(_("Need projected data with grids in metric units"))
 
     # check lesser and greater parameters
     if not lesser and not greater:



More information about the grass-commit mailing list