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

Daniel Calvelo Aros dcalvelo at minag.gob.pe
Tue May 31 13:58:57 EDT 2005


From: Maciek Sieczka <werchowyna at epf.pl>
Sent: Tue, 31 May 2005 10:19:49 +0000 (UTC)

> Hamish <hamish_nospam <at> yahoo.com> writes:
> > 
> > # 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"$ | ...
> 
> Your proposition didn't do it but after one hour of tough reading
> 
> ^'[$GIS_OPT_column]'
> 
> did. Though I still don't know how.

It shouldn't have. That regexp should match a line containing any of the
characters 'G','I',... or the end of line. Could you put a debugging line
after COLTYPE=... like

v.info -c $GIS_OPT_map [...] | grep $GIS_OPT_column | awk '{print "["$0"]"}'

and post back the result of that?

Daniel




More information about the grass-dev mailing list