[GRASS-SVN] r62834 - grass-addons/grass7/raster/r.basin
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Nov 20 03:06:09 PST 2014
Author: neteler
Date: 2014-11-20 03:06:09 -0800 (Thu, 20 Nov 2014)
New Revision: 62834
Modified:
grass-addons/grass7/raster/r.basin/r.basin.py
Log:
r.basin: check for unsupported locations
Modified: grass-addons/grass7/raster/r.basin/r.basin.py
===================================================================
--- grass-addons/grass7/raster/r.basin/r.basin.py 2014-11-20 10:08:32 UTC (rev 62833)
+++ grass-addons/grass7/raster/r.basin/r.basin.py 2014-11-20 11:06:09 UTC (rev 62834)
@@ -92,6 +92,13 @@
def main():
# check dependencies
check_progs()
+
+ # check for unsupported locations
+ in_proj = grass.parse_command('g.proj', flags='g')
+ if in_proj['unit'].lower() == 'degree':
+ grass.fatal(_("Latitude-longitude locations are not supported"))
+ if in_proj['name'].lower() == 'xy_location_unprojected':
+ grass.fatal(_("xy-locations are not supported"))
r_elevation = options['map'].split('@')[0]
mapname = options['map'].replace("@"," ")
More information about the grass-commit
mailing list