<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html style="direction: ltr;">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<title></title>
<style>body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
</head>
<body style="direction: ltr;"
bidimailui-detected-decoding-type="UTF-8" bgcolor="#ffffff"
text="#000000">
On 10/25/2011 05:31 PM, Luisa Peña wrote:
<blockquote
cite="mid:CAH+a189mdi=uKMWn6UJVPj6f_8TcUQpaHjG2fZUixVgCLrdamg@mail.gmail.com"
type="cite">Greetings I have a vectorial (areas) and I want to
convert to raster. In this vector each area is defined by New_ID
that is a varchar and I want to create a raster where pixels
inside each area must have a value. E.g. Area named A1 must be
labelled as 1 and A2 as 2 and B1 as 3 and so on. Is this possible
using v.to.rast?<br>
</blockquote>
<br>
Yes, but you'll need a column in the vector attribute table with
numeric values. THen run:<br>
v.to.rast input_vect out=<raster output> use=attr
col=<numeric attibute column><br>
<br>
If your attributes are in sqlite (not dbf) then I'm sure there are
some SQL string functions you could use to get the integer values
1,2,3... out of the labels A1,B1,...<br>
<br>
<blockquote
cite="mid:CAH+a189mdi=uKMWn6UJVPj6f_8TcUQpaHjG2fZUixVgCLrdamg@mail.gmail.com"
type="cite">
Thanks<br>
Luisa<br>
<br>
This mail was received via Mail-SeCure System.<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
grass-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/grass-user">http://lists.osgeo.org/mailman/listinfo/grass-user</a>
This mail was received via Mail-SeCure System.
</pre>
</blockquote>
<p><br>
</p>
<br>
<pre class="moz-signature" cols="72">--
Micha Silver
Arava Development Co. +972-52-3665918
<a class="moz-txt-link-freetext" href="http://surfaces.co.il">http://surfaces.co.il</a>
</pre>
</body>
</html>