> Martin, I have downloaded the nc_spm_08 dataset around May (date of
> directory is 2008-05-18):
> GRASS 6.4.0svn (nc_spm_08):/geo/grassdb/nc_spm_08 > v.info -c geology | grep cat
> Displaying column types/names for database connection of layer 1:
> INTEGER|cat
> I guess something has been changed (?) since then.
On Sun, 2009-10-18 at 12:38 +0200, Martin Landa wrote:
no, it's seems to be bug in GRASS 7 - GRASS 6.* reports 'int'.
v.extract in=geology where="cat > 10 and cat < 20" out=geology1 --o
[...]
ERROR: Column <cat> is not integer
See [1]. A wild guess: grass7 uses gdal and not the internal shapelib to open dbf files? At least in gdal-1.6.2, column <cat> would be interpreted as double because field length is >10. The <cat> column of geology is really integer, not double, because there are 0 decimal places.
2009/10/18 Markus Metz <markus.metz.giswork@googlemail.com>:
See [1]. A wild guess: grass7 uses gdal and not the internal shapelib to
open dbf files? At least in gdal-1.6.2, column <cat> would be interpreted as
double because field length is >10. The <cat> column of geology is really
integer, not double, because there are 0 decimal places.