Opened 15 years ago

Closed 12 years ago

#747 closed defect (fixed)

v.rast.stats to table connected to layer 2 fails

Reported by: pvanbosgeo Owned by: grass-dev@…
Priority: normal Milestone: 6.4.4
Component: Vector Version: svn-releasebranch64
Keywords: Cc:
CPU: Unspecified Platform: Linux

Description

I am using v.rast.stats, which works fine when using the default attribute table (layer 1). When however I specify the layer to which the table to be changes is connected to be layer 2 it goes wrong. Basically (1) the columns are added to the table linked to layer 1 instead of the table linked to layer 2 and (2) the columns remain empty.

Best regards

Paulo

Change History (3)

comment:1 by neteler, 12 years ago

Component: DefaultVector
Milestone: 6.4.06.4.4
Version: svn-develbranch6svn-releasebranch64

The problem appears to be that db.execute is used rather than v.db.addcol (such code is included there but commented for reasons unknown to me).

Markus

in reply to:  1 ; comment:2 by mmetz, 12 years ago

Replying to neteler:

The problem appears to be that db.execute is used rather than v.db.addcol (such code is included there but commented for reasons unknown to me).

It should work now, v.rast.stats was fixed 12 months ago. The old code called v.db.addcol without the layer option, the new code always uses the table connected to the given layer.

Markus M

in reply to:  2 comment:3 by mmetz, 12 years ago

Resolution: fixed
Status: newclosed

Closing ticket as fixed.

Markus M

Note: See TracTickets for help on using tickets.