[GRASS-SVN] r67251 - grass/branches/releasebranch_7_0/lib/python/pygrass/modules/grid
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Dec 19 13:11:31 PST 2015
Author: neteler
Date: 2015-12-19 13:11:31 -0800 (Sat, 19 Dec 2015)
New Revision: 67251
Modified:
grass/branches/releasebranch_7_0/lib/python/pygrass/modules/grid/grid.py
Log:
pygrass grid module: fix references to old map type names (trac #2612)
Modified: grass/branches/releasebranch_7_0/lib/python/pygrass/modules/grid/grid.py
===================================================================
--- grass/branches/releasebranch_7_0/lib/python/pygrass/modules/grid/grid.py 2015-12-19 21:10:49 UTC (rev 67250)
+++ grass/branches/releasebranch_7_0/lib/python/pygrass/modules/grid/grid.py 2015-12-19 21:11:31 UTC (rev 67251)
@@ -251,7 +251,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)
@@ -285,7 +285,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)
@@ -472,7 +472,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
@@ -600,4 +600,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