<FONT face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size=2><DIV><DIV>Hi Micha and Hamish,</DIV><DIV>&nbsp;</DIV><DIV>Do you see a way of fixing this?</DIV><DIV>&nbsp;</DIV><DIV>I also tried it with a numeric variable that takes integer values only -- but the rgb_column created by v.colors still holds many missing values.</DIV><DIV>&nbsp;</DIV><DIV>Many thanks!</DIV><DIV>&nbsp;</DIV><DIV>Roy</DIV></DIV><DIV>&nbsp;</DIV><DIV><BR>&nbsp;</DIV><FONT color=#990099>-----Micha Silver &lt;micha@arava.co.il&gt; wrote: -----<BR><BR></FONT><BLOCKQUOTE style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">To: rvanderweide@worldbank.org<BR>From: Micha Silver &lt;micha@arava.co.il&gt;<BR>Date: 12/19/2010 05:26PM<BR>Cc: Hamish &lt;hamish_b@yahoo.com&gt;, grass-user@lists.osgeo.org<BR>Subject: Re: [GRASS-user] SQL Error using "v.color"<BR><BR><P style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0cm">On 12/20/2010 12:07 AM, <A class=moz-txt-link-abbreviated href="mailto:rvanderweide@worldbank.org" target=blank>rvanderweide@worldbank.org</A> wrote:<BR></P><BLOCKQUOTE cite=mid:OF24D3083C.4C7A5B9A-ON852577FE.00798939-852577FE.0079893F@worldbank.org type="cite"><FONT size=2 face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif"><DIV>Hi Hamish and Micha,</DIV><DIV>&nbsp;</DIV><DIV>Many thanks for your help.</DIV><DIV>&nbsp;</DIV><BR><DIV>&nbsp;</DIV><DIV>To follow up on your earlier comment,&nbsp;submitting: v.db.connect -g map=pse layer=1 fs=";"<BR></DIV><DIV>yields: 1/pse;pse;cat;C://test/poverty/sqlite.db;sqlite</DIV><DIV>&nbsp;</DIV></FONT></BLOCKQUOTE>Here's the problem. That slash and "pse" (layer name) after the digit '1'. <BR>Any grep expression with a character following the $GIS_OPT_LAYER will fail...<BR><BR><BLOCKQUOTE cite=mid:OF24D3083C.4C7A5B9A-ON852577FE.00798939-852577FE.0079893F@worldbank.org type="cite"><FONT size=2 face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif"><DIV>Does this help?</DIV><DIV>&nbsp;</DIV><DIV>Thanks again,</DIV><DIV>&nbsp;</DIV><DIV>Roy</DIV><DIV>&nbsp;</DIV><DIV><BR>&nbsp;</DIV><FONT color=#990099>-----Hamish <A class=moz-txt-link-rfc2396E href="mailto:hamish_b@yahoo.com" target=blank>&lt;hamish_b@yahoo.com&gt;</A> wrote: -----<BR><BR></FONT><BLOCKQUOTE style="BORDER-LEFT: rgb(0,0,0) 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">To: Micha Silver <A class=moz-txt-link-rfc2396E href="mailto:micha@arava.co.il" target=blank>&lt;micha@arava.co.il&gt;</A>, <A class=moz-txt-link-abbreviated href="mailto:rvanderweide@worldbank.org" target=blank>rvanderweide@worldbank.org</A><BR>From: Hamish <A class=moz-txt-link-rfc2396E href="mailto:hamish_b@yahoo.com" target=blank>&lt;hamish_b@yahoo.com&gt;</A><BR>Date: 12/19/2010 04:43PM<BR>Cc: <A class=moz-txt-link-abbreviated href="mailto:grass-user@lists.osgeo.org" target=blank>grass-user@lists.osgeo.org</A><BR>Subject: Re: [GRASS-user] SQL Error using "v.color"<BR><BR><FONT size=2 face="Default Monospace,Courier New,Courier,monospace">Roy:<BR>&gt; Hi Micha,&nbsp;To follow up on my problem and your fix, I am no longer<BR>&gt; getting the error message i used to get. When i look at the attribute<BR>&gt; table, however, the RGB_column variable (which i named `hc2' in my<BR>&gt; example) --&nbsp;created by&nbsp;v.colors -- has a lot of missing values.&nbsp;Do<BR>&gt; you&nbsp;have an idea&nbsp;why this is the case?<BR><BR>one thing to try is to remove the hc2 column (v.db.dropcol) and try again.<BR>what does v.univar say about the numerical column?<BR><BR><BR>Hamish<BR><BR><BR><BR>&nbsp;&nbsp; &nbsp; &nbsp;<BR></FONT></BLOCKQUOTE><BR></FONT><BR>This mail was received via Mail-SeCure System.<BR></BLOCKQUOTE><BR><BR><FONT size=2 face="Default Monospace,Courier New,Courier,monospace">-- <BR>Micha Silver<BR>Arava Development Co. +972-52-3665918<BR><A class=moz-txt-link-freetext href="http://surfaces.co.il/" target=blank>http://surfaces.co.il</A><BR><BR></FONT></BLOCKQUOTE><BR></FONT>