[GRASS-SVN] r53316 - grass/trunk/lib/python

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Oct 4 23:08:01 PDT 2012


Author: cmbarton
Date: 2012-10-04 23:08:00 -0700 (Thu, 04 Oct 2012)
New Revision: 53316

Modified:
   grass/trunk/lib/python/core.py
Log:
core.create_location update to match new g.proj arguments

Modified: grass/trunk/lib/python/core.py
===================================================================
--- grass/trunk/lib/python/core.py	2012-10-04 14:13:15 UTC (rev 53315)
+++ grass/trunk/lib/python/core.py	2012-10-05 06:08:00 UTC (rev 53316)
@@ -1191,7 +1191,7 @@
 
 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 @@
     @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 @@
     kwargs = dict()
     if datum:
         kwargs['datum'] = datum
+    if datum_trans:
+        kwargs['datum_trans'] = datum_trans
     
     if epsg:
         ps = pipe_command('g.proj',



More information about the grass-commit mailing list