Ver código fonte

core.create_location update to match new g.proj arguments

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@53316 15284696-431f-4ddb-bdfa-cd5b030d7da7
Michael Barton 12 anos atrás
pai
commit
951505fc81
1 arquivos alterados com 5 adições e 2 exclusões
  1. 5 2
      lib/python/core.py

+ 5 - 2
lib/python/core.py

@@ -1191,7 +1191,7 @@ def mapsets(search_path = False):
 
 def create_location(dbase, location,
                     epsg = None, proj4 = None, filename = None, wkt = None,
-                    datum = None, desc = None):
+                    datum = None, datum_trans = None, desc = None):
     """!Create new location
 
     Raise ScriptError on error.
@@ -1202,7 +1202,8 @@ def create_location(dbase, location,
     @param proj4 if given create new location based on Proj4 definition
     @param filename if given create new location based on georeferenced file
     @param wkt if given create new location based on WKT definition (path to PRJ file)
-    @param datum datum transformation parameters (used for epsg and proj4)
+    @param datum GRASS format datum code
+    @param datum_trans datum transformation parameters (used for epsg and proj4)
     @param desc description of the location (creates MYNAME file)
     """
     gisdbase = None
@@ -1216,6 +1217,8 @@ def create_location(dbase, location,
     kwargs = dict()
     if datum:
         kwargs['datum'] = datum
+    if datum_trans:
+        kwargs['datum_trans'] = datum_trans
     
     if epsg:
         ps = pipe_command('g.proj',