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

Symbolizing field from a table joined to a joined table #14116

Closed
qgib opened this issue Aug 3, 2011 · 8 comments
Closed

Symbolizing field from a table joined to a joined table #14116

qgib opened this issue Aug 3, 2011 · 8 comments
Labels
Feature Request Symbology Related to vector layer symbology or renderers

Comments

@qgib
Copy link
Contributor

qgib commented Aug 3, 2011

Author Name: Bernhard Ströbl (Bernhard Ströbl)
Original Redmine Issue: 4136

Redmine category:symbology


situation: Three layers:
t1 PostGIS table with two fields: id (integer, PK), the_geom
t2 PostgreSQL table with many fields containing two datasets for each dataset of t1; fields: id(integer), type (integer) in this case it is not relevant, that there are two datasets in t2 for each in t1 as the value in type is the same for both
t3 PostgreSQL table with two fields: id (integer), typename (varchar) containing lookup-values for field type in t2

Steps to do:
a) Join t2 to t1 on t1.id = t2.id
b) Join t3 to t1 on t1.type = t3.id
c) style t1 categorized on field type => works
d) style t1 categorized on field typename => does not work (categorization works but layer is not displayed on map)

tried with 1.8.0-Trunk (QGIS-Codeversion 58c737d) installed via osgeo-installer


@qgib
Copy link
Contributor Author

qgib commented Aug 9, 2011

Author Name: Marco Hugentobler (@mhugent)


Can you dump the three tables (or similar ones that can reproduce the bug) to shapes and attach them to the ticket?

Thanks,
Marco

@qgib
Copy link
Contributor Author

qgib commented Aug 9, 2011

Author Name: Bernhard Ströbl (Bernhard Ströbl)


Hi Marco,

attached zip file contains a shape file and two csv. files.
Do as follows:

  1. load them into QGIS
  2. in expl_lines - layer properties join expl_data (join field = nr, target field = nr)
  3. in expl_lines - layer properties join expl_lookup (join field = id, target field = typnr (note this field comes from expl_data!))
  4. in expl_lines change style from "single symbol" to "categorized" (column = typ), click classify and apply => classification works but the line is not visible any more

  • 3376 was configured as expl.zip

  • expl.zip (Bernhard Ströbl) - example data

@qgib
Copy link
Contributor Author

qgib commented Aug 12, 2011

Author Name: Marco Hugentobler (@mhugent)


Ah, I see. Yes, QGIS does not provide the capability to join multiple tables like that. Every join needs to have a target field in the origin layer. Otherwise, it would be quite complicated to manage the join dependencies (QGIS fetches only the necessary attributes for rendering).
I've changed the join dialog to only show original attributes as target and thus this ticket to feature request.


  • tracker_id was changed from 1 to 2

@qgib
Copy link
Contributor Author

qgib commented Aug 14, 2011

Author Name: Bernhard Ströbl (Bernhard Ströbl)


Ok, I see. Thank you for your effort. This is definitely not a "must have". I could still classify on typenr but wanted to avoid writing the legend labels :-)

@qgib
Copy link
Contributor Author

qgib commented Dec 16, 2011

Author Name: Giovanni Manghi (@gioman)


  • fixed_version_id was configured as Version 1.7.4

@qgib
Copy link
Contributor Author

qgib commented Apr 15, 2012

Author Name: Giovanni Manghi (@gioman)


  • fixed_version_id was changed from Version 1.7.4 to Version 2.0.0

@qgib
Copy link
Contributor Author

qgib commented Oct 6, 2012

Author Name: Pirmin Kalberer (Pirmin Kalberer)


  • fixed_version_id was changed from Version 2.0.0 to Future Release - Nice to have

@qgib
Copy link
Contributor Author

qgib commented Jan 27, 2014

Author Name: Bernhard Ströbl (Bernhard Ströbl)


  • resolution was changed from to wontfix
  • status_id was changed from Open to Closed

@qgib qgib added Feature Request Symbology Related to vector layer symbology or renderers labels May 24, 2019
@qgib qgib added this to the Future Release - Nice to have milestone May 24, 2019
@qgib qgib closed this as completed May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request Symbology Related to vector layer symbology or renderers
Projects
None yet
Development

No branches or pull requests

1 participant