[GRASS-SVN] r67250 - grass/trunk/lib/python/pygrass/modules/grid
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Dec 19 13:10:49 PST 2015
Author: neteler
Date: 2015-12-19 13:10:49 -0800 (Sat, 19 Dec 2015)
New Revision: 67250
Modified:
grass/trunk/lib/python/pygrass/modules/grid/grid.py
Log:
pygrass grid module: fix references to old map type names (trac #2612)
Modified: grass/trunk/lib/python/pygrass/modules/grid/grid.py
===================================================================
--- grass/trunk/lib/python/pygrass/modules/grid/grid.py 2015-12-19 12:09:12 UTC (rev 67249)
+++ grass/trunk/lib/python/pygrass/modules/grid/grid.py 2015-12-19 21:10:49 UTC (rev 67250)
@@ -257,7 +257,7 @@
mpclc(expression="%s=%s" % (name, rast), overwrite=True, env_=env)
file_dst = "%s.pack" % os.path.join(path_dst, name)
rpck(input=name, output=file_dst, overwrite=True, env_=env)
- remove(flags='f', type='rast', name=name, env_=env)
+ remove(flags='f', type='raster', name=name, env_=env)
# change gisdbase to dst
env['GISRC'] = gisrc_dst
rupck(input=file_dst, output=rast_clean, overwrite=True, env_=env)
@@ -291,7 +291,7 @@
name = nam % vect
file_dst = "%s.pack" % os.path.join(path_dst, name)
vpck(input=name, output=file_dst, overwrite=True, env_=env)
- remove(flags='f', type='vect', name=name, env_=env)
+ remove(flags='f', type='vector', name=name, env_=env)
# change gisdbase to dst
env['GISRC'] = gisrc_dst
vupck(input=file_dst, output=vect, overwrite=True, env_=env)
@@ -483,7 +483,7 @@
width=self.width, height=self.height,
overlap=self.overlap)
patt = '%s-*' % inm.value
- inlist[inm.value] = sorted(self.mset.glist(type='rast',
+ inlist[inm.value] = sorted(self.mset.glist(type='raster',
pattern=patt))
self.inlist = inlist
@@ -611,4 +611,4 @@
if self.inlist:
grm = Module('g.remove')
for key in self.inlist:
- grm(flags='f', type='rast', name=self.inlist[key])
+ grm(flags='f', type='raster', name=self.inlist[key])
More information about the grass-commit
mailing list