You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lors de l'extraction de identifiants à utiliser pour l'impression, le xpath cherche un champ hard codé (id).
On trouve le xpath ici : config.properties. Valeur : /FeatureCollection/featureMember/%s/id.
Si le layer qui défini les zones à imprimer de l'atlas (atlasCoverageLayer) utilise une autre clé primaire, ou n'en a pas (par exemple un shapefile aura son FID interne, mais ce n'est pas un champ, il n'est donc pas forcément présenté comme tel dans la réponse du GetFeature).
Erreur dans le log si la couche d'atlasCoverageLayer n'a pas de champ id :
Je pense qu'il faudrait utiliser le gml:id : /FeatureCollection/featureMember/%s/@id, qui est toujours composé ainsi sur QGIS Server : <featureType>.<id> en faisant attention : un feature type peut contenir des points.
yblatti
changed the title
2.1-BETA.1 : QGIS Server print : La clef primaire de selection des features est hard codée.
2.1-BETA.1 : QGIS Server print : La clef primaire de sélection des features est hard codée.
May 14, 2024
Lors de l'extraction de identifiants à utiliser pour l'impression, le xpath cherche un champ hard codé (
id
).On trouve le xpath ici : config.properties. Valeur :
/FeatureCollection/featureMember/%s/id
.Si le layer qui défini les zones à imprimer de l'atlas (atlasCoverageLayer) utilise une autre clé primaire, ou n'en a pas (par exemple un shapefile aura son FID interne, mais ce n'est pas un champ, il n'est donc pas forcément présenté comme tel dans la réponse du
GetFeature
).Erreur dans le log si la couche d'atlasCoverageLayer n'a pas de champ
id
:Je pense qu'il faudrait utiliser le
gml:id
:/FeatureCollection/featureMember/%s/@id
, qui est toujours composé ainsi sur QGIS Server :<featureType>.<id>
en faisant attention : un feature type peut contenir des points.Pseudo code :
Pseudo implémentation (non testé):
The text was updated successfully, but these errors were encountered: