[gdal-dev] Adding labels

Benoît Laurent blaurent at heurisis.eu
Mon May 13 06:34:05 PDT 2013


Hello,

In a previous post, I was trying to automatically add labels to a vector 
layer, the text of each label being contained in one field of the layer.

I was proposed different solutions. I eventually chose to write a Python 
script that I run with the script runner from Gary Sherman : 
http://spatialgalaxy.net/2012/01/29/script-runner-a-plugin-to-run-python-scripts-in-qgis/. 
I can load all my shapefiles properly.

However, I am struggling with the labelling process. I had a try relying 
on an old post : 
http://svn.osgeo.org/qgis/trunk/code_examples/3_basic_labelling/tutorial3.t2t. 
For the moment, I was unsuccessfull. Furthermore, it seems that there is 
a new labelling engine...

Is there a sample of use somewhere ? Any help would be appreciated.

Benoît


More information about the gdal-dev mailing list