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

Expression not being retained in rule based labelling #23425

Closed
qgib opened this issue Aug 30, 2016 · 6 comments
Closed

Expression not being retained in rule based labelling #23425

qgib opened this issue Aug 30, 2016 · 6 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Labeling Related to QGIS map labeling

Comments

@qgib
Copy link
Contributor

qgib commented Aug 30, 2016

Author Name: Chris Buckmaster (Chris Buckmaster)
Original Redmine Issue: 15501
Affected QGIS version: 2.16.1
Redmine category:labelling
Assignee: Nathan Woodrow


It appears as though when using the rule based labelling option for labelling features in QGIS (2.16), any modifications using the expression builder are not retained.

Process as follows:

Using a point dataset from PostGIS, and the rule based labelling for Labels.

My rule says ("CLASSIFICA" = 'Woodland Or Forest' AND "FONTHEIGHT" = 'Small'), with this I also have a scale range included.

When I try to change this (for example to “FONTHEIGHT” = ‘Medium’), I click on the browse button next to ‘Test’, I then manually alter the text within my expression from ‘Small’ to ‘Medium’.

I OK this – back at the ‘Edit rule window’, I do see that the text has changed to ‘Medium’, I then click OK but back at my rule based labelling screen the text still says ‘Small’.

If I decide to change the expression from the ‘Edit rule’ window and not open the expression builder, it does retain the change, so there looks to be an issue (from my set up anyway) where it is not storing any changes within the expression window.

@qgib
Copy link
Contributor Author

qgib commented Aug 30, 2016

Author Name: Saber Razmjooei (@saberraz)


  • category_id was configured as Labelling

@qgib
Copy link
Contributor Author

qgib commented Aug 30, 2016

Author Name: Chris Buckmaster (Chris Buckmaster)


  • assigned_to_id was configured as Nathan Woodrow

@qgib
Copy link
Contributor Author

qgib commented Apr 30, 2017

Author Name: Giovanni Manghi (@gioman)


  • regression was configured as 0
  • easy_fix was configured as 0

@qgib
Copy link
Contributor Author

qgib commented Jan 22, 2019

Author Name: Nyall Dawson (@nyalldawson)


Is this still an issue in 3.4?


  • description was changed from It appears as though when using the rule based labelling option for labelling features in QGIS (2.16), any modifications using the expression builder are not retained.

Process as follows:

Using a point dataset from PostGIS, and the rule based labelling for Labels.

My rule says ("CLASSIFICA" = 'Woodland Or Forest' AND "FONTHEIGHT" = 'Small'), with this I also have a scale range included.

When I try to change this (for example to “FONTHEIGHT” = ‘Medium’), I click on the browse button next to ‘Test’, I then manually alter the text within my expression from ‘Small’ to ‘Medium’.

I OK this – back at the ‘Edit rule window’, I do see that the text has changed to ‘Medium’, I then click OK but back at my rule based labelling screen the text still says ‘Small’.

If I decide to change the expression from the ‘Edit rule’ window and not open the expression builder, it does retain the change, so there looks to be an issue (from my set up anyway) where it is not storing any changes within the expression window.
to It appears as though when using the rule based labelling option for labelling features in QGIS (2.16), any modifications using the expression builder are not retained.

Process as follows:

Using a point dataset from PostGIS, and the rule based labelling for Labels.

My rule says ("CLASSIFICA" = 'Woodland Or Forest' AND "FONTHEIGHT" = 'Small'), with this I also have a scale range included.

When I try to change this (for example to “FONTHEIGHT” = ‘Medium’), I click on the browse button next to ‘Test’, I then manually alter the text within my expression from ‘Small’ to ‘Medium’.

I OK this – back at the ‘Edit rule window’, I do see that the text has changed to ‘Medium’, I then click OK but back at my rule based labelling screen the text still says ‘Small’.

If I decide to change the expression from the ‘Edit rule’ window and not open the expression builder, it does retain the change, so there looks to be an issue (from my set up anyway) where it is not storing any changes within the expression window.

  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Jan 22, 2019

Author Name: Chris Buckmaster (Chris Buckmaster)


Nyall Dawson wrote:

Is this still an issue in 3.4?

I can confirm this issue no longer occurs in 3.4 (testing with 3.4.4).

@qgib
Copy link
Contributor Author

qgib commented Jan 22, 2019

Author Name: Nyall Dawson (@nyalldawson)


  • resolution was changed from to fixed/implemented
  • status_id was changed from Feedback to Closed

@qgib qgib closed this as completed Jan 22, 2019
@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Labeling Related to QGIS map labeling labels May 25, 2019
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! Labeling Related to QGIS map labeling
Projects
None yet
Development

No branches or pull requests

1 participant