qgis/QGIS — pull request #959 by luipir (2013-10-17 10:43:51+00:00)
Title: Added getLegendGrafic feature to WmsDataProvider - Developed with funding from Regione Toscana-SITA

Added getLegendGrafic feature to WmsDataProvider

getLegendGrafic has added to the RasterDataProvider base class too to allow visibility of the method. In case Raster is not a WMS it will return invalid QPixmap() (e.g QPixmap().isValid() == false)

This code add this feature and merge this other related commits
- better scale management to avoid call getLegendGraphics everytime
- added some defaults
- added code example to manage LegendURL when it will be correctly parsed

Developed with funding from Regione Toscana-SITA