<HTML>
<HEAD>
<TITLE>Re: [GRASS5] [bug #3277] (grass) d.vect.thematic fails with DOUBLE</TITLE>
</HEAD>
<BODY>
<FONT FACE="Verdana, Helvetica, Arial"><SPAN DEFANGED_STYLE='font-size:12.0px'>I could add the regex line markers, but have no idea how I can test this in the situation Maciek reports. How do you get a <double precision double precision> column??? Maybe someone else could add these and test it for me???<BR>
<BR>
Michael<BR>
______________________________<BR>
Michael Barton, Professor of Anthropology<BR>
School of Human Evolution and Social Change<BR>
Arizona State University<BR>
Tempe, AZ 85287-2402<BR>
USA<BR>
<BR>
voice: 480-965-6262; fax: 480-965-7671<BR>
www: <a href="http://www.public.asu.edu/~cmbarton">http://www.public.asu.edu/~cmbarton</a><BR>
<BR>
<BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="95%"><B>From: </B>Hamish <hamish_nospam@yahoo.com><BR>
<B>Date: </B>Mon, 30 May 2005 17:08:06 -0700<BR>
<B>To: </B>Maciek Sieczka via RT <grass-bugs@intevation.de><BR>
<B>Cc: </B><grass5@grass.itc.it>, Michael Barton <Michael.Barton@asu.edu><BR>
<B>Subject: </B>Re: [GRASS5] [bug #3277] (grass) d.vect.thematic fails with DOUBLE<BR>
<BR>
> In Grass CVS 30.05.2005 d.vect.thematic still doesn't accept the <BR>
> DOUBLE data but the error information is different: <BR>
> <BR>
> d.vect.thematic map=gminy_zw_2003_prc_dem@admin type=centroid <BR>
> column=PROD 'themetype=graduated points' themecalc=interval layer=1 <BR>
> icon=basic/circle size=5 maxsize=20 nint=4 colorscheme=blue-red <BR>
> singlecolor=0:250:0 startcolor=250:0:0 endcolor=0:0:250 monitor=x2 -l <BR>
> <BR>
> ERROR: Column <PROD> is of type <double precision <BR>
> double precision> which is not numeric. <BR>
> <BR>
> Double precision is not numeric? (I'm only a simple user.) <BR>
<BR>
<BR>
note the type is: <BR>
<BR>
<double precision <BR>
double precision> <BR>
<BR>
<BR>
I think the problem is thus: <BR>
<BR>
# check column type <BR>
COLTYPE="`v.info -c $GIS_OPT_map [...] | grep $GIS_OPT_column | [...] <BR>
<BR>
<BR>
If you have a column PROD and another column with "PROD" in it, e.g. <BR>
PROD2, the grep step will pick out both. <BR>
<BR>
Try using the regex start of line and end of line markers to refine the <BR>
search: <BR>
<BR>
... | grep ^"$GIS_OPT_column"$ | ... <BR>
<BR>
<BR>
<BR>
Hamish <BR>
<BR>
</SPAN></FONT>
</BODY>
</HTML>