[GRASS-SVN] r54985 - grass/trunk/lib/python/pygrass/vector
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Feb 8 06:34:30 PST 2013
Author: lucadelu
Date: 2013-02-08 06:34:29 -0800 (Fri, 08 Feb 2013)
New Revision: 54985
Modified:
grass/trunk/lib/python/pygrass/vector/geometry.py
Log:
fix return value; change line with cat
Modified: grass/trunk/lib/python/pygrass/vector/geometry.py
===================================================================
--- grass/trunk/lib/python/pygrass/vector/geometry.py 2013-02-08 14:25:36 UTC (rev 54984)
+++ grass/trunk/lib/python/pygrass/vector/geometry.py 2013-02-08 14:34:29 UTC (rev 54985)
@@ -147,7 +147,7 @@
"""
#SELECT {cols} FROM {tname} WHERE {condition};
- cur = self.table.execute(sql.SELECT_WHERE.format(key,
+ cur = self.table.execute(sql.SELECT_WHERE.format(cols=key,
tname=self.table.name,
condition=self.cond))
results = cur.fetchone()
@@ -1216,7 +1216,7 @@
self.isles = self.get_isles()
libvect.Vect_read_line(self.c_mapinfo, None, self.c_cats,
self.centroid.id)
- self.line = self.c_cats.contents.cat.contents.value
+ self.cat = self.c_cats.contents.cat.contents.value
elif boundary and centroid:
self.boundary = boundary
self.centroid = centroid
@@ -1226,8 +1226,8 @@
raise GrassError(str_err)
# set the attributes
- if self.attrs and self.line:
- self.attrs = Attrs(self.line,
+ if self.attrs and self.cat:
+ self.attrs = Attrs(self.cat,
self.attrs.table, self.attrs.writable)
# geometry type
More information about the grass-commit
mailing list