#747: v.rast.stats to table connected to layer 2 fails
-------------------------+--------------------------------------------------
Reporter: pvanbosgeo | Owner: grass-dev@lists.osgeo.org
Type: defect | Status: new
Priority: normal | Milestone: 6.4.0
Component: default | Version: svn-develbranch6
Keywords: | Platform: Linux
Cpu: Unspecified |
-------------------------+--------------------------------------------------
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.
#747: v.rast.stats to table connected to layer 2 fails
-------------------------+--------------------------------------------------
Reporter: pvanbosgeo | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 6.4.4
Component: Vector | Version: svn-releasebranch64
Keywords: | Platform: Linux
Cpu: Unspecified |
-------------------------+--------------------------------------------------
Comment(by mmetz):
Replying to [comment:1 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.