<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=windows-1255"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
On 09/06/2010 11:40, Rebecca Bennett wrote:
<blockquote cite="mid:171943.57675.qm@web28416.mail.ukl.yahoo.com"
type="cite">
<style type="text/css"><!-- DIV {margin:0px;} --></style>
<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>
<br>
<blockquote cite="mid:171943.57675.qm@web28416.mail.ukl.yahoo.com"
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 <DOUBLE> is not a valid option<br>
Sorry <PRECISION> 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 class="moz-txt-link-rfc2396E" href="mailto:landa.martin@gmail.com"><landa.martin@gmail.com></a><br>
<b><span style="font-weight: bold;">To:</span></b> Rebecca Bennett
<a class="moz-txt-link-rfc2396E" href="mailto:rabennett@ymail.com"><rabennett@ymail.com></a><br>
<b><span style="font-weight: bold;">Cc:</span></b> Micha Silver
<a class="moz-txt-link-rfc2396E" href="mailto:micha@arava.co.il"><micha@arava.co.il></a>; <a class="moz-txt-link-abbreviated" 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 <<a moz-do-not-send="true"
ymailto="mailto:rabennett@ymail.com" href="mailto:rabennett@ymail.com">rabennett@ymail.com</a>>:<br>
> I added a column v.db.addcol map=Contour_points_cats@PERMANENT
layer=1<br>
> {columns=rast_value double precision} (as my raster is a float),
then ran<br>
> 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 <landa.martin gmail.com> * <a moz-do-not-send="true"
href="http://gama.fsv.cvut.cz/%7Elanda" target="_blank">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" cols="62">--
Micha Silver
<a class="moz-txt-link-freetext" href="http://www.surfaces.co.il/">http://www.surfaces.co.il/</a>
Arava Development Co. +972-52-3665918
</pre>
</body>
</html>