[GRASS-dev] [GRASS GIS] #747: v.rast.stats to table connected to layer 2 fails

#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.

Best regards

Paulo

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/747&gt;
GRASS GIS <http://grass.osgeo.org>

#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 |
-------------------------+--------------------------------------------------
Changes (by neteler):

  * version: svn-develbranch6 => svn-releasebranch64
  * component: Default => Vector
  * milestone: 6.4.0 => 6.4.4

Comment:

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

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/747#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#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.

Markus M

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/747#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#747: v.rast.stats to table connected to layer 2 fails
-------------------------+--------------------------------------------------
  Reporter: pvanbosgeo | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 6.4.4
Component: Vector | Version: svn-releasebranch64
Resolution: fixed | Keywords:
  Platform: Linux | Cpu: Unspecified
-------------------------+--------------------------------------------------
Changes (by mmetz):

  * status: new => closed
  * resolution: => fixed

Comment:

Closing ticket as fixed.

Markus M

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/747#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>