Re: gui_modules/colorrules.py bug and wishes (Markus Neteler)

2 messages Options
Embed this post
Permalink
Michael Barton

Re: gui_modules/colorrules.py bug and wishes (Markus Neteler)

Reply Threaded More More options
Print post
Permalink


On Oct 28, 2009, at 2:23 AM, [hidden email] wrote:

> Send grass-dev mailing list submissions to
> [hidden email]
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.osgeo.org/mailman/listinfo/grass-dev
> or, via email, send a message with subject or body 'help' to
> [hidden email]
>
> You can reach the person managing the list at
> [hidden email]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of grass-dev digest..."
>
>
> Today's Topics:
>
>   1. gui_modules/colorrules.py bug and wishes (Markus Neteler)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 28 Oct 2009 10:22:37 +0100
> From: Markus Neteler <[hidden email]>
> Subject: [GRASS-dev] gui_modules/colorrules.py bug and wishes
> To: GRASS developers list <[hidden email]>
> Message-ID:
> <[hidden email]>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi,
>
> trying "volors" (i.e., gui_modules/colorrules.py) I found small bug  
> and
> got a few ideas to improve this promising dialog.
> Please see attached screenshot as I found it easier to indicate the
> ideas there.
>
> Those which aren't easy to fix I'll submit later as tickets.
>
> thanks
> Markus

Hi Markus,

Interesting. The bug you've found is not the one you think you found ;-)

Both menu items "color rules" and "color tables" under vector->manage  
colors are bringing up the same color rules module from wxGUI.  
Instead, "color tables" should be bringing up the interface for the  
new v.colors GRASS module. I suspect it's just a typo in the menu  
string.

The vector color rules module does not do what you are assuming it  
does. That is, it does not automatically spread a color gradient  
between a max and min value. What it does is allow you to custom set  
colors to individual values or ranges of values, and store these  
colors in the GRASSRGB color column. The add column button may not be  
too hard to implement (automatically refreshing the column list may be  
the biggest headache). The other suggestions don't match this module.  
This module was written before v.colors and has different functionality.

The functions you thought were in the color rules wxGUI module are  
actualy in the v.colors GRASS module. The "color tables" menu option  
ought to call this module. It automatically sets max and min, but also  
allows the user to set custom max/min. It then lets you pick a color  
table and automatically assign the color gradients to the vector values.

I'll try to get this fixed when I get to my office today. Hopefully  
it's a simple typo.

Michael
_______________________________________________
grass-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-dev
Michael Barton

Re: gui_modules/colorrules.py bug and wishes (Markus Neteler)

Reply Threaded More More options
Print post
Permalink


On Oct 28, 2009, at 8:17 AM, Michael Barton wrote:

>
>
> On Oct 28, 2009, at 2:23 AM, [hidden email] wrote:
>
>> Send grass-dev mailing list submissions to
>> [hidden email]
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>> http://lists.osgeo.org/mailman/listinfo/grass-dev
>> or, via email, send a message with subject or body 'help' to
>> [hidden email]
>>
>> You can reach the person managing the list at
>> [hidden email]
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of grass-dev digest..."
>>
>>
>> Today's Topics:
>>
>>  1. gui_modules/colorrules.py bug and wishes (Markus Neteler)
>>
>>
>> ----------------------------------------------------------------------
>>
>> Message: 1
>> Date: Wed, 28 Oct 2009 10:22:37 +0100
>> From: Markus Neteler <[hidden email]>
>> Subject: [GRASS-dev] gui_modules/colorrules.py bug and wishes
>> To: GRASS developers list <[hidden email]>
>> Message-ID:
>> <[hidden email]>
>> Content-Type: text/plain; charset="iso-8859-1"
>>
>> Hi,
>>
>> trying "volors" (i.e., gui_modules/colorrules.py) I found small bug
>> and
>> got a few ideas to improve this promising dialog.
>> Please see attached screenshot as I found it easier to indicate the
>> ideas there.
>>
>> Those which aren't easy to fix I'll submit later as tickets.
>>
>> thanks
>> Markus
>
> Hi Markus,
>
> Interesting. The bug you've found is not the one you think you  
> found ;-)
>
> Both menu items "color rules" and "color tables" under vector->manage
> colors are bringing up the same color rules module from wxGUI.
> Instead, "color tables" should be bringing up the interface for the
> new v.colors GRASS module. I suspect it's just a typo in the menu
> string.
>
> The vector color rules module does not do what you are assuming it
> does. That is, it does not automatically spread a color gradient
> between a max and min value. What it does is allow you to custom set
> colors to individual values or ranges of values, and store these
> colors in the GRASSRGB color column. The add column button may not be
> too hard to implement (automatically refreshing the column list may be
> the biggest headache). The other suggestions don't match this module.
> This module was written before v.colors and has different  
> functionality.
>
> The functions you thought were in the color rules wxGUI module are
> actualy in the v.colors GRASS module. The "color tables" menu option
> ought to call this module. It automatically sets max and min, but also
> allows the user to set custom max/min. It then lets you pick a color
> table and automatically assign the color gradients to the vector  
> values.
>
> I'll try to get this fixed when I get to my office today. Hopefully
> it's a simple typo.
>
> Michael

I just tried this at work and the menu items are working correctly  
(finally had sufficient coffee?).

Anyway, "color tables" launches v.colors which allows you to do a  
color gradient from max to min, using any of the known raster color  
tables; "color rules" allows you to manually specify colors for  
specific vector attribute values or value ranges.

Michael

_______________________________________________
grass-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-dev