[Qgis-developer] SIP Bindings in QGis 1.8 for QgsVectorLayer.diagramRenderer()
Angus Carr
angus.carr at gmail.com
Tue Jan 29 20:16:18 PST 2013
Hi, all.
I am trying to use the diagramRenderer() member function of the
QgsVectorLayer. In the current Master, the following works in the Console:
qgis.utils.iface.activeLayer().diagramRenderer()
It returns an object.
>From Version 1.8.0, however, it doesn't. It returns an error about there
being no such member:
>>> l = qgis.utils.iface.activeLayer().diagramRenderer()
Traceback (most recent call last):
File "<input>", line 1, in <module>
AttributeError: 'QgsVectorLayer' object has no attribute 'diagramRenderer'
I tracked the problem down to qgis-1.8.0\python\core\qgsvectorlayer.sip
I can update the SIP files to add the parts needed- I think it is a 4 line
fix. I can just trim them from the 1.9 source. Is there anything else I
need to do?
I would love to have a release made with this tiny update. I want to roll
things out to several users who are required to install "stable" software
only.
I am just trying to create a standardized pie diagram overlay in code,
rather that asking the user to create a pie diagram on the correct
properties tab.
The properties I want to use are in the API docs, which is why I thought I
could use them. And then I developed my plugin code in the 1.9 series, and
it worked wonderfully. But it doesn't work on the client's machine.
Thanks,
Angus Carr.
ps. After using QGis for the last 6 years, I am finally needing something
it doesn't do, so I am adding it. Thanks for the platform to stand on.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20130129/91baf2b7/attachment.html>
More information about the Qgis-developer
mailing list