Fri, Nov 30 2001
00:10:52
|
|
Request created by guest
|
|
Subject: 2 bugs in GIS lib: reclass maps
grass downloaded at: CVS Server, Germany
Hi again,
I have found two bugs in the GIS library: The reclass-test function is
not working properly when a raster and and vector map with identical
name exist (which is usually no problem). And you can't delete the base
map of a reclass map, if you first delete the reclass map (was reported in
RT as well). Please have a look at the situation:
My maps are:
g.list rast
----------------------------------------------
raster files available in mapset user1:
muell
-> which is a common map (has been base to another, already deleted, reclass
map).
r.info muell
| Title: clump of vegcover in PERMANENT ( vegcover.clump )
|----------------------------------------------------------------
|
| Type of Map: raster Number of Categories: 3230
| Data Type: CELL
And there is:
g.list vect
----------------------------------------------
vector files available in mapset user1:
muell
Now it happens:
g.remove vect=muell
[muell@user1] is a base map. Remove reclassed map first:
vegcover.1000@user1
Oops: I used "vect="!
strace g.remove vect=muell
[...]
close(3) = 0
munmap(0x40017000, 4096) = 0
brk(0x8087000) = 0x8087000
open("/home/neteler/grassdata/spearfish/user1/cell_misc/muell/reclassed_to",
O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=20, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0
[...]
huh - this looks really nasty.
And, to make it complete:
g.remove rast=muell
[muell@user1] is a base map. Remove reclassed map first:
vegcover.1000@user1
Also not working as vegcover.1000@user1 is already deleted (see above).
Reason is the left-over cell_misc/muell/reclassed_to which wasn't cleaned
up when I deleted vegcover.1000@user1 (here the entry must be deleted, not the
file I guess as a map may be base for several reclass files).
So far my report. Again looking for a volunteer here (too complex for me).
BTW: I have resolved the reported g.mremove/mapset problem. It is updated
in CVS.
Best regards
Markus
|
|
Fri, Nov 30 2001
00:14:01
|
|
Priority changed to 70 by mneteler
|
|
Fri, Nov 30 2001
06:10:51
|
|
Mail sent by glynn.clements@virgin.net
|
|
Return-Path |
<glynn.clements@virgin.net>
|
Delivered-To |
grass-bugs@lists.intevation.de
|
From |
Glynn Clements <glynn.clements@virgin.net>
|
MIME-Version |
1.0
|
Content-Type |
text/plain; charset=us-ascii
|
Content-Transfer-Encoding |
7bit
|
Message-ID |
<15367.5147.701299.950949@cerise.nosuchdomain.co.uk>
|
Date |
Fri, 30 Nov 2001 05:07:39 +0000
|
To |
Request Tracker <grass-bugs@intevation.de>
|
Cc |
grass5@grass.itc.it
|
Subject |
Re: [GRASS5] [bug #863] (grass) 2 bugs in GIS lib: reclass maps
|
In-Reply-To |
<20011129231052.DFFC413A14@lists.intevation.de>
|
References |
<20011129231052.DFFC413A14@lists.intevation.de>
|
X-Mailer |
VM 6.94 under 21.4 (patch 4) "Artificial Intelligence (candidate #1)" XEmacs Lucid |
Request Tracker wrote:
> I have found two bugs in the GIS library: The reclass-test function is
> not working properly when a raster and and vector map with identical
> name exist (which is usually no problem).
Can you elaborate?
> And you can't delete the base
> map of a reclass map, if you first delete the reclass map
This is discussed in the thread for [bug #837].
--
Glynn Clements <glynn.clements@virgin.net>
|
|
Tue, Jan 8 2002
14:18:12
|
|
Status changed to resolved by mneteler
|
|