[GRASS-dev] [GRASS GIS] #2382: d.legend: integer map legends should not be flipped upside-down

GRASS GIS trac at osgeo.org
Wed Jul 30 09:37:18 PDT 2014


#2382: d.legend: integer map legends should not be flipped upside-down
-------------------------+--------------------------------------------------
 Reporter:  neteler      |       Owner:  hamish             
     Type:  defect       |      Status:  assigned           
 Priority:  normal       |   Milestone:  7.0.0              
Component:  Display      |     Version:  svn-releasebranch70
 Keywords:  d.legend     |    Platform:  All                
      Cpu:  Unspecified  |  
-------------------------+--------------------------------------------------

Comment(by annakrat):

 Replying to [comment:1 hamish]:

 > So it comes down to the question of is the data categorical (in which
 case smallest value is at the top) or continuous gradient which happens to
 be stored as integers (in which case smallest values is at the bottom).
 Since CELL maps can be used for both there is no single correct answer to
 that, and so the module goes with the logic that if the range of available
 cats or the frame size happens to change by a little bit, pushing it over
 the threshold, it will change the boxes into thin lines, but the overall
 view will remain the same, it has just gone into "compressed mode".
 >

 In my view, the order should be defined by the gradient/box legend, not by
 the type of the map since it is not reliable. Gradient would have low
 values in the bottom, and boxes would be ordered in the opposite
 direction. This behavior could create less confusion and would be expected
 in most cases, in my opinion.

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/2382#comment:4>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list