thank you markus for the reply

well, in vector layer i don't have a field containing numbers in string
field, here is my attribute table:

objectID   Type
1               A
2               A
3               B
4               A
5               C


so, i have to rasterize it using the type field wich is not numeric.
How can i do it ?

thank you





On Thu, Sep 4, 2014 at 7:00 PM, Markus Neteler <[email protected]> wrote:

> On Thu, Sep 4, 2014 at 4:56 PM, christophe joey
> <[email protected]> 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 ?
>
> Yes.
> - use v.db.addcol to add a new numeric column
> - then cast the string numbers to numeric with v.db.update:
>   http://grass.osgeo.org/grass64/manuals/v.db.update.html
>   --> see last example (that's for the SQLite or other true SQL
> drivers only, not the DBF backend)
>
> Markus
>
_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to