<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:verdana,helvetica,sans-serif;font-size:10pt"><div>Hi all,<br><br>I have deleted the column I added and tried all command line permutations of<br>v.db.addcol map=Contour_points_cats@PERMANENT layer=1 `col="rast_value DOUBLE PRECISION"`<br>v.db.addcol map=Contour_points_cats@PERMANENT layer=1 `columns="rast_value DOUBLE PRECISION"`<br>that have so far been given in this thread, again with quotes and without. Unfortunately it does not recognise this command, which I why I used the GUI<br><br>The GUI is tcltk on GRASS 6.4<br><br>Micha - I have checked the points are within the raster (they were created from a contour map of the raster). The region is consistent with both the raster and vector<br><br>Thanks!<br></div><div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt;"><br><div style="font-family: times new roman,new york,times,serif;
 font-size: 12pt;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Micha Silver &lt;micha@arava.co.il&gt;<br><b><span style="font-weight: bold;">To:</span></b> Rebecca Bennett &lt;rabennett@ymail.com&gt;<br><b><span style="font-weight: bold;">Cc:</span></b> Martin Landa &lt;landa.martin@gmail.com&gt;; grass-user@lists.osgeo.org<br><b><span style="font-weight: bold;">Sent:</span></b> Wed, 9 June, 2010 10:12:28<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [GRASS-user] Re: Problems with v.what.rast<br></font><br>



  
  <title></title>

On 09/06/2010 11:40, Rebecca Bennett wrote:
<blockquote type="cite">
  
  <div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt;">
  <div>Hi Martin,<br>
  <br>
I tried the command that Micha suggested v.db.addcol
map=Contour_points_cats@PERMANENT layer=1<br>
columns="rast_value double precision" but this age the following error<br>
  <br>
  </div>
  </div>
</blockquote>
The quotes " " around the "rast_value DOUBLE PRECISION" are necessary.
Just to check can we see the output of <br>
v.info -c Contour_points_cats<br>
<br>
You might also check that the points are all within the raster region.<br>
i.e.:<br>
v.info -g Contour_points_cats<br>
r.info -g Dartmoor1<br>
g.region -p<br>
&nbsp;<br>
<blockquote type="cite">
  <div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt;">
  <div>v.db.addcol Contour_points_cats col=rast_value DOUBLE PRECISION<br>
Sorry &lt;DOUBLE&gt; is not a valid option<br>
Sorry &lt;PRECISION&gt; is not a valid option<br>
  <br>
So through the GUI I added a column to the attribute table which gave
the command line out put <br>
v.db.addcol map=Contour_points_cats@PERMANENT layer=1
{columns=rast_value double precision}<br>
  <br>
cheers!<br>
  </div>
  <div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt;"><br>
  <div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><font face="Tahoma" size="2">
  <hr size="1"><b><span style="font-weight: bold;">From:</span></b>
Martin Landa <a rel="nofollow" class="moz-txt-link-rfc2396E" ymailto="mailto:landa.martin@gmail.com" target="_blank" href="mailto:landa.martin@gmail.com">&lt;landa.martin@gmail.com&gt;</a><br>
  <b><span style="font-weight: bold;">To:</span></b> Rebecca Bennett
<a rel="nofollow" class="moz-txt-link-rfc2396E" ymailto="mailto:rabennett@ymail.com" target="_blank" href="mailto:rabennett@ymail.com">&lt;rabennett@ymail.com&gt;</a><br>
  <b><span style="font-weight: bold;">Cc:</span></b> Micha Silver
<a rel="nofollow" class="moz-txt-link-rfc2396E" ymailto="mailto:micha@arava.co.il" target="_blank" href="mailto:micha@arava.co.il">&lt;micha@arava.co.il&gt;</a>; <a rel="nofollow" class="moz-txt-link-abbreviated" ymailto="mailto:grass-user@lists.osgeo.org" target="_blank" href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>
  <b><span style="font-weight: bold;">Sent:</span></b> Wed, 9 June,
2010 9:37:14<br>
  <b><span style="font-weight: bold;">Subject:</span></b> Re:
[GRASS-user] Re: Problems with v.what.rast<br>
  </font><br>
Hi,<br>
  <br>
2010/6/9 Rebecca Bennett &lt;<a rel="nofollow" ymailto="mailto:rabennett@ymail.com" target="_blank" href="mailto:rabennett@ymail.com">rabennett@ymail.com</a>&gt;:<br>
&gt; I added a column v.db.addcol map=Contour_points_cats@PERMANENT
layer=1<br>
&gt; {columns=rast_value double precision} (as my raster is a float),
then ran<br>
&gt; with error<br>
  <br>
how did you get this command?<br>
  <br>
It should be<br>
  <br>
v.db.addcol map=Contour_points_cats@PERMANENT layer=1<br>
columns="rast_value double precision"<br>
  <br>
Martin<br>
  <br>
-- <br>
Martin Landa &lt;landa.martin gmail.com&gt; * <a rel="nofollow" target="_blank" href="http://gama.fsv.cvut.cz/%7Elanda">http://gama.fsv.cvut.cz/~landa</a><br>
  </div>
  </div>
  </div>
  <br>
  <br>
  <br>
This mail was received via Mail-SeCure System.<br>
</blockquote>
<br>
<br>
<pre class="moz-signature">-- <br>Micha Silver<br><a rel="nofollow" class="moz-txt-link-freetext" target="_blank" href="http://www.surfaces.co.il/">http://www.surfaces.co.il/</a>
Arava Development Co.  +972-52-3665918
</pre>
</div></div>
</div><br>



      </body></html>