New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
QGIS Server: getFeature expression does not work #20286
Comments
Author Name: Andreas Neumann (@andreasneumann) Forgot to mention that this concerns the response of the GetFeature request. |
Author Name: Giovanni Manghi (@gioman) Hi Andreas, is this a regression?
|
Author Name: Andreas Neumann (@andreasneumann) Hi Giovanni, I don't know if this ever worked. It is the first time I tried this expression in server context. This feature was introduced in QGIS 2.6 But Marco promised to have a look at it. Andreas |
Author Name: Marco Hugentobler (@mhugent) I tested it here, however it seems to work here (unless I overlooked something). E.g. doing a featureinfo at the green polygon of the attached screenshot returns: 'Tempo 30 Zone Brunnenwiesenstrasse
|
Author Name: Andreas Neumann (@andreasneumann) Hi Marco, Very strange - it does not work on my QGIS server. I will try on a different machine - or we could have a look at it next week with teamviewer. btw: hope you feel better again? Heard you are sick at home ... Thanks, |
Author Name: Marco Hugentobler (@mhugent) It is probably because I loaded the whole group as WMS layer into QGIS. If you load only 'Langsamverkehrszonen', it will not work, because QGIS cannot know about the two layers in Hilfstabellen. |
Author Name: Andreas Neumann (@andreasneumann)
Original Redmine Issue: 12090
Affected QGIS version: master
Redmine category:qgis_server
Assignee: Marco Hugentobler
It seems like in current master the attribute(getFeature()) expression does not work in a maptip.
I used the following maptip on layer "Langsamverkehrszonen":
[% "objekt_projektbezeichnung" %]
-------------Status: [% attribute(getFeature('Status Begegnungszone', 'code', status_t30_begegnungszone),'wert')%] [%COALESCE('
Inbetriebnahme: ' || year(ende_baustelle),'')%]
The attribute(getFeature()) expression works fine in QGIS desktop, but does not work in QGIS server. QGIS server does not correctly evaluate the expression.
The text was updated successfully, but these errors were encountered: