Opened 18 years ago
Last modified 13 years ago
#47 new enhancement
raster legend in map composer
Reported by: | 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 , 18 years ago
Owner: | changed from | to
---|
comment:2 by , 18 years ago
Version: | → HEAD |
---|
comment:3 by , 18 years ago
Milestone: | → Version 0.9 Release |
---|
comment:4 by , 17 years ago
Awaiting user input: | unset |
---|---|
Must Fix for Release: | → No |
comment:5 by , 17 years ago
comment:6 by , 16 years ago
Milestone: | Version 1.0.0 → Feature Requests |
---|
comment:7 by , 16 years ago
Milestone: | Feature Requests → Version 1.0.0 |
---|---|
Owner: | changed from | to
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 , 16 years ago
Component: | Printing → Rasters |
---|
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 , 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 , 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 , 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 , 15 years ago
Milestone: | Version 1.0.3 → Version 1.2.0 |
---|
comment:13 by , 14 years ago
Milestone: | Version 1.5.0 → Version 1.6.0 |
---|
comment:14 by , 13 years ago
Owner: | changed from | to
---|
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.