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

Maciek Sieczka werchowyna at epf.pl
Tue May 31 06:19:49 EDT 2005


Hamish <hamish_nospam <at> yahoo.com> writes:

> > Grass CVS 30.05.2005 d.vect.thematic
> > ...
> > 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
> 

Hamish

Your proposition didn't do it but after one hour of tough reading

^'[$GIS_OPT_column]'

did. Though I still don't know how.

Thanks for making me to dig bash a bit. If this solution is ok please apply it,
I'm not allowed to write to CVS, thanks god :).

Maciek




More information about the grass-dev mailing list