Fri, Jul 26 2002
14:07:12
|
|
Request created by guest
|
|
Subject: quering r.cross result crashes
Platform: GNU/Linux/i386
grass obtained from: Trento Italy site
grass binary for platform: Compiled from Sources
GRASS Version: grass50_exp_2002_07_12 CVS Snapshot [HEAD]
Hi,
I converted 2 maps (covering exactly the same area) from vector into raster format.
Due to projection (Gauss-Krueger) there are small "No Data" areas around the
converted raster maps then -> I can query them - no problem.
When I use r.cross, these "No Data" areas in the resulting map
cause "segmentation fault" when I try to query the result map with d.what.rast
or r.stats ...
When I zoom in (exclude these "No Data" areas from query) everything is fine.
regards
Otto Dassau |
|
Fri, Jul 26 2002
16:16:32
|
|
Comments added by guest
|
|
Hi,
I solved the problem using
r.null map=crosstest setnull=0
But I do not understand why. The problem areas were already NULL in both
initial maps, so why not in the result map after using r.cross?
thanks
Otto |
|
Fri, Jul 26 2002
16:34:48
|
|
Mail sent by otto.dassau@gmx.de
|
|
Return-Path |
<otto.dassau@gmx.de>
|
Delivered-To |
grass-bugs@lists.intevation.de
|
Sender |
dassau@intevation.de
|
Message-ID |
<3D415E17.760EA647@gmx.de>
|
Date |
Fri, 26 Jul 2002 16:35:03 +0200
|
From |
Otto Dassau <otto.dassau@gmx.de>
|
X-Mailer |
Mozilla 4.77 [de] (X11; U; Linux 2.4.4-4GB i686)
|
X-Accept-Language |
en
|
MIME-Version |
1.0
|
To |
Request Tracker <grass-bugs@intevation.de>
|
Subject |
Re: [GRASS5] [bug #1210] (grass) quering r.cross result crashes
|
References |
<20020726120712.4C15B139C6@lists.intevation.de>
|
Content-Type |
text/plain; charset=us-ascii
|
Content-Transfer-Encoding |
7bit
|
X-Spam-Status |
No, hits=-0.4 required=5.0 tests=SUPERLONG_LINE version=2.20
|
X-Spam-Level |
|
Request Tracker wrote:
>
> this bug's URL: http://intevation.de/rt/webrt?serial_num=1210
> -------------------------------------------------------------------------
>
> Subject: quering r.cross result crashes
>
> Platform: GNU/Linux/i386
> grass obtained from: Trento Italy site
> grass binary for platform: Compiled from Sources
>
> GRASS Version: grass50_exp_2002_07_12 CVS Snapshot [HEAD]
>
> Hi,
>
> I converted 2 maps (covering exactly the same area) from vector into raster
format. Due to projection (Gauss-Krueger) there are small "No Data" areas around
the converted raster maps then -> I can query them - no problem.
>
> When I use r.cross, these "No Data" areas in the resulting map
> cause "segmentation fault" when I try to query the result map with d.what.rast
or r.stats ...
> When I zoom in (exclude these "No Data" areas from query) everything is fine.
>
> regards
>
> Otto Dassau
Hi,
I solved the problem using
r.null map=crosstest setnull=0
But I do not understand why. The problem areas were already NULL in both
initial maps, so why not in the result map after using r.cross?
thanks
Otto Dassau
|
|
Fri, Jul 26 2002
20:22:37
|
|
Mail sent by otto.dassau@gmx.de
|
|
Return-Path |
<otto.dassau@gmx.de>
|
Delivered-To |
grass-bugs@lists.intevation.de
|
Sender |
dassau@intevation.de
|
Message-ID |
<3D41937E.D6305280@gmx.de>
|
Date |
Fri, 26 Jul 2002 20:22:54 +0200
|
From |
Otto Dassau <otto.dassau@gmx.de>
|
X-Mailer |
Mozilla 4.77 [de] (X11; U; Linux 2.4.4-4GB i686)
|
X-Accept-Language |
en
|
MIME-Version |
1.0
|
To |
grass-bugs@intevation.de
|
Subject |
[GRASS5] [bug #1210] (grass) quering r.cross result crashes
|
Content-Type |
text/plain; charset=us-ascii
|
Content-Transfer-Encoding |
7bit
|
X-Spam-Status |
No, hits=0.0 required=5.0 tests= version=2.20
|
X-Spam-Level |
|
Hi,
I solved my problem partly using
r.null map=crosstest setnull=0
but I do not understand why this works. The problem areas were already
NULL <no data>
in both initial maps, so why not in the result map after using r.cross?
maybe someone has an idea
Otto
PS: Sorry, I mixed up some things before I found out how to reply to my
own messages
in the bug report system - hope it works now.
|
|
Sat, Jul 27 2002
09:45:20
|
|
Request created by guest (as #1214)
|
|
Subject: r.stats problem with cross map
Platform: GNU/Linux/i386
grass obtained from: Trento Italy site
grass binary for platform: Compiled from Sources
GRASS Version: grass50_exp_2002_07_12 CVS Snapshot [HEAD]
Hi,
When I use r.stats to query category labels from a raster map
created with r.cross, the lables are not extracted correctly.
"no data" lables are treated as "no" and "data" - so the second
label is missing
r.stats -1l crosstest | more
* no data
* no data
* no data
* no data
8 Us; Us
8 Us; Us
8 Us; Us
8 Us; Us
8 Us; Us
Would it be possible to change this easily? I guess it would be a general
problem with "2 word" lables.
thanks
Otto Dassau |
|
Sat, Jul 27 2002
09:58:54
|
|
Comments added by guest
|
|
Otto Dassau wrote:
> I solved my problem partly using
>
> r.null map=crosstest setnull=0
>
> but I do not understand why this works. The problem areas were already
> NULL <no data> in both initial maps, so why not in the result map after
> using r.cross?
r.cross hasn't been updated to understand null values yet.
The actual data is read using G_get_map_row(), which automatically
converts nulls to zeroes. However, the category information will refer
to null rather than zero (or maybe both null and zero).
--
Glynn Clements |
|
Tue, Nov 8 2005
08:47:10
|
|
User changed to dassau@gdf-hannover.de by mneteler (as #1214)
|
|
Tue, Nov 8 2005
08:47:51
|
|
Mail sent by mneteler (as #1214)
|
|
Hi Otto,
does this problem persist? Today Brad fixed a segfault in
r.stats (which also crashed r.average etc).
Markus |
|
Tue, Nov 8 2005
08:48:55
|
|
Request 1214 merged into 1210 by mneteler (as #1214)
|
|
Tue, Nov 8 2005
08:49:42
|
|
Comments added by mneteler
|
|
Aha, it seems to be unchanged:
thuille:r.cross[3852.128] grep G_get_map_row *
cross.c: if (G_get_map_row (fd[primary], cell[0], row) < 0)
cross.c: if (i != primary && G_get_map_row (fd[i], cell[col++],
row) < 0)
renumber.c: if (G_get_map_row (in, c = cell, row) < 0)
Markus |
|
Tue, Nov 8 2005
08:50:01
|
|
Area changed to grass6 by mneteler
|
|
Tue, Nov 8 2005
10:06:07
|
|
Mail sent by guest
|
|
> Hi Otto,
>
> does this problem persist? Today Brad fixed a segfault in
> r.stats (which also crashed r.average etc).
>
> Markus
>
> -------------------------------------------- Managed by Request Tracker
Hi,
tested it again after the last bugfix and all is fine now!
r.cross in=fields,geology out=muell2
1) d.what.rast muell2
599654.15625(E) 4920601.59375(N)
muell2 in PERMANENT (3)no data; sandstone
2) r.stats -l muell2
10 C. Smith#1; shale
11 C. Smith#2; no data
12 C. Smith#2; shale
13 C. Smith#2; sand
14 P. Biggam#1; sand
15 P. Biggam#2; no data
16 P. Biggam#2; sandstone
thanks a lot
otto |
|
Tue, Nov 8 2005
11:58:16
|
|
Status changed to resolved by mneteler
|
|