On Feb 9, 2008 3:17 AM, Tim Sutton <[EMAIL PROTECTED]> wrote:
> Hi
>
> You should be able to do something like this (untested estimate based
> on C++ api and sip definition file):
>
> myLayer.setLabelOn(true);
> QgsLabel myLabel = myLayer.label(),
> myLabel.setLabelField( QgsLabel.Angle,  fieldIndex);

Yes, this code should work, it's trivial to convert it to pythonic syntax.

For an example of using labeling, take a look at tutorial 3:
http://blog.qgis.org/?q=node/59

Martin
_______________________________________________
Qgis-user mailing list
[email protected]
http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user

Reply via email to