[GRASS5] [bug #3277] (grass) d.vect.thematic fails with DOUBLE

Hamish hamish_nospam at yahoo.com
Mon May 30 20:08:06 EDT 2005


> In Grass CVS 30.05.2005 d.vect.thematic still doesn't accept the
> DOUBLE data but the error information is different:
> 
> d.vect.thematic map=gminy_zw_2003_prc_dem at admin type=centroid
> column=PROD 'themetype=graduated points' themecalc=interval layer=1
> icon=basic/circle size=5 maxsize=20 nint=4 colorscheme=blue-red
> singlecolor=0:250:0 startcolor=250:0:0 endcolor=0:0:250 monitor=x2 -l 
> 
> ERROR: Column <PROD> is of type <double precision
> double precision> which is not numeric.
> 
> Double precision is not numeric? (I'm only a simple user.)


note the type is:

<double precision
double precision>


I think the problem is thus:

# check column type
COLTYPE="`v.info -c $GIS_OPT_map [...] | grep $GIS_OPT_column | [...]


If you have a column PROD and another column with "PROD" in it, e.g.
PROD2, the grep step will pick out both.

Try using the regex start of line and end of line markers to refine the
search:

... | grep ^"$GIS_OPT_column"$ | ...



Hamish




More information about the grass-dev mailing list