[Qgis-developer] qgsAtlasComposition
Stott James
fmrojst at fylkesmannen.no
Wed Apr 10 23:37:40 PDT 2013
Hi all,
I am trying to use the atlas functionality in a standalone python script. I am using the qgsAtlasComposition class. I get an error running this line:
myAtlas.beginRender()
I get an unknown exception.
I have also found that running myAtlas.numFeatures() always returns 0 even though I have added a layer that has data using setCoverageLayer().
I did take a look at this page and followed the steps in the test:
https://github.com/qgis/Quantum-GIS/blob/master/tests/src/python/test_qgsatlascomposition.py
but I cannot get it to work in my script. I cannot get the test to work either. It always errors on the beginRender() line.
James
More information about the Qgis-developer
mailing list