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

Michael Barton michael.barton at asu.edu
Tue May 31 15:34:47 EDT 2005


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???

Michael
______________________________
Michael Barton, Professor of Anthropology
School of Human Evolution and Social Change
Arizona State University
Tempe, AZ  85287-2402
USA

voice: 480-965-6262; fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton



From: Hamish <hamish_nospam at yahoo.com>
Date: Mon, 30 May 2005 17:08:06 -0700
To: Maciek Sieczka via RT <grass-bugs at intevation.de>
Cc: <grass5 at grass.itc.it>, Michael Barton <Michael.Barton at asu.edu>
Subject: Re: [GRASS5] [bug #3277] (grass) d.vect.thematic fails with DOUBLE

> 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 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-dev/attachments/20050531/e33c6b83/attachment.html


More information about the grass-dev mailing list