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

PostGIS layer does not classify boolean for categorized style #20521

Closed
qgib opened this issue Mar 9, 2015 · 1 comment
Closed

PostGIS layer does not classify boolean for categorized style #20521

qgib opened this issue Mar 9, 2015 · 1 comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter!
Milestone

Comments

@qgib
Copy link
Contributor

qgib commented Mar 9, 2015

Author Name: Mike Taves (Mike Taves)
Original Redmine Issue: 12346
Affected QGIS version: 2.8.1


A PostGIS layer cannot be properly classified according to a boolean column for the categorized style.

For example, consider the example table:

create table qgistest (id serial, geom geometry, enabled boolean);
insert into qgistest (geom, enabled) values ('POINT(1 2)', true);
insert into qgistest (geom, enabled) values ('POINT(3 4)', false);

Add the layer to QGIS, and in the Layer Properties, change the Style to "Categorized", change Column to "enabled", and click "Classify". The results show 1 symbol without Value or Legend.

The expected result is to have at least two symbols with t and f values, which is the result by saving this layer to a Shapefile and repeating the above steps.

This is possibly related to #20484 where it may have been fixed. I don't have a trunk version, so I cannot test to see if this issue is fixed.

@qgib
Copy link
Contributor Author

qgib commented Mar 10, 2015

Author Name: Jürgen Fischer (@jef-n)


Fixed in changeset "f04c40c28330708e394f598f27c26bf0e78dea7c".


  • status_id was changed from Open to Closed

@qgib qgib added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label May 25, 2019
@qgib qgib added this to the Version 2.8.2 milestone 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!
Projects
None yet
Development

No branches or pull requests

1 participant