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

Cannot use virtual field for styling if it uses values from another virtual field #22890

Closed
qgib opened this issue Jun 1, 2016 · 2 comments
Closed
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Data Provider Related to specific vector, raster or mesh data providers

Comments

@qgib
Copy link
Contributor

qgib commented Jun 1, 2016

Author Name: Joseph Liam (Joseph Liam)
Original Redmine Issue: 14939
Affected QGIS version: 2.14.3
Redmine category:virtual_fields


If you create a virtual field "v_field_1" in a shapefile which contains values, you can style the layer using this field such as Categorized or Graduated style.

But if you create another virtual field "v_field_2" which takes values from "v_field_1" (e.g. using a simple expression like: "v_field_1"), then "v_field_2" cannot be styled. When you go to either the Categorized or Graduated style and select "v_field_2", it is blank.

I am using QGIS 2.14.3-Essen for Windows 7 64-bit.

@qgib
Copy link
Contributor Author

qgib commented Jun 1, 2016

Author Name: Joseph Liam (Joseph Liam)


The values of "v_field_2" are correctly calculated in the attribute table but just don't show up when being styled.

@qgib
Copy link
Contributor Author

qgib commented Jun 9, 2016

Author Name: Nyall Dawson (@nyalldawson)


Fixed in changeset "df0d5969aa8e3bf0ec653bb6d6395afe1cf58950".


  • status_id was changed from Open to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Data Provider Related to specific vector, raster or mesh data providers labels May 25, 2019
@qgib qgib closed this as completed 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! Data Provider Related to specific vector, raster or mesh data providers
Projects
None yet
Development

No branches or pull requests

1 participant