I try to follow Programmatically load composer from template and generate atlas using pyQgis to automate atlas print composer using pyqgis :
specific in atlas code say :
myAtlasMap = myComposition.getComposerMapById(0) myAtlas = QgsAtlasComposition(myComposition) myAtlas.setCoverageLayer(atlas_desktop) myAtlas.setComposerMap(myAtlasMap) myAtlas.setFixedScale(True) myAtlas.fixedScale() myAtlas.setHideCoverage(False) myAtlas.setFilterFeatures(True)
this code work for my task and i take new 100 atlas feutures maps but in my
template.qpt i have some labels with code like this :
QGIS [%concat( "OBJECTID" )%]
OBJECTID is the same for all new 100 atlas feutures maps.
Any idea why? If I use manual atlas export, then for any map
I have more details the true Does not work anything related to layer atlas in my
template.qpt i have some base styles rules or base labels rules like this :
intersects($atlasgeometry, $geometry )
$id = $atlasfeatureid
that is the some in 100 maps :
i think so that Programmatically load composer from template and generate atlas using pyQgis just export one by one my features from my atlas layer and the atlas in my template stay False.
any idea ?