[GRASS-user] ERROR with v.report

The following command gives me an error:

v.report map=rivers option=length units=meters

OUTPUT:
Displaying column types/names for database connection of layer 1:
File di input specificato due volte (english: input file was set twice)
ERROR: There is a table connected to input vector map ‘fiumi_princ@PERMANENT’, but there are no categories present in the key column ‘cat’. Consider using v.to.db to correct this.

The vector layer has 227 lines and 12 categories, correctly connected to the db.
I’ve also tried to update a table column and it works fine:

v.to.db map=rivers option=length units=meters columns=len

Working with GRASS 6.4RC1 from OSGeo4W on a Winows 7 machine.

giovanni

I’ve just found that it’s a known bug: http://trac.osgeo.org/grass/ticket/1139

2011/11/21 G. Allegri <giohappy@gmail.com>

The following command gives me an error:

v.report map=rivers option=length units=meters

OUTPUT:
Displaying column types/names for database connection of layer 1:
File di input specificato due volte (english: input file was set twice)
ERROR: There is a table connected to input vector map ‘fiumi_princ@PERMANENT’, but there are no categories present in the key column ‘cat’. Consider using v.to.db to correct this.

The vector layer has 227 lines and 12 categories, correctly connected to the db.
I’ve also tried to update a table column and it works fine:

v.to.db map=rivers option=length units=meters columns=len

Working with GRASS 6.4RC1 from OSGeo4W on a Winows 7 machine.

giovanni

On Mon, Nov 21, 2011 at 6:28 PM, G. Allegri <giohappy@gmail.com> wrote:

I've just found that it's a known bug:
http://trac.osgeo.org/grass/ticket/1139

Could you add " -x" to the first line of the script?
Then run again and it should output shell debugging to
better understand what's ongoing there.

Markus

2011/11/21 G. Allegri <giohappy@gmail.com>

The following command gives me an error:
>> v.report map=rivers option=length units=meters

OUTPUT:
Displaying column types/names for database connection of layer 1:
File di input specificato due volte (english: input file was set twice)
ERROR: There is a table connected to input vector map
'fiumi_princ@PERMANENT', but there are no categories present in the key
column 'cat'. Consider using v.to.db to correct this.
The vector layer has 227 lines and 12 categories, correctly connected to
the db.
I've also tried to update a table column and it works fine:
>> v.to.db map=rivers option=length units=meters columns=len
Working with GRASS 6.4RC1 from OSGeo4W on a Winows 7 machine.
giovanni

_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user