Opened 14 years ago
Closed 14 years ago
#2876 closed bug (fixed)
bring back raster legend icons
Reported by: | lutra | Owned by: | mhugent |
---|---|---|---|
Priority: | major: does not work as expected | Milestone: | Version 1.6.0 |
Component: | Map Legend | Version: | Trunk |
Keywords: | Cc: | ||
Must Fix for Release: | Yes | Platform: | All |
Platform Version: | Awaiting user input: | no |
Description
Icons have been disabled in r13899 because of performance problems while opening projects with many rasters.
Icons are nevertheless very useful.
Change History (5)
comment:1 by , 14 years ago
Must Fix for Release: | No → Yes |
---|---|
Version: | → Trunk |
follow-up: 3 comment:2 by , 14 years ago
comment:3 by , 14 years ago
Why should QGIS draw an icon that represent a, for example, 5000x5000 pixel raster in a space of 16x16?
because when you do raster analisys your rasters (not normal orthophotomaps or militar maps) normally have very different colormaps and with icons they are EASILY identified in the legend.
comment:4 by , 14 years ago
Here's my notes, for the record:
It seems to only affects rasters without overviews. I did a test with a single 1 GiB JP2 and it generates the legend icon nearly instantaneously. A 1.3 GiB tiff without overviews takes a long time, yet the same with overviews is fast. A 200MiB tiff without overviews has a noticable delay, but it's not horrible.
Though the original issue is a small 14MiB vrt with jp2 images, zooming and panning are not affected. Maybe there's something else with a vrt that slows down the legend generation?
comment:5 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Ok, there is now an option to disable raster icons in case of performance problems (btw., those icons are 32x32 )
For me icons for raster image are not too useful.
Why should QGIS draw an icon that represent a, for example, 5000x5000 pixel raster in a space of 16x16?
QGIS should use a simple icons for all rasters...