[Qgis-user] Using QGIS/Atlas system-vars?

Elstermann, Mike Mike.Elstermann at itc-halle.de
Thu Sep 29 05:56:26 PDT 2016


Hi Andreas,

THX! My problem is now no problem ;-) See my last mail.

mikeE.

> Am 29.09.2016 um 11:46 schrieb Andreas Neumann <a.neumann at carto.net>:
> 
> Hi Mike,
> 
> And what exactly is your problem?
> 
> @atlas_pagename: did you define an expression for a pagename? If now, it will stay empty as you observed.
> 
> @layout_page: how many pages does your layout contain? If your layout has only 1 page it will always return 1
> 
> @layout_numpages: see above. Depends on how many pages your layout has.
> 
> If you want to get the nth feature, you have to use @atlas_featurenumber, resp. @atlas_totalfeatures. If your layout contains more than one page and you want to have the exact pagenumber, you have to calculate the number, using @atlas_featurenumber, @layout_numpages and @layout_page to get the actual page number.
> 
> Greetings,
> 
> Andreas
> 
> Am 29.09.2016 um 11:01 schrieb Elstermann, Mike:
>> Hi,
>>  
>> I want to use in QGIS/Atlas system-vars. In my textbox I write this:
>> Halle (Saale), [% "name" %]  [% @layout_page %] ... [% @atlas_pagename %] ... [% @layout_numpages %] ... [% @layout_pageheight %] ... [% @layout_pagewidth %]
>>  
>> Results:
>> * [% "name" %] works OK, gives correct names
>> * [% @layout_pageheight %] works OK, gives correct pageheight
>> * [% @layout_pagewidth %] works OK, gives correct pagewidth
>>  
>> * [% @layout_page %] gives only "1"
>> * [% @atlas_pagename %] gives only ""
>> * [% @layout_numpages %] gives only "1"
>>  
>> Where is the/my fault?
>>  
>> THX and best regards, mikeE., The geoObserver
>> 
>> 
>> _______________________________________________
>> Qgis-user mailing list
>> 
>> Qgis-user at lists.osgeo.org
>> 
>> List info: 
>> http://lists.osgeo.org/mailman/listinfo/qgis-user
>> 
>> Unsubscribe: 
>> http://lists.osgeo.org/mailman/listinfo/qgis-user
> 
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user




More information about the Qgis-user mailing list