3liz / qgis-atlasprint

Export PDF using composer atlas feature, usable in server
13 stars 13 forks source link

Cache issue ? #35

Open nboisteault opened 4 years ago

nboisteault commented 4 years ago

With version just before 3.0, I have the print that uses two different features randomly for its display. Go here an refresh multiple times : https://plantations.parc-marais-poitevin.fr/index.php/lizmap/service/?repository=entreprise&project=Plantation_entreprise_v2&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetPrintAtlas&FORMAT=pdf&EXCEPTIONS=application/vnd.ogc.se_inimage&TRANSPARENT=true&DPI=100&TEMPLATE=impression_chantier_atlas&LAYER=atlas_projet_plantation_&EXP_FILTER=$id%20IN%20(88)

Correct title is 'BICHON Jean' but sometimes 'Commune de DAMVIX Emmanuel COTET 2019 / 2020' is displayed.

rldhont commented 4 years ago

Can you provide enough precision:

rldhont commented 4 years ago

What is the atlas_projetplantation layer provider ? What is the primary key field of this layer ?

nboisteault commented 4 years ago

I fixed this issue by removing the first column of my layer which was an ID generated with row_number in SQL. I was not using this column but it seems it was conflicting.

Gustry commented 4 years ago

Did you want to close this ticket?

rldhont commented 4 years ago

We needs to check QGIS Server and QGIS feature id to know if we can extend the support field type in the replacement of $id by the field name.

nboisteault commented 4 years ago

I closed because I found a way to handle the issue but it remains a bug.

Gustry commented 3 years ago

Linked to https://github.com/3liz/lizmap-web-client/issues/2253 and https://github.com/3liz/qgis-atlasprint/issues/44 which is now closed ?