<FONT face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size=2><DIV>Hi Micha,</DIV><DIV>&nbsp;</DIV><DIV>To follow up on my problem and your fix, I am no longer getting the error message i used to get. When i look at the attribute table, however, the RGB_column variable (which i named `hc2' in my example) --&nbsp;created by&nbsp;v.colors -- has a lot of missing values.</DIV><DIV>&nbsp;</DIV><DIV>Do you&nbsp;have an idea&nbsp;why this is the case?</DIV><DIV>&nbsp;</DIV><DIV>Many thanks again!</DIV><DIV>&nbsp;</DIV><DIV>Roy</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 03:33PM<BR>Cc: grass-user@lists.osgeo.org<BR>Subject: Re: [GRASS-user] SQL Error using "v.color"<BR><BR>On 19/12/2010 14:44, <A class=moz-txt-link-abbreviated href="mailto:rvanderweide@worldbank.org" target=blank>rvanderweide@worldbank.org</A> wrote: <BLOCKQUOTE cite=mid:OFCC86D57E.B701CA3A-ON852577FE.00460987-852577FE.0046098D@worldbank.org type="cite"><FONT size=2 face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif"><P style="MARGIN: 0px">Dear GRASS,</P><P style="MARGIN: 0px">&nbsp;</P><P style="MARGIN: 0px">I am using the December 19 (2010)&nbsp;build of GRASS 6.4 for Windows. I have loaded a vector map (for a country with approx 20 province boundaries) with an attribute table that contains a continuous variable at the province level (name of column is `y2009').&nbsp;Trying to put the `y2009' variable on the map, i begin with defining the color grading to be used by means of the following command:</P><P style="MARGIN: 0px">&nbsp;</P><P style="MARGIN: 0px">"GRASS 6.4&gt; v.colors map=pse column=y2009 rgb_column=hc2 color=bcyr"</P><P style="MARGIN: 0px">&nbsp;</P><P style="MARGIN: 0px">Doing so I&nbsp;get the following error:</P><P style="MARGIN: 0px">&nbsp;</P><P style="MARGIN: 0px">"GRASS 6.4&gt; v.colors map=pse column=y2009 rgb_column=hc2 color=bcyr<BR>Creating column &lt;hc2&gt; ...<BR>Scanning values ...<BR>Looking up colors ...<BR>Writing 16 colors ...<BR>DBMI-SQLite driver error:<BR>Error in sqlite3_prepare():<BR>near "SET": syntax error</P><P style="MARGIN: 0px">ERROR: Error while executing: 'UPDATE SET hc2 = '0:0:255' WHERE y2009 =<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0.094713'<BR>ERROR: Processing SQL transaction<BR>rm: cannot remove `C://test/poverty/.tmp/636.0_vcol.sql': Permission denied"</P><P style="MARGIN: 0px">&nbsp;</P><P style="MARGIN: 0px">Any idea what is creating the error -- or what i am doing wrong? Is there a way to get around this/fix it?</P><P style="MARGIN: 0px">&nbsp;</P></FONT></BLOCKQUOTE><P style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0cm"><BR></P><P style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0cm">I have a suggestion that might fix this problem. The v.colors script on line 209 uses the expression:</P><P style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0cm">grep "^$GIS_OPT_LAYER;" </P><P style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0cm">to isolate the TABLE name, and I think that the windows version of grep is confused by the semicolon ';'.</P><P style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0cm"><BR></P><P style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0cm">Please locate the script (should be under %GISBASE\scripts)&nbsp; and open it in an editor. Then replace line 209 as follows:</P><P style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0cm">(original)</P>TABLE=`v.db.connect -g map="$GIS_OPT_MAP" layer="$GIS_OPT_LAYER" fs=";" | grep "^$GIS_OPT_LAYER;" | cut -f2 -d';'`<BR>(change to:)<BR>TABLE=`v.db.connect -g map="$GIS_OPT_MAP" layer="$GIS_OPT_LAYER" fs=";" | grep "^$GIS_OPT_LAYER" | cut -f2 -d';'`<BR>(just remove the ; from "^$GIS_OPT_LAYER" after grep)<BR><BR>Let us know if this works.<BR><BR>Regards,<BR>Micha<BR><BR><BLOCKQUOTE cite=mid:OFCC86D57E.B701CA3A-ON852577FE.00460987-852577FE.0046098D@worldbank.org type="cite"><FONT size=2 face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif"><P style="MARGIN: 0px">Many thanks in advance!</P><P style="MARGIN: 0px">&nbsp;</P><P style="MARGIN: 0px">Roy</P><P style="MARGIN: 0px">&nbsp;</P><P style="MARGIN: 0px">&nbsp;</P></FONT><BR>This mail was received via Mail-SeCure System.<BR><FONT size=2 face="Default Monospace,Courier New,Courier,monospace"><FIELDSET class=mimeAttachmentHeader></FIELDSET><BR>_______________________________________________<BR>grass-user mailing list<BR><A class=moz-txt-link-abbreviated href="mailto:grass-user@lists.osgeo.org" target=blank>grass-user@lists.osgeo.org</A><BR><A class=moz-txt-link-freetext href="http://lists.osgeo.org/mailman/listinfo/grass-user" target=blank>http://lists.osgeo.org/mailman/listinfo/grass-user</A><BR><BR>This mail was received via Mail-SeCure System.<BR><BR><BR>&nbsp;&nbsp;</FONT></BLOCKQUOTE><BR></BLOCKQUOTE><BR></FONT>