Re: [Qgis-user] Atlas feature id not synchronised

2021-11-12 Thread Alexandre Neto
Hi, That probably depends on what you have in the atlas sorting options, you can choose any field or expression to sort atlas output, if you really want, you can use $id as an expression in the sort option or your ID field Alexandre Neto User support www.qcooperative.net A sexta, 12/11/2021,

Re: [Qgis-user] Atlas feature id not synchronised

2021-11-12 Thread Dario C
very helpful, thanks any idea why @atlas_featureid start correctly (following layer coverage feature) and then continue using odd numbers? First values for ID field: 4,12, 38, 42, 60, etc First values for @atlas_featureid: 4,12,38, 58, 72, etc.  Il giorno ven 12 nov 2021 alle ore 16:34

Re: [Qgis-user] Atlas feature id not synchronised

2021-11-12 Thread Alexandre Neto
$id is a function that returns the current layer row id. This id is somehow internal to QGIS and not actually a layer field. https://docs.qgis.org/3.16/en/docs/user_manual/working_with_vector/functions_list.html#expression-function-record-and-attributes-id The @atlas_featureid is the equivalent

Re: [Qgis-user] Atlas feature id not synchronised

2021-11-12 Thread Dario C
thank you for your quick response. atlas coverage layer is the building layer Yes, with $id = @atlas_featureid is working well!!! Thank you Can you please explain, if you don't mind, why? I mean, what's @atlas_featureid and why $id = @atlas_featureid solve the problem? Il giorno ven 12 nov

Re: [Qgis-user] Atlas feature id not synchronised

2021-11-12 Thread Alexandre Neto
Hi Dario, If the atlas coverage layer is the buildings layer, then you can use: $id = @atlasfeatureid If not, if you have a common attribute called ID between the building layer and your coverage layer, you can use: "ID" = attributes( @atlas_feature)['ID'] Hope it helps Alexandre Neto User