Thursday 4 August 2016

How to handle PostgreSql 1:m relationship data by using “Data-Driven Input Mask” QGIS plugin?


I have 1:m relationship tables in my PostgreSql. I like to show the main table attributes as well as the relational table attributes (like grid rows) in QGIS attribute-edit-form.


What are the entries i have to add to dd_* tables to get this?



Answer




Starting in QGIS 2.2 (still in development) there will be a new feature that will allow to manage 1:n relations in a very fancy way.


When you open a feature form with a relation, you will the feature attributes and the related atributes connected to it. In the following example the table "reaches" as a 1:n relation to a table "maintenances".


enter image description here


For more information of how will it work take a look into this blog post from Matthias kuhn.


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...