Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

raster legend in map composer #10106

Closed
qgib opened this issue Apr 3, 2006 · 9 comments
Closed

raster legend in map composer #10106

qgib opened this issue Apr 3, 2006 · 9 comments
Labels
Feature Request Rasters Related to general raster layer handling (not specific data formats)
Milestone

Comments

@qgib
Copy link
Contributor

qgib commented Apr 3, 2006

Author Name: Redmine Admin (Redmine Admin)
Original Redmine Issue: 47

Redmine category:rasters
Assignee: Marco Hugentobler


The map composer misses a raster legend.

@qgib
Copy link
Contributor Author

qgib commented Nov 22, 2007

Author Name: leo-lami - (leo-lami -)


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.

@qgib
Copy link
Contributor Author

qgib commented Jul 14, 2008

Author Name: Tim Sutton (Tim Sutton)


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.

@qgib
Copy link
Contributor Author

qgib commented Aug 25, 2008

Author Name: Marco Hugentobler (@mhugent)


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.

@qgib
Copy link
Contributor Author

qgib commented Sep 5, 2008

Author Name: ersts - (ersts -)


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))
}
}

@qgib
Copy link
Contributor Author

qgib commented Sep 5, 2008

Author Name: Paolo Cavallini (@pcav)


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

@qgib
Copy link
Contributor Author

qgib commented Oct 2, 2008

Author Name: aprasad - (aprasad -)


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.

@qgib
Copy link
Contributor Author

qgib commented Jun 25, 2011

Author Name: Paolo Cavallini (@pcav)


Thanks Marco


  • resolution was configured as fixed

@qgib
Copy link
Contributor Author

qgib commented Jun 25, 2011

Author Name: Paolo Cavallini (@pcav)


  • status_id was changed from Open to Resolved

@qgib
Copy link
Contributor Author

qgib commented Sep 30, 2011

Author Name: Anita Graser (@anitagraser)


  • pull_request_patch_supplied was configured as 0
  • status_id was changed from Resolved to Closed

@qgib qgib added Feature Request Rasters Related to general raster layer handling (not specific data formats) labels May 24, 2019
@qgib qgib added this to the Version 1.7.0 milestone May 24, 2019
@qgib qgib closed this as completed May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request Rasters Related to general raster layer handling (not specific data formats)
Projects
None yet
Development

No branches or pull requests

1 participant