[GRASS-SVN] r66051 - grass-addons/grass7/vector/v.in.gbif

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Aug 28 06:15:23 PDT 2015


Author: hellik
Date: 2015-08-28 06:15:23 -0700 (Fri, 28 Aug 2015)
New Revision: 66051

Modified:
   grass-addons/grass7/vector/v.in.gbif/v.in.gbif.py
Log:
v.in.gbif: fix grass.fatal for unsupported projected locations

Modified: grass-addons/grass7/vector/v.in.gbif/v.in.gbif.py
===================================================================
--- grass-addons/grass7/vector/v.in.gbif/v.in.gbif.py	2015-08-28 12:17:47 UTC (rev 66050)
+++ grass-addons/grass7/vector/v.in.gbif/v.in.gbif.py	2015-08-28 13:15:23 UTC (rev 66051)
@@ -62,9 +62,9 @@
 
     # check for unsupported locations
     in_proj = grass.parse_command('g.proj', flags='g')
-    if in_proj['unit'].lower() == 'Meter':
+    if in_proj['unit'].lower() == 'meter':
         grass.fatal(_("Projected locations are not supported"))
-    if in_proj['unit'].lower() == 'US survey foot':
+    if in_proj['unit'].lower() == 'us survey foot':
         grass.fatal(_("Projected locations are not supported"))
     if in_proj['name'].lower() == 'xy_location_unprojected':
         grass.fatal(_("xy-locations are not supported"))



More information about the grass-commit mailing list