Bug report #8154
Problems with Atlas and Map dimensions on composer using Python
|Affected QGIS version:||master||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||invalid|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||16981|
Is anyone else having problems with using atlas with python?
I am writing some python code that uses the Atlas functionality in master to create a PDF / jpg for each of my 5000 records.
I can produce a jpg/pdf for each feature, however the composerMap object does not stay the same size.
I found this bug report which describes the issue. This report is listed as fixed:
I have also been made aware of this post about the issue too:
I have set the following two lines in my code:
myAtlas.setFixedScale( False )
If I set this up from within QGIS, it works perfectly. It is only through Python I have problems.
Here are the example exported jpgs:
Generated inside QGIS GUI - from_qgis.zip
Generated from python - from_python.zip
I have also included a stripped down version of my code, along with a sample shapefile (this isn’t the data I am planning to use it with, but it doesn’t work with either the sample or the real data - the real data is in PostGIS).
Using master, updated today from OsGeo4W.
#3 Updated by Giovanni Manghi almost 9 years ago
- Priority changed from High to Normal
- Target version set to Version 2.2
- Status changed from Open to Feedback
- Category changed from 33 to Map Composer/Printing
There is no crash or data corruption, so I'm lowering the priority.
It is still true in the latest master?