[GRASS-user] nc_spm_08 - 'cat' double

Markus Metz markus.metz.giswork at googlemail.com
Sun Oct 18 07:57:18 EDT 2009


Martin Landa wrote:
> Hi,
>
> some vector maps from nc_spm_08 uses double precision column as key
> column. Then  some modules fails...
>
> v.info geology -c --q | grep cat
> DOUBLE PRECISION|cat
>
> 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.

Markus M

[1] http://trac.osgeo.org/gdal/ticket/809


More information about the grass-user mailing list