Skip to content
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

Rule Based Symbology not working if filter is based on column with "-" in its name #44379

Closed
MakkieSA opened this issue Jul 26, 2021 · 9 comments · Fixed by #45263
Closed

Rule Based Symbology not working if filter is based on column with "-" in its name #44379

MakkieSA opened this issue Jul 26, 2021 · 9 comments · Fixed by #45263
Assignees
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Regression Something which used to work, but doesn't anymore Symbology Related to vector layer symbology or renderers

Comments

@MakkieSA
Copy link

Certain Vector Layers not displaying on Map with Rule Based Symbology (Version 3.16.9 & 3.20.1) Work on older versions

@MakkieSA MakkieSA added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Jul 26, 2021
@gioman
Copy link
Contributor

gioman commented Jul 26, 2021

@MakkieSA please attach sample data and detail the necessary steps to replicate.

@gioman gioman added Feedback Waiting on the submitter for answers Symbology Related to vector layer symbology or renderers labels Jul 26, 2021
@MakkieSA
Copy link
Author

Please see attached polygon shapefile and QGIS style file attached in Zip file.

If I load the shapefile in QGIS 3.16.3 and
load the style file on the shapefile it works as expected.

If I do exactly the same in QGIS 3.16.9 and QGIS 3.20.1, the shape disappear/doesn't display on my map.

Hope this helps.

QGIS Error.zip

@gioman gioman changed the title Vector Layer not displaying with Rule Based Symbology (Version 3.16.9 & 3.20.1) Work on older versions Rule Based Symbology not working if filter is based on column with "-" in its name Jul 28, 2021
@gioman gioman removed the Feedback Waiting on the submitter for answers label Jul 28, 2021
@gioman
Copy link
Contributor

gioman commented Jul 28, 2021

Seems to be caused by the "-" in the column name used for creating the rules. If you use an equivalent column without "-" it works.

@gioman gioman added the Regression Something which used to work, but doesn't anymore label Jul 28, 2021
@MakkieSA
Copy link
Author

MakkieSA commented Jul 28, 2021 via email

@nicogodet
Copy link
Member

@gioman It seems similar to #43616 as if the attribute name contains "-" some qgis features fail ?

@gioman
Copy link
Contributor

gioman commented Jul 28, 2021

@gioman It seems similar to #43616 as if the attribute name contains "-" some qgis features fail ?

seems related.

@MakkieSA
Copy link
Author

MakkieSA commented Jul 29, 2021 via email

@github-actions github-actions bot added the stale Uh oh! Seems this work is abandoned, and the PR is about to close. label Aug 12, 2021
@m-kuhn m-kuhn removed the stale Uh oh! Seems this work is abandoned, and the PR is about to close. label Aug 27, 2021
@nyalldawson nyalldawson self-assigned this Sep 27, 2021
nyalldawson added a commit to nyalldawson/QGIS that referenced this issue Sep 27, 2021
nyalldawson added a commit to nyalldawson/QGIS that referenced this issue Sep 27, 2021
m-kuhn pushed a commit that referenced this issue Sep 28, 2021
espinafre pushed a commit to espinafre/QGIS that referenced this issue Sep 29, 2021
@gioman
Copy link
Contributor

gioman commented Dec 13, 2021

This do not seems completely fixed, see #46459

@roya0045
Copy link
Contributor

This do not seems completely fixed, see #46459

I'm pretty sure it's fixed, I think it's just the conversion that is broken, not quite the same sadly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Regression Something which used to work, but doesn't anymore Symbology Related to vector layer symbology or renderers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants