[GRASS-user] rasterize vector layer (string column)

Markus Neteler neteler at osgeo.org
Thu Sep 4 12:00:50 PDT 2014

On Thu, Sep 4, 2014 at 4:56 PM, christophe joey
<christophe0joey at gmail.com> wrote:
> hello
> i would like to rasterize a vector layer i guess within: v.to.rast
> but the type of the column to use in the rasterization is string not
> numeric.
> is it possible to do it in  grass 6.4 ?

- use v.db.addcol to add a new numeric column
- then cast the string numbers to numeric with v.db.update:
  --> see last example (that's for the SQLite or other true SQL
drivers only, not the DBF backend)


More information about the grass-user mailing list