Opened 18 years ago

Last modified 13 years ago

#47 new enhancement

raster legend in map composer

Reported by: cavallini@… Owned by: mhugent
Priority: major: does not work as expected Milestone: Version 1.7.0
Component: Rasters Version: Trunk
Keywords: printing raster legend Cc:
Must Fix for Release: No Platform: All
Platform Version: Awaiting user input: no

Description

The map composer misses a raster legend.

Change History (14)

comment:1 by rblazek, 18 years ago

Owner: changed from gsherman to rblazek

comment:2 by anonymous, 18 years ago

Version: HEAD

comment:3 by anonymous, 18 years ago

Milestone: Version 0.9 Release

comment:4 by anonymous, 17 years ago

Awaiting user input: unset
Must Fix for Release: No

comment:5 by leo.lami, 16 years ago

We need a continuos (rx. for dtm raster) or category value legend (best if it is possible choise it) about all the raster load in the map canvas, Ask me if you need same other information.

comment:6 by timlinux, 16 years ago

Milestone: Version 1.0.0Feature Requests

comment:7 by timlinux, 16 years ago

Milestone: Feature RequestsVersion 1.0.0
Owner: changed from rblazek to timlinux

On second thoughts this is probably handled using the enhancement type and not a fake milestone. Returning to 1.0.1 milestone, please ignore last milestone change. Also changed assigned to tim since Radim is no longer active in QGIS.

comment:8 by mhugent, 16 years ago

Component: PrintingRasters

I think that this is now more a raster problem than a composer problem. The composer now shows the raster icon from the legend. Once the raster layer provides a detailed raster legend (e.g. classification values), composer can also do so.

comment:9 by ersts, 16 years ago

This actually is already possible

For Paletted, Pseudo and Freakout it would looks something like this, get the current shader (only one per raster layer) *myRasterShader = RasterLayer->getRasterShader()

loop through all values you want to show in the legend for(int runner = RasterLayer->getMinimumValue(band a); runner <= RasterLayer->getMaximumValue(band a); runner++) {

if(myRasterShader->generateShadedValue((double)runner, &red, &green, &blue) {

set the color of your object color_my_legend_item(new QColor(red, green, blue))

}

}

comment:10 by pcav, 16 years ago

Then would it be fasible adding it as a last minute 1.0 feature? It would be great to have it

comment:11 by aprasad, 16 years ago

Please implement raster legend display (so that you can define custom breaks of cell values and view them in the colors you want - like is available in ArcView 3.x) - I feel qGIS will not impresss new users if it does not have this basic functionality in place.

comment:12 by lutra, 15 years ago

Milestone: Version 1.0.3Version 1.2.0

comment:13 by pcav, 14 years ago

Milestone: Version 1.5.0Version 1.6.0

comment:14 by jef, 13 years ago

Owner: changed from timlinux to mhugent
Note: See TracTickets for help on using tickets.