[GRASS-user] rasterize vector layer (string column)
christophe joey
christophe0joey at gmail.com
Fri Sep 5 06:00:21 PDT 2014
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 <neteler at osgeo.org> wrote:
> 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 ?
>
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20140905/342684f6/attachment-0001.html>
More information about the grass-user
mailing list