[Qgis-user] Support - representing a graph in Qgis

Jorge Gustavo Rocha jgr at geomaster.pt
Tue Feb 9 11:06:55 PST 2021


Hi,

I second Chris's proposal. Using graphviz python module [1], you can
generate your graph by iterating over the features.

At the end, just call the render and you will get the rendered graph
(just add view=True) within your QGIS environment. You need to know some
Python basic stuff, but not much than the basic.

Regards,

Jorge Gustavo

[1] https://graphviz.readthedocs.io/en/stable/manual.html

Às 18:55 de 09/02/21, chris hermansen escreveu:
> Giacomo and list,
>
> On Tue, Feb 9, 2021 at 8:07 AM Giacomo Uguccioni
> <giacomo.uguccioni at gmail.com <mailto:giacomo.uguccioni at gmail.com>> wrote:
>
>     Hello everyone, and thanks for the support.
>     If this is not the place to ask for this kind of thing, I ask you
>     to give me a link where I could find support.
>     I'm a qgis 3.14 user. I would like to represent a tree diagram or
>     functional diagram being able to draw the symbology and position
>     of nodes and connections from the information contained in the
>     attribute table. Example: I would like to represent the medium
>     voltage grid of a city as an electrical diagram; I would like to
>     represent with lines that join at nodes the roads that connect
>     certain houses and schools in a city. So my goal is to be able to
>     build a layout with symbology of nodes and connections derived
>     from information contained in different shapefiles or within
>     features, with a non-geographic but schematic / ideal criterion.
>     Do you have any ideas or suggestions on how to do it? I thank you
>     for every contribution.
>
>
> Not a QGIS-based solution, but I've used graphviz
> <https://graphviz.org/> to generate graphs from the command line with
> considerable success.  It offers a small but useful programming
> language that can be combined with data in text files in a really
> useful way.
>
> -- 
> Chris Hermansen · clhermansen "at" gmail "dot" com
>
> C'est ma façon de parler.
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Email Signature
Logo <https://www.geomaster.pt> 	
*Geomaster*
*Jorge Gustavo Rocha* | Software Engineer
*e:*jgr at geomaster.pt | *m:*+351 910 333 888
*g:*41.54094,-8.40490 | *v: *510 906 109
*a: * Rua António Cândido Pinto, 67, 4715-400 Braga

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20210209/66d84a3c/attachment.html>


More information about the Qgis-user mailing list