Details Ticket 2511


Comment | Reply | Take | Open


Serial Number 2511
Subject display driver converts colr2 colormaps to CELL only
Area bug
Queue grass
Requestors hamish_nospam@yahoo.com
Owner none
Status resolved
Last User Contact Mon Jun 28 18:50:23 2004 (4 yr ago)
Current Priority 30
Final Priority 70
Due No date assigned
Last Action Tue Aug 31 01:54:50 2004 (4 yr ago)
Created Mon Jun 28 07:17:07 2004 (4 yr ago)

Transaction History Ticket 2511


Mon, Jun 28 2004 07:17:07    Request created by guest  
Subject: display driver converts colr2 colormaps to CELL only

Platform: GNU/Linux/i386
grass obtained from: Trento Italy site
grass binary for platform: Compiled from Sources
GRASS Version: 5.7.0beta5

Hi,

after setting a color map for a raster@another_mapset with r.colors, a new colormap
file is placed in $current_MAPSET/colr2/$another_mapset/$rastername. That lets
you change the colors for a map in a mapset you don't own.
That seems to work correctly & write a good colr file.

When you go to display the raster though, the raster displays as if it had been
converted into a CELL map, ie for a DCELL map ranging from 0.3 to 5.8 you get
5-6 filled contour levels instead of a smooth transition. 

I guess the problem is somewhere in the display lib?

happens in both 5.3 & 5.7


This isn't specifically caused by the (still unfixed?) r.colors rounding problem
at the max/min value (causing areas of min/max value rounded the wrong way to
display white [or whatever color nv was set to]); but it may make that more noticeable
for a DCELL map with a max-min range of say <32.0.

Actually, after playing around with it, I think the conversion to CELL by the
display driver bug probably accounts for what I was thinking was rounding error
by r.colors. Perhaps not totally though.


?

cheers,
Hamish
Mon, Jun 28 2004 18:50:23    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 <16608.19437.628176.125855@cerise.nosuchdomain.co.uk>
Date Mon, 28 Jun 2004 17:48:45 +0100
To Request Tracker <grass-bugs@intevation.de>
Cc grass5@grass.itc.it
Subject Re: [GRASS5] [bug #2511] (grass) display driver converts colr2 colormaps to CELL only
In-Reply-To <20040628051707.C5E13139E1@lists.intevation.de>
References <20040628051707.C5E13139E1@lists.intevation.de>
X-Mailer VM 7.07 under 21.4 (patch 15) "Security Through Obscurity" XEmacs Lucid
X-Spam-Status No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
X-Spam-Level
Request Tracker wrote:

> this bug's URL: http://intevation.de/rt/webrt?serial_num=2511

> Subject: display driver converts colr2 colormaps to CELL only

> after setting a color map for a raster@another_mapset with r.colors, a
> new colormap file is placed in
> $current_MAPSET/colr2/$another_mapset/$rastername. That lets you
> change the colors for a map in a mapset you don't own.
> 
> That seems to work correctly & write a good colr file.
> 
> When you go to display the raster though, the raster displays as if it
> had been converted into a CELL map, ie for a DCELL map ranging from
> 0.3 to 5.8 you get 5-6 filled contour levels instead of a smooth
> transition.
> 
> I guess the problem is somewhere in the display lib?

No; it's in G_read_colors(). The colour table is marked as FP after
the colr2 case has been dealt with.

Fixed in CVS.

-- 
Glynn Clements <glynn.clements@virgin.net>


Tue, Aug 31 2004 01:54:50    Status changed to resolved by hbowman  
Comment | Reply | Take | Open

You are currently authenticated as guest.
[Show Configuration] [Login as another user]

Users Guide - Mail Commands - Homepage of RequestTracker 1.0.7 - list any request