Quellcode durchsuchen

add possibility to create new location using espg in lowercase

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@58170 15284696-431f-4ddb-bdfa-cd5b030d7da7
Luca Delucchi vor 11 Jahren
Ursprung
Commit
71e0729c02
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      lib/init/grass.py

+ 1 - 1
lib/init/grass.py

@@ -632,7 +632,7 @@ def non_interactive(arg, geofile=None):
                     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,