<div dir="ltr"><div><div><div><div><div><div><div><div><div>thank you markus for the reply<br><br></div>well, in vector layer i don't have a field containing numbers in string field, here is my attribute table:<br><br></div>objectID   Type<br></div>1               A<br></div>2               A<br></div>3               B<br></div>4               A<br></div>5               C<br><br><br></div>so, i have to rasterize it using the type field wich is not numeric.<br></div>How can i do it ?<br><br>thank you<br><div><div><div><br><div><div><div><div><div><div><br><br></div></div></div></div></div></div></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Sep 4, 2014 at 7:00 PM, Markus Neteler <span dir="ltr"><<a href="mailto:neteler@osgeo.org" target="_blank">neteler@osgeo.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Thu, Sep 4, 2014 at 4:56 PM, christophe joey<br>
<<a href="mailto:christophe0joey@gmail.com">christophe0joey@gmail.com</a>> wrote:<br>
> hello<br>
><br>
> i would like to rasterize a vector layer i guess within: v.to.rast<br>
> but the type of the column to use in the rasterization is string not<br>
> numeric.<br>
><br>
> is it possible to do it in  grass 6.4 ?<br>
<br>
</div></div>Yes.<br>
- use v.db.addcol to add a new numeric column<br>
- then cast the string numbers to numeric with v.db.update:<br>
  <a href="http://grass.osgeo.org/grass64/manuals/v.db.update.html" target="_blank">http://grass.osgeo.org/grass64/manuals/v.db.update.html</a><br>
  --> see last example (that's for the SQLite or other true SQL<br>
drivers only, not the DBF backend)<br>
<span class="HOEnZb"><font color="#888888"><br>
Markus<br>
</font></span></blockquote></div><br></div>