<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">If your nodes have origin/destination attribute and a common id for connecting nodes, I suppose you could use a VIEW, even if it would be rather inefficient for big number of nodes. </span><div style="font-family:arial,sans-serif;font-size:13px">
It would work in Spatialite too.</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">giovanni </div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
2013/11/21 Vincent Picavet <span dir="ltr"><<a href="mailto:vincent.ml@oslandia.com" target="_blank">vincent.ml@oslandia.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
[...]<br>
<div class="im">> > > Then, a procedure would read the connections from the table and draw<br>
> > > automatically these connecting lines between the nodes.<br>
> ><br>
> > If you want straight lines between nodes, it is easy. Otherwise you would<br>
> > have > to state rules for making the lines between the nodes, and it can<br>
> > be  simple or very complicated to automate according to the rules.<br>
><br>
> See my workflow in:<br>
> <a href="http://thread.gmane.org/gmane.comp.gis.qgis.user/24511/focus=24527" target="_blank">http://thread.gmane.org/gmane.comp.gis.qgis.user/24511/focus=24527</a><br>
<br>
</div>If it is a matter of changing the last vertex of an already existing geometry,<br>
it is doable and quite easy, even if a bit more complicated than a simple<br>
makeline.<br>
<div class="im"><br>
> > Here is a PostGIS example of creating the edge geometry given to/from<br>
> > nodes : <a href="https://gist.github.com/vpicavet/7572293" target="_blank">https://gist.github.com/vpicavet/7572293</a><br>
><br>
> Do you think that this could be done as well with non-server based storage<br>
> (shapefile, sqlite/spatialite)?<br>
</div>With spatialite you may be able to do the same thing, as sqlite has triggers<br>
too, but it is not as easy. You cannot create custom functions, so if your<br>
edge geometry creation is very complex it will probably be very tricky.<br>
<div class="im"><br>
> > This behaviour is transparent for a visualization client, QGIS for<br>
> > exemple.<br>
><br>
> Great. give me some time to test on it.<br>
</div>ok<br>
<span class="HOEnZb"><font color="#888888"><br>
Vincent<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
><br>
> Thanks for your follow-up.<br>
><br>
> _______________________________________________<br>
> Qgis-user mailing list<br>
> <a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Giovanni Allegri<br><a href="http://about.me/giovanniallegri" target="_blank">http://about.me/giovanniallegri</a><br>blog: <a href="http://blog.spaziogis.it" target="_blank">http://blog.spaziogis.it</a><br>
GEO+ geomatica in Italia <a href="http://bit.ly/GEOplus" target="_blank">http://bit.ly/GEOplus</a>
</div>