<!DOCTYPE html><html><head>
<style type="text/css">body { font-family:'DejaVu Sans Mono'; font-size:12px}</style>
</head>
<body><div>Hi,</div><div><br></div><div>Am 22.01.2016, 11:06 Uhr, schrieb Alexandre Neto <senhor.neto@gmail.com>:<br></div><br><blockquote style="margin: 0 0 0.80ex; border-left: #0000FF 2px solid; padding-left: 1ex"><div dir="ltr"><div><div>Hello Joe,<br><br></div>Can you please expand your question a litle bit? Gives an Idea of how your data is organized, and exactly what are you trying to print. Some images might help we understand the problem and give you an hand.</div></div></blockquote><div><br></div><div><br></div><div>For already a long time, I struggle with the same problem!<br></div><div><br></div><div>I think it actually doesn't matter how his data is organized. When you have a layer with a common ID to e.g. a database/table with numerous entries for this ID you may set up a relation and browse the associated data, but I found no easy way in QGIS so far to also display them on the map/do other stuff with them.</div><div><br></div><div>The only referred way of solving that which I found on the web, is to replicate the geometries for each entry in the database/table.</div><div><br></div><div>But is no convenient way with QGIS to achieve that so far:</div><div>Export WKT of the layer to a new field -> join those attributes to the database/table -> export this as csv -> reimport this dataset with "Add Delimitzed Text Layer", set to WKT.</div><div><br></div><div>This works with points, but when I need to do this with polygons, this approach miserably fails, cause the WKT for even small sized polygons is way too long for a string field, so the WKT is crippled!</div><div><br></div><div>In my specific case which I try to solve for a long time, I receive several point and polygons layers and only one attribute table with a variety of 0 to numerous entries per ID in those layers.</div><div><br></div><div>Even for a small amount of features it is a pain in the ass to produce those "materialized 1:n-relations" for being able to make a map.</div><div>In my despair, I hacked together an external R script doing all the stuff for me, producing all needed layers with one geometry per database/table-entry, but I would like to share this with colleagues without having to install and maintain R at their computers as well.</div><div><br></div><div>In my point of view it would be nice to have a model/python script to do at least the failing stuff:</div><div>Add vector layer, add Table, set Join 1 and 2 -> receive new vector layer with features for each matching entry.</div><div><br></div><div>Shouldn't something like this be quite easy with python? (sorry, no real idea where to start from with python)</div><div><br></div><div>Cheers</div><div>Bernd</div><div><br></div><div><br></div><blockquote style="margin: 0 0 0.80ex; border-left: #0000FF 2px solid; padding-left: 1ex"><div dir="ltr"><div><br></div>Alexandre Neto<br></div><br><div class="gmail_quote"><div dir="ltr">Jörg Hulka <<a href="mailto:joerg.hulka@gmail.com">joerg.hulka@gmail.com</a>> escreveu no dia quinta, 21/01/2016 às 13:03:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">

<p class="MsoNormal"><span lang="EN">To whom it may
concern</span></p><p class="MsoNormal"><span lang="EN"><br></span></p>

<p class="MsoNormal"><span lang="EN">I got trouble
linking n to 1 data. I got in my case the problem that there is a specific area
key (shape-file) which is connected to different data sets in a dbf file. I
only mangaged to print one data set to one area. But there are more sets with
the same area key, which I want to print.</span></p>

<p class="MsoNormal"><span lang="EN">I hope there is
help to print out all data sets to the specific areas. <br></span></p><p class="MsoNormal"><span lang="EN"><br></span></p><p class="MsoNormal"><br><span lang="EN">I'm using 2.8.4. Is there a specific plugin?</span></p><p class="MsoNormal"><span lang="EN"><br></span></p><p class="MsoNormal"><span lang="EN">Thanks for your help. I'm using 2.8.4.<br></span></p>

<p class="MsoNormal"><span lang="EN"><br></span></p><p class="MsoNormal"><span lang="EN">Joe</span></p>

</div>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a></blockquote></div><div dir="ltr">-- <br></div><div dir="ltr"><div>Alexandre Neto</div><div>---------------------</div><div>@AlexNetoGeo</div><div><a href="http://sigsemgrilhetaswordpress.com">http://sigsemgrilhetaswordpress.com</a></div><a href="http://gisunchained.wordpress.com">http://gisunchained.wordpress.com</a><br></div>
</blockquote><br><br><br><div id="M2Signature"><div>-- </div><div>Bernd Vogelgesang<br>Siedlerstraße 2<br>91083 Baiersdorf/Igelsdorf<br>Tel: 09133-825374</div></div></body></html>