[GRASS-SVN] r58170 - grass/trunk/lib/init

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Nov 8 00:40:38 PST 2013


Author: lucadelu
Date: 2013-11-08 00:40:36 -0800 (Fri, 08 Nov 2013)
New Revision: 58170

Modified:
   grass/trunk/lib/init/grass.py
Log:
add possibility to create new location using espg in lowercase

Modified: grass/trunk/lib/init/grass.py
===================================================================
--- grass/trunk/lib/init/grass.py	2013-11-08 05:25:53 UTC (rev 58169)
+++ grass/trunk/lib/init/grass.py	2013-11-08 08:40:36 UTC (rev 58170)
@@ -632,7 +632,7 @@
                     from grass.script import core as grass
                     
                     try:
-                        if geofile and geofile.find('EPSG:') > -1:
+                        if geofile and geofile.upper().find('EPSG:') > -1:
                             # create location using EPSG code
                             epsg = geofile.split(':', 1)[1]
                             grass.create_location(gisdbase, location_name,



More information about the grass-commit mailing list