Hi Marco
Thanks for the notification. Seems there are some api changes which have
been forgotten on the wiki page. I'm going to update the page, but it
could take a bit longer because I'm travelling the next two weeks.
and of course rasterShader() is not there anymore
In master branch, use QgsRasterRenderer::rasterRenderer() to get/set how
a raster is displayed.
Regards,
Marco
On 08.09.2012 09:14, Marco Bernasocchi wrote:
Hi Marco, all,
today working on a python plugin using QGIS master I got
AttributeError : 'QgsRasterLayer' object has no attribute 'rasterShader'
and I tought bizarre it works on lisboa, then I thoug ahhhh raster
redesign and Api breakages.
So I went to [0] to see what changed, but nothing was mentioned. the I
looked in the api doc and of course rasterShader() is not there anymore.
So I went to the qgsRasterLayer.sip file and git log it to see when all
disappeared. now I put a small comment in the api breakage page about
the commit that removes some methods.
I'm I missing something? is this not what we define an API change? if it
is It would be nice to have commit [1] (and maybe others part of raster
redesign) documented and maybe with examples for alternatives.
ciao
Marco
[0]
http://hub.qgis.org/projects/quantum-gis/wiki/API_changes_for_version_20/
[1]
https://github.com/qgis/Quantum-GIS/commit/01cb95392f7c64e1c9caef930bce05b6de71b71b
--
Dr. Marco Hugentobler
Sourcepole - Linux & Open Source Solutions
Churerstrasse 22, CH-8808 Pfäffikon SZ, Switzerland
[email protected] http://www.sourcepole.ch
Technical Advisor QGIS Project Steering Committee
_______________________________________________
Qgis-developer mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-developer