[GRASS-dev] [GRASS GIS] #2382: d.legend: integer map legends should not be flipped upside-down
GRASS GIS
trac at osgeo.org
Tue Jul 29 05:47:28 PDT 2014
#2382: d.legend: integer map legends should not be flipped upside-down
-------------------------+--------------------------------------------------
Reporter: neteler | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Display | Version: svn-releasebranch70
Keywords: d.legend | Platform: All
Cpu: Unspecified |
-------------------------+--------------------------------------------------
Legend of integer (CELL) maps are shown upside-down with the
lowest value on top. This enforces the user to always activate
the -f flag:
{{{
# NC location
g.region rast=basin_50K
d.mon wx0
d.rast basin_50K
d.legend basin_50K
# other example
d.legend basin_50K
r.mapcalc "elev_int = round(elevation)"
r.colors elev_int color=srtm
d.erase
d.rast elev_int
d.legend elev_int -s
## --> upside-down, see screenshot
}}}
Expected: the legend should be with the lowest value down and the
highest up as it is for floating point maps.
Maybe trivial to fix but I am not sure where to add a "flipit" in the
main.c
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2382>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list