[Qgis-developer] error for QGIS tutorials in python - adding rasters to canvas

volkan kepoglu vkepoglu at gmail.com
Wed Jan 23 09:44:36 EST 2008


downloaded QGIS tutorials in python, changed qgis_prefix and runned
2_basic_main_window and 3_basic_labelling successfully,
but 4_adding_rasters_to_canvas gives the following error;

vkepoglu at vkepoglu:~/qgis/tutorials/4_adding_rasters_to_canvas$ python
mainwindow.py
Traceback (most recent call last):
  File " mainwindow.py", line 76, in addLayer
    layer.setColorRampingType(QgsRasterLayer.BLUE_GREEN_RED)
AttributeError: setColorRampingType

how can ı fix?
or the most important than to fix this,
how can ı learn to qgis bindings to python.

where should ı look for reference of python bindings

http://wiki.qgis.org/qgiswiki/PythonBindings, is there any other references?

Volkan Kepoglu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20080123/3565065d/attachment.html


More information about the Qgis-developer mailing list