Bug report #8757

Vector cannot be styled by joined attributes

Added by Radim Blazek about 6 years ago. Updated about 6 years ago.

Status:Closed
Priority:High
Assignee:-
Category:Symbology
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:17466

Description

Vector layers cannot be styled (categorized, graduated, ...) based on attributes from
joined table. All features are rendered in class with empty value.

Tested with two Shapefiles joined.

mestrado.zip (3.07 MB) Giovanni Manghi, 2013-10-04 06:00 AM

Associated revisions

Revision 5e14fea1
Added by Matthias Kuhn about 6 years ago

Add join field to provider request also when requesting a subset of attributes
Fixes #8757

History

#1 Updated by Giovanni Manghi about 6 years ago

  • Status changed from Open to Feedback

Hi, I cannot confirm here, try the attached shapefiles: join "join2" to "join1" and use the "code06" column to do the symbology.

#2 Updated by Giovanni Manghi about 6 years ago

#3 Updated by Radim Blazek about 6 years ago

Thanks for testing.

For me it does not work. Table is OK, identify OK, feature counts for classes in legend are OK but everything is rendered with the color assigned to empty value (NULL).

I tried also to check/uncheck "Cache join layer in virtual memory" and "Create attribute index on join field" but no effect.

Styles based on attributes from base layer are working without problems.

Current master dae9b5d9, GDAL 1.10.1, Debian 7.

#4 Updated by Giovanni Manghi about 6 years ago

Radim Blazek wrote:

Thanks for testing.

For me it does not work. Table is OK, identify OK, feature counts for classes in legend are OK but everything is rendered with the color assigned to empty value (NULL).

I tried also to check/uncheck "Cache join layer in virtual memory" and "Create attribute index on join field" but no effect.

Styles based on attributes from base layer are working without problems.

Current master dae9b5d9, GDAL 1.10.1, Debian 7.

so for you doesn't work with the data I have attached here?

#5 Updated by Radim Blazek about 6 years ago

Giovanni Manghi wrote:

so for you doesn't work with the data I have attached here?

No.

#6 Updated by Denis Rouzaud about 6 years ago

I confirm it does not work, also for rule-based symbologoy.

features not drawn but can be identified!

#7 Updated by Giovanni Manghi about 6 years ago

  • Category changed from Vectors to Symbology
  • Status changed from Feedback to Open
  • Affected QGIS version changed from 2.0.1 to master

yeah I confirm it, I don't what I have done wrong the first time i tested. Isn't this a regression?

#8 Updated by Matthias Kuhn about 6 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF