Wed, May 25 2005
11:47:05
|
|
Request created by guest
|
|
Subject: d.vect.thematic fails with DOUBLE
Platform: GNU/Linux/i386
grass obtained from: Trento Italy site
grass binary for platform: Compiled from Sources
GRASS Version: cvs_25_05_05
d.vect.thematic works fine with INTEGER but fails with DOUBLE as follows:
d.vect.thematic map=gminy_zw_2003_prc_dem 'themetype=graduated colors' themecalc=interval
column=PROD layer=1 type=area icon=basic/circle size=5 maxsize=20 nint=4 colorscheme=blue-red
singlecolor=250:0:0 startcolor=250:0:0 endcolor=0:0:250 monitor=x1
awk: cmd. line:1: (FILENAME=- FNR=1) fatal: division by zero attempted
Thematic map legend for column PROD of map gminy_zw_2003_prc_dem
Value range: -
Mapped by 4 intervals of
Color(R:G:B) Value
============ ==========
0:0:250 . -
DBMI-DBF driver error:
SQL parser error in statement:
SELECT cat FROM gminy_zw_2003_prc_dem WHERE PROD >= and PROD<=
Error in db_open_select_cursor()
62:0:188 . -
DBMI-DBF driver error:
SQL parser error in statement:
SELECT cat FROM gminy_zw_2003_prc_dem WHERE PROD > and PROD<=
Error in db_open_select_cursor()
124:0:126 . -
DBMI-DBF driver error:
SQL parser error in statement:
SELECT cat FROM gminy_zw_2003_prc_dem WHERE PROD > and PROD<=
Error in db_open_select_cursor()
186:0:64 . -
DBMI-DBF driver error:
SQL parser error in statement:
SELECT cat FROM gminy_zw_2003_prc_dem WHERE PROD > and PROD<=
Error in db_open_select_cursor()
---
the vector file info:
GRASS 6.1.cvs (caves_utm33):~ > v.info gminy_zw_2003_prc_dem
+----------------------------------------------------------------------------+
| Layer: gminy_zw_2003_prc_dem Organization:
|
| Mapset: admin Source Date:
|
| Location: caves_utm33 Name of creator:
|
| Database: /home/grassdata
|
| Title:
|
| Map Scale: 1:1
|
| Map format: native
|
|----------------------------------------------------------------------------|
| Type of Map: Vector (level: 2)
|
|
|
| Number of points: 0 Number of areas: 23
|
| Number of lines: 0 Number of islands: 5
|
| Number of boundaries: 90 Number of faces: 0
|
| Number of centroids: 23 Number of kernels: 0
|
|
|
| Map is 3D: 0
|
| Number of dblinks: 1
|
|
|
| Projection: Universe Transverse Mercator (zone 33)
|
| N: 5739296.326 S: 5660045.543
|
| E: 633165.320 W: 564573.435
|
| B: 0.000 T: 0.000
|
|
|
| Digitize threshold: 0.00000
|
| Comments:
|
|
|
+----------------------------------------------------------------------------+
datbase info:
db.describe table=gminy_zw_2003_prc_dem driver=dbf database=$GISDBASE/$LOCATION_NAME/$MAPSET/dbf/
table:gminy_zw_2003_prc_dem
description:
insert:yes
delete:yes
ncols:14
column:CAT
description:
type:INTEGER
len:11
scale:0
precision:10
default:0
nullok:yes
select:yes
update:yes
column:NAZWA
description:
type:CHARACTER
len:15
scale:0
precision:0
default:
nullok:yes
select:yes
update:yes
column:PRZYR_PRC
description:
type:DOUBLE PRECISION
len:5
scale:2
precision:3
default:0.000000
nullok:yes
select:yes
update:yes
column:PRZEDPR
description:
type:DOUBLE PRECISION
len:8
scale:2
precision:6
default:0.000000
nullok:yes
select:yes
update:yes
column:PROD
description:
type:DOUBLE PRECISION
len:8
scale:2
precision:6
default:0.000000
nullok:yes
select:yes
update:yes
column:POPROD
description:
type:DOUBLE PRECISION
len:7
scale:2
precision:5
default:0.000000
nullok:yes
select:yes
update:yes
column:PRAC
description:
type:DOUBLE PRECISION
len:8
scale:2
precision:6
default:0.000000
nullok:yes
select:yes
update:yes
column:PRAC_ROL
description:
type:DOUBLE PRECISION
len:6
scale:2
precision:4
default:0.000000
nullok:yes
select:yes
update:yes
column:BEZR_REJ
description:
type:DOUBLE PRECISION
len:7
scale:2
precision:5
default:0.000000
nullok:yes
select:yes
update:yes
column:ZATR
description:
type:DOUBLE PRECISION
len:5
scale:2
precision:3
default:0.000000
nullok:yes
select:yes
update:yes
column:NIEZATR
description:
type:DOUBLE PRECISION
len:5
scale:2
precision:3
default:0.000000
nullok:yes
select:yes
update:yes
column:GESTOSC
description:
type:DOUBLE PRECISION
len:7
scale:2
precision:5
default:0.000000
nullok:yes
select:yes
update:yes
column:WIES_KM2
description:
type:DOUBLE PRECISION
len:4
scale:2
precision:2
default:0.000000
nullok:yes
select:yes
update:yes
column:grassrgb
description:
type:CHARACTER
len:11
scale:0
precision:0
default:
nullok:yes
select:yes
update:yes
Maciek |
|
Wed, May 25 2005
15:04:10
|
|
Mail sent by jachym.cepicky@centrum.cz
|
|
Return-Path |
<jachym.cepicky@centrum.cz>
|
Delivered-To |
grass-bugs@lists.intevation.de
|
Date |
Wed, 25 May 2005 15:10:07 +0200
|
From |
Jachym Cepicky <jachym.cepicky@centrum.cz>
|
To |
Request Tracker <grass-bugs@intevation.de>, GRASS Developers list <grass5@grass.itc.it>
|
Subject |
Re: [GRASS5] [bug #3277] (grass) d.vect.thematic fails with DOUBLE
|
Message-ID |
<20050525131007.GA28750@trava>
|
Mail-Followup-To |
Request Tracker <grass-bugs@intevation.de>, GRASS Developers list <grass5@grass.itc.it>
|
References |
<20050525094705.EDA6E101FA0@lists.intevation.de>
|
Mime-Version |
1.0
|
Content-Type |
text/plain; charset=iso-8859-2
|
Content-Disposition |
inline
|
Content-Transfer-Encoding |
8bit
|
In-Reply-To |
<20050525094705.EDA6E101FA0@lists.intevation.de>
|
User-Agent |
Mutt/1.5.6+20040907i
|
Sender |
Jachym Cepicky <jachym.cepicky@centrum.cz>
|
X-Spam-Status |
No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
|
X-Spam-Level |
|
hi,
this should be solved by
export LC_NUMERIC=C
at line 167 of d.vect.thematic ...
is you d.vect.thematic not a bit older?
Jáchym
On Wed, May 25, 2005 at 11:47:05AM +0200, Request Tracker wrote:
> this bug's URL: http://intevation.de/rt/webrt?serial_num=3277
> -------------------------------------------------------------------------
>
> Subject: d.vect.thematic fails with DOUBLE
>
> Platform: GNU/Linux/i386
> grass obtained from: Trento Italy site
> grass binary for platform: Compiled from Sources
> GRASS Version: cvs_25_05_05
>
> d.vect.thematic works fine with INTEGER but fails with DOUBLE as follows:
>
>
> d.vect.thematic map=gminy_zw_2003_prc_dem 'themetype=graduated colors' themecalc=interval
column=PROD layer=1 type=area icon=basic/circle size=5 maxsize=20 nint=4 colorscheme=blue-red
singlecolor=250:0:0 startcolor=250:0:0 endcolor=0:0:250 monitor=x1
> awk: cmd. line:1: (FILENAME=- FNR=1) fatal: division by zero attempted
>
>
> Thematic map legend for column PROD of map gminy_zw_2003_prc_dem
>
> Value range: -
> Mapped by 4 intervals of
>
> Color(R:G:B) Value
> ============ ==========
> 0:0:250 . -
> DBMI-DBF driver error:
> SQL parser error in statement:
> SELECT cat FROM gminy_zw_2003_prc_dem WHERE PROD >= and PROD<=
> Error in db_open_select_cursor()
>
> 62:0:188 . -
> DBMI-DBF driver error:
> SQL parser error in statement:
> SELECT cat FROM gminy_zw_2003_prc_dem WHERE PROD > and PROD<=
> Error in db_open_select_cursor()
>
> 124:0:126 . -
> DBMI-DBF driver error:
> SQL parser error in statement:
> SELECT cat FROM gminy_zw_2003_prc_dem WHERE PROD > and PROD<=
> Error in db_open_select_cursor()
>
> 186:0:64 . -
> DBMI-DBF driver error:
> SQL parser error in statement:
> SELECT cat FROM gminy_zw_2003_prc_dem WHERE PROD > and PROD<=
> Error in db_open_select_cursor()
>
> ---
>
> the vector file info:
>
> GRASS 6.1.cvs (caves_utm33):~ > v.info gminy_zw_2003_prc_dem
> +----------------------------------------------------------------------------+
> | Layer: gminy_zw_2003_prc_dem Organization:
|
> | Mapset: admin Source Date:
|
> | Location: caves_utm33 Name of creator:
|
> | Database: /home/grassdata
|
> | Title:
|
> | Map Scale: 1:1
|
> | Map format: native
|
> |----------------------------------------------------------------------------|
> | Type of Map: Vector (level: 2)
|
> |
|
> | Number of points: 0 Number of areas: 23
|
> | Number of lines: 0 Number of islands: 5
|
> | Number of boundaries: 90 Number of faces: 0
|
> | Number of centroids: 23 Number of kernels: 0
|
> |
|
> | Map is 3D: 0
|
> | Number of dblinks: 1
|
> |
|
> | Projection: Universe Transverse Mercator (zone 33)
|
> | N: 5739296.326 S: 5660045.543
|
> | E: 633165.320 W: 564573.435
|
> | B: 0.000 T: 0.000
|
> |
|
> | Digitize threshold: 0.00000
|
> | Comments:
|
> |
|
> +----------------------------------------------------------------------------+
>
> datbase info:
>
> db.describe table=gminy_zw_2003_prc_dem driver=dbf database=$GISDBASE/$LOCATION_NAME/$MAPSET/dbf/
> table:gminy_zw_2003_prc_dem
> description:
> insert:yes
> delete:yes
> ncols:14
>
> column:CAT
> description:
> type:INTEGER
> len:11
> scale:0
> precision:10
> default:0
> nullok:yes
> select:yes
> update:yes
>
> column:NAZWA
> description:
> type:CHARACTER
> len:15
> scale:0
> precision:0
> default:
> nullok:yes
> select:yes
> update:yes
>
> column:PRZYR_PRC
> description:
> type:DOUBLE PRECISION
> len:5
> scale:2
> precision:3
> default:0.000000
> nullok:yes
> select:yes
> update:yes
>
> column:PRZEDPR
> description:
> type:DOUBLE PRECISION
> len:8
> scale:2
> precision:6
> default:0.000000
> nullok:yes
> select:yes
> update:yes
>
> column:PROD
> description:
> type:DOUBLE PRECISION
> len:8
> scale:2
> precision:6
> default:0.000000
> nullok:yes
> select:yes
> update:yes
>
> column:POPROD
> description:
> type:DOUBLE PRECISION
> len:7
> scale:2
> precision:5
> default:0.000000
> nullok:yes
> select:yes
> update:yes
>
> column:PRAC
> description:
> type:DOUBLE PRECISION
> len:8
> scale:2
> precision:6
> default:0.000000
> nullok:yes
> select:yes
> update:yes
>
> column:PRAC_ROL
> description:
> type:DOUBLE PRECISION
> len:6
> scale:2
> precision:4
> default:0.000000
> nullok:yes
> select:yes
> update:yes
>
> column:BEZR_REJ
> description:
> type:DOUBLE PRECISION
> len:7
> scale:2
> precision:5
> default:0.000000
> nullok:yes
> select:yes
> update:yes
>
> column:ZATR
> description:
> type:DOUBLE PRECISION
> len:5
> scale:2
> precision:3
> default:0.000000
> nullok:yes
> select:yes
> update:yes
>
> column:NIEZATR
> description:
> type:DOUBLE PRECISION
> len:5
> scale:2
> precision:3
> default:0.000000
> nullok:yes
> select:yes
> update:yes
>
> column:GESTOSC
> description:
> type:DOUBLE PRECISION
> len:7
> scale:2
> precision:5
> default:0.000000
> nullok:yes
> select:yes
> update:yes
>
> column:WIES_KM2
> description:
> type:DOUBLE PRECISION
> len:4
> scale:2
> precision:2
> default:0.000000
> nullok:yes
> select:yes
> update:yes
>
> column:grassrgb
> description:
> type:CHARACTER
> len:11
> scale:0
> precision:0
> default:
> nullok:yes
> select:yes
> update:yes
>
> Maciek
>
> -------------------------------------------- Managed by Request Tracker
>
> _______________________________________________
> grass5 mailing list
> grass5@grass.itc.it
> http://grass.itc.it/mailman/listinfo/grass5
--
Jachym Cepicky
e-mail: jachym.cepicky@centrum.cz
URL: http://les-ejk.cz
GPG: http://www.fle.czu.cz/~jachym/gnupg_public_key/
|
|
Wed, May 25 2005
18:23:02
|
|
Mail sent by michael.barton@asu.edu
|
|
Return-Path |
<Michael.Barton@asu.edu>
|
Delivered-To |
grass-bugs@lists.intevation.de
|
Date |
Wed, 25 May 2005 09:22:38 -0700
|
From |
Michael Barton <michael.barton@asu.edu>
|
Subject |
Re: [GRASS5] [bug #3277] (grass) d.vect.thematic fails with DOUBLE
|
In-reply-to |
<20050525094705.EDA6E101FA0@lists.intevation.de>
|
To |
Paolo Cavallini via RT <grass-bugs@intevation.de>, grass5@grass.itc.it
|
Message-id |
<BEB9F45E.128FD%michael.barton@asu.edu>
|
MIME-version |
1.0
|
Content-type |
text/plain; charset=US-ASCII
|
Content-transfer-encoding |
7bit
|
User-Agent |
Microsoft-Entourage/11.1.0.040913
|
X-Spam-Status |
No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
|
X-Spam-Level |
|
Could someone else test this with the current version? I've tested it by
updating an "area" column with values via v.to.db. This provides non-integer
values in a dbf format. However, the native dbf format doesn't explicitly
support double precision numbers the way another dbms might.
Since this is done as intervals, there are no statistical calculations done
in v.univar.sh except for maximum and minimum. I've done all the
calculations for thematic mapping in awk. The only thing I can think of is
that there are some records have empty (i.e., NOT 0, but empty or null)
values for the field. Something along this line happened when I was testing
it against the Spearfish roads table. The 'nodata' record had nothing in it
for length. When I opened the table and resaved it, it changed to 0. Then it
calculated OK. Currently, this does not handle null or empty values. It
would take a rewrite of v.univar.sh to do so, along with a way to specify
them.
If this is not the problem, I'm baffled as to why this is creating an error.
Could anyone else offer ideas?
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: Request Tracker <grass-bugs@intevation.de>
> Reply-To: Request Tracker <grass-bugs@intevation.de>
> Date: Wed, 25 May 2005 11:47:05 +0200 (CEST)
> To: <grass5@grass.itc.it>
> Subject: [GRASS5] [bug #3277] (grass) d.vect.thematic fails with DOUBLE
>
> this bug's URL: http://intevation.de/rt/webrt?serial_num=3277
> -------------------------------------------------------------------------
>
> Subject: d.vect.thematic fails with DOUBLE
>
> Platform: GNU/Linux/i386
> grass obtained from: Trento Italy site
> grass binary for platform: Compiled from Sources
> GRASS Version: cvs_25_05_05
>
> d.vect.thematic works fine with INTEGER but fails with DOUBLE as follows:
>
>
> d.vect.thematic map=gminy_zw_2003_prc_dem 'themetype=graduated colors'
> themecalc=interval column=PROD layer=1 type=area icon=basic/circle size=5
> maxsize=20 nint=4 colorscheme=blue-red singlecolor=250:0:0 startcolor=250:0:0
> endcolor=0:0:250 monitor=x1
> awk: cmd. line:1: (FILENAME=- FNR=1) fatal: division by zero attempted
>
>
> Thematic map legend for column PROD of map gminy_zw_2003_prc_dem
>
> Value range: -
> Mapped by 4 intervals of
>
> Color(R:G:B) Value
> ============ ==========
> 0:0:250 . -
> DBMI-DBF driver error:
> SQL parser error in statement:
> SELECT cat FROM gminy_zw_2003_prc_dem WHERE PROD >= and PROD<=
> Error in db_open_select_cursor()
>
> 62:0:188 . -
> DBMI-DBF driver error:
> SQL parser error in statement:
> SELECT cat FROM gminy_zw_2003_prc_dem WHERE PROD > and PROD<=
> Error in db_open_select_cursor()
>
> 124:0:126 . -
> DBMI-DBF driver error:
> SQL parser error in statement:
> SELECT cat FROM gminy_zw_2003_prc_dem WHERE PROD > and PROD<=
> Error in db_open_select_cursor()
>
> 186:0:64 . -
> DBMI-DBF driver error:
> SQL parser error in statement:
> SELECT cat FROM gminy_zw_2003_prc_dem WHERE PROD > and PROD<=
> Error in db_open_select_cursor()
>
> ---
>
> the vector file info:
>
> GRASS 6.1.cvs (caves_utm33):~ > v.info gminy_zw_2003_prc_dem
>
> +----------------------------------------------------------------------------+
> | Layer: gminy_zw_2003_prc_dem Organization:
> |
> | Mapset: admin Source Date:
> |
> | Location: caves_utm33 Name of creator:
> |
> | Database: /home/grassdata
> |
> | Title:
> |
> | Map Scale: 1:1
> |
> | Map format: native
> |
>
> |----------------------------------------------------------------------------|
> | Type of Map: Vector (level: 2)
> |
> |
> |
> | Number of points: 0 Number of areas: 23
> |
> | Number of lines: 0 Number of islands: 5
> |
> | Number of boundaries: 90 Number of faces: 0
> |
> | Number of centroids: 23 Number of kernels: 0
> |
> |
> |
> | Map is 3D: 0
> |
> | Number of dblinks: 1
> |
> |
> |
> | Projection: Universe Transverse Mercator (zone 33)
> |
> | N: 5739296.326 S: 5660045.543
> |
> | E: 633165.320 W: 564573.435
> |
> | B: 0.000 T: 0.000
> |
> |
> |
> | Digitize threshold: 0.00000
> |
> | Comments:
> |
> |
> |
>
> +----------------------------------------------------------------------------+
>
> datbase info:
>
> db.describe table=gminy_zw_2003_prc_dem driver=dbf
> database=$GISDBASE/$LOCATION_NAME/$MAPSET/dbf/
> table:gminy_zw_2003_prc_dem
> description:
> insert:yes
> delete:yes
> ncols:14
>
> column:CAT
> description:
> type:INTEGER
> len:11
> scale:0
> precision:10
> default:0
> nullok:yes
> select:yes
> update:yes
>
> column:NAZWA
> description:
> type:CHARACTER
> len:15
> scale:0
> precision:0
> default:
> nullok:yes
> select:yes
> update:yes
>
> column:PRZYR_PRC
> description:
> type:DOUBLE PRECISION
> len:5
> scale:2
> precision:3
> default:0.000000
> nullok:yes
> select:yes
> update:yes
>
> column:PRZEDPR
> description:
> type:DOUBLE PRECISION
> len:8
> scale:2
> precision:6
> default:0.000000
> nullok:yes
> select:yes
> update:yes
>
> column:PROD
> description:
> type:DOUBLE PRECISION
> len:8
> scale:2
> precision:6
> default:0.000000
> nullok:yes
> select:yes
> update:yes
>
> column:POPROD
> description:
> type:DOUBLE PRECISION
> len:7
> scale:2
> precision:5
> default:0.000000
> nullok:yes
> select:yes
> update:yes
>
> column:PRAC
> description:
> type:DOUBLE PRECISION
> len:8
> scale:2
> precision:6
> default:0.000000
> nullok:yes
> select:yes
> update:yes
>
> column:PRAC_ROL
> description:
> type:DOUBLE PRECISION
> len:6
> scale:2
> precision:4
> default:0.000000
> nullok:yes
> select:yes
> update:yes
>
> column:BEZR_REJ
> description:
> type:DOUBLE PRECISION
> len:7
> scale:2
> precision:5
> default:0.000000
> nullok:yes
> select:yes
> update:yes
>
> column:ZATR
> description:
> type:DOUBLE PRECISION
> len:5
> scale:2
> precision:3
> default:0.000000
> nullok:yes
> select:yes
> update:yes
>
> column:NIEZATR
> description:
> type:DOUBLE PRECISION
> len:5
> scale:2
> precision:3
> default:0.000000
> nullok:yes
> select:yes
> update:yes
>
> column:GESTOSC
> description:
> type:DOUBLE PRECISION
> len:7
> scale:2
> precision:5
> default:0.000000
> nullok:yes
> select:yes
> update:yes
>
> column:WIES_KM2
> description:
> type:DOUBLE PRECISION
> len:4
> scale:2
> precision:2
> default:0.000000
> nullok:yes
> select:yes
> update:yes
>
> column:grassrgb
> description:
> type:CHARACTER
> len:11
> scale:0
> precision:0
> default:
> nullok:yes
> select:yes
> update:yes
>
> Maciek
>
> -------------------------------------------- Managed by Request Tracker
>
|
|
Mon, May 30 2005
20:42:38
|
|
Owner changed to mbarton by msieczka
|
|
Mon, May 30 2005
20:42:38
|
|
Mail sent by msieczka
|
|
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@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.)
Maciek |
|
Tue, May 31 2005
02:08:21
|
|
Mail sent by hamish_nospam@yahoo.com
|
|
Return-Path |
<hamish_nospam@yahoo.com>
|
Delivered-To |
grass-bugs@lists.intevation.de
|
Date |
Tue, 31 May 2005 12:08:06 +1200
|
From |
Hamish <hamish_nospam@yahoo.com>
|
To |
Maciek Sieczka via RT <grass-bugs@intevation.de>
|
Cc |
grass5@grass.itc.it, Michael.Barton@asu.edu
|
Subject |
Re: [GRASS5] [bug #3277] (grass) d.vect.thematic fails with DOUBLE
|
Message-Id |
<20050531120806.14da7ab6.hamish_nospam@yahoo.com>
|
In-Reply-To |
<20050530184238.C44B11005AD@lists.intevation.de>
|
References |
<20050530184238.C44B11005AD@lists.intevation.de>
|
X-Mailer |
Sylpheed version 1.0.4 (GTK+ 1.2.10; i386-pc-linux-gnu)
|
X-Face |
M<EoB)"*Z~u!,vFhXmw}R_KbdBta*P_=T|rbBL'e1/CQ9;/1g\BU3&!=y8ria$2Uk!HT&BB 8i?|X_+7~1jsy}F~g$2va%3fV`*=L(*cem[@3\yg,G,@rg6/QMJ
|
Mime-Version |
1.0
|
Content-Type |
text/plain; charset=US-ASCII
|
Content-Transfer-Encoding |
7bit
|
X-Spam-Status |
No, hits=-4.0 tagged_above=-999.0 required=3.0 tests=BAYES_00, FORGED_YAHOO_RCVD
|
X-Spam-Level |
|
> 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@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
|
|
Tue, May 31 2005
21:35:14
|
|
Mail sent by michael.barton@asu.edu
|
|
Return-Path |
<Michael.Barton@asu.edu>
|
Delivered-To |
grass-bugs@lists.intevation.de
|
Date |
Tue, 31 May 2005 12:34:47 -0700
|
From |
Michael Barton <michael.barton@asu.edu>
|
Subject |
Re: [GRASS5] [bug #3277] (grass) d.vect.thematic fails with DOUBLE
|
In-reply-to |
<20050531120806.14da7ab6.hamish_nospam@yahoo.com>
|
To |
Hamish <hamish_nospam@yahoo.com>, Paolo Cavallini via RT <grass-bugs@intevation.de>
|
Cc |
grass5@grass.itc.it
|
Message-id |
<BEC20A67.12AF1%michael.barton@asu.edu>
|
MIME-version |
1.0
|
Content-type |
multipart/alternative; boundary="Boundary_(ID_li3WHarMWw9eRw7m4K+Q1A)"
|
User-Agent |
Microsoft-Entourage/11.1.0.040913
|
X-Spam-Status |
No, hits=-4.8 tagged_above=-999.0 required=3.0 tests=BAYES_00, HTML_MESSAGE
|
X-Spam-Level |
|
> This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
--Boundary_(ID_li3WHarMWw9eRw7m4K+Q1A)
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
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@yahoo.com>
Date: Mon, 30 May 2005 17:08:06 -0700
To: Maciek Sieczka via RT <grass-bugs@intevation.de>
Cc: <grass5@grass.itc.it>, Michael Barton <Michael.Barton@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@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
--Boundary_(ID_li3WHarMWw9eRw7m4K+Q1A)
Content-type: text/html; charset="US-ASCII"
Content-transfer-encoding: quoted-printable
<HTML>
<HEAD>
<TITLE>Re: [GRASS5] [bug #3277] (grass) d.vect.thematic fails with DOUBLE</=
TITLE>
</HEAD>
<BODY>
<FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STYLE=3D'font-size:12.0px'>I cou=
ld add the regex line markers, but have no idea how I can test this in the s=
ituation Maciek reports. How do you get a <double precision double precis=
ion> column??? Maybe someone else could add these and test it for me???<B=
R>
<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=3D"http://www.public.asu.edu/~cmbarton">http://www.public.asu.ed=
u/~cmbarton</a><BR>
<BR>
<BR>
<HR ALIGN=3DCENTER SIZE=3D"3" WIDTH=3D"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@a=
su.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=3Dgminy_zw_2003_prc_dem@admin type=3Dcentroid <BR>
> column=3DPROD 'themetype=3Dgraduated points' themecalc=3Dinterval layer=3D1
<B=
R>
> icon=3Dbasic/circle size=3D5 maxsize=3D20 nint=3D4 colorscheme=3Dblue-red
<BR>
> singlecolor=3D0:250:0 startcolor=3D250:0:0 endcolor=3D0:0:250 monitor=3Dx2
-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=3D"`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>
--Boundary_(ID_li3WHarMWw9eRw7m4K+Q1A)--
|
|
Wed, Jun 1 2005
02:23:48
|
|
Mail sent by hamish_nospam@yahoo.com
|
|
Return-Path |
<hamish_nospam@yahoo.com>
|
Delivered-To |
grass-bugs@lists.intevation.de
|
Date |
Wed, 1 Jun 2005 12:23:29 +1200
|
From |
Hamish <hamish_nospam@yahoo.com>
|
To |
Michael Barton <michael.barton@asu.edu>
|
Cc |
grass-bugs@intevation.de, grass5@grass.itc.it
|
Subject |
Re: [GRASS5] [bug #3277] (grass) d.vect.thematic fails with DOUBLE
|
Message-Id |
<20050601122329.51ede778.hamish_nospam@yahoo.com>
|
In-Reply-To |
<BEC20A67.12AF1%michael.barton@asu.edu>
|
References |
<20050531120806.14da7ab6.hamish_nospam@yahoo.com> <BEC20A67.12AF1%michael.barton@asu.edu>
|
X-Mailer |
Sylpheed version 1.0.4 (GTK+ 1.2.10; i386-pc-linux-gnu)
|
X-Face |
M<EoB)"*Z~u!,vFhXmw}R_KbdBta*P_=T|rbBL'e1/CQ9;/1g\BU3&!=y8ria$2Uk!HT&BB 8i?|X_+7~1jsy}F~g$2va%3fV`*=L(*cem[@3\yg,G,@rg6/QMJ
|
Mime-Version |
1.0
|
Content-Type |
text/plain; charset=US-ASCII
|
Content-Transfer-Encoding |
7bit
|
X-Spam-Status |
No, hits=-4.0 tagged_above=-999.0 required=3.0 tests=BAYES_00, FORGED_YAHOO_RCVD
|
X-Spam-Level |
|
> > 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???
..
> If you have a column PROD and another column with "PROD" in it, e.g.
> PROD2, the grep step will pick out both.
Hamish
|
|
Wed, Jun 1 2005
09:19:19
|
|
Mail sent by michael.barton@asu.edu
|
|
Return-Path |
<Michael.Barton@asu.edu>
|
Delivered-To |
grass-bugs@lists.intevation.de
|
Date |
Wed, 01 Jun 2005 00:18:50 -0700
|
From |
Michael Barton <michael.barton@asu.edu>
|
Subject |
Re: [GRASS5] [bug #3277] (grass) d.vect.thematic fails with DOUBLE
|
In-reply-to |
<20050601122329.51ede778.hamish_nospam@yahoo.com>
|
To |
Hamish <hamish_nospam@yahoo.com>
|
Cc |
Paolo Cavallini via RT <grass-bugs@intevation.de>, grass5@grass.itc.it
|
Message-id |
<BEC2AF6A.B8EE%michael.barton@asu.edu>
|
MIME-version |
1.0
|
Content-type |
text/plain; charset=US-ASCII
|
Content-transfer-encoding |
7bit
|
User-Agent |
Microsoft-Entourage/11.1.0.040913
|
X-Spam-Status |
No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
|
X-Spam-Level |
|
I get it. The second column (PROD2) has the sequence of characters "PROD" in
it.
Thanks
Michael
On 5/31/05 5:23 PM, "Hamish" <hamish_nospam@yahoo.com> wrote:
>>> 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???
> ..
>> If you have a column PROD and another column with "PROD" in it, e.g.
>> PROD2, the grep step will pick out both.
>
>
>
> Hamish
____________________
C. Michael Barton, Professor of Anthropology
School of Human Evolution and Social Change
PO Box 872402
Arizona State University
Tempe, AZ 85287-2402
USA
Phone: 480-965-6262
Fax: 480-965-7671
www: <www.public.asu.edu/~cmbarton>
|
|
Mon, Jun 6 2005
13:08:42
|
|
Status changed to resolved by msieczka
|
|