Re: [Qgis-user] Graphic modeller - writing the help section

2022-05-02 Thread Davide Di Mauro via Qgis-user
Sorry for the spam, but I've just found what I was looking for at: https://gis.stackexchange.com/questions/327861/writing-comments-in-qgis-graphical-modeler Davide Di Mauro | Alluvium Consulting Australia GIS Specialist & Flood Modeller M 0422 634 107 E

[Qgis-user] Graphic modeller - writing the help section

2022-05-02 Thread Davide Di Mauro via Qgis-user
Hi all, My aim is to being able to run a graphic model which has the help section on the right hand side of the interface, similar to every core algorithms. This way should allow the users to read the instructions from the interface, rather than having to open the graphic model in editing mode

Re: [Qgis-user] quit() and exit()

2022-05-02 Thread Asim via Qgis-user
On 5/2/22 9:36 PM, Stephen Sacks via Qgis-user wrote: I would like to terminate a Python script gracefully.  Both quit() and exit() not only abort the script but end the entire QGIS app. Assuming the script runs as a QGIS plugin, a better alternative is to raise an exception, which will be

Re: [Qgis-user] quit() and exit()

2022-05-02 Thread Raymond Nijssen via Qgis-user
Put your code in a main() function and use return to leave the function? On 02-05-2022 18:06, Stephen Sacks via Qgis-user wrote: I would like to terminate a Python script gracefully.  Both quit() and exit() not only abort the script but end the entire QGIS app.  For example, if a file I want

[Qgis-user] quit() and exit()

2022-05-02 Thread Stephen Sacks via Qgis-user
I would like to terminate a Python script gracefully.  Both quit() and exit() not only abort the script but end the entire QGIS app.  For example, if a file I want to read doesn't exist, the following four lines of code terminate QGIS: filePath = Path(fName) if not filePath.is_file():    

Re: [Qgis-user] Classify road network into dead-end links and links

2022-05-02 Thread Arjun Dongre via Qgis-user
is-user > Subject: [Qgis-user] Classify road network into dead-end links and > links connected on both ends > Message-ID: > > > > > Content-Type: text/plain; charset="us-ascii" > > An HTML attachment was scrubbed... > URL: < > http://lists.osg

Re: [Qgis-user] Classify road network into dead-end links and links connected on both ends

2022-05-02 Thread WhereGroup
While I agree that Shapefiles are often not ideal, GeoPackage or any other fancy modern format would have the same issues. They have implicite topology (the spatial relationships of the geometries defines what is connected and what is not), not explicite topology. You should find tools to do

Re: [Qgis-user] Classify road network into dead-end links and links connected on both ends

2022-05-02 Thread Nicolas Cadieux via Qgis-user
Hi, Go to https://plugins.qgis.org/models/?order_by=-upload_date&_gallery=true and download the 3 “fix directional networks” model. I created this to troubleshoot river network file for people that needed perfectly connected network or graph files. This video should help also

Re: [Qgis-user] Classify road network into dead-end links and links connected on both ends

2022-05-02 Thread Raymond Nijssen via Qgis-user
Hi Roland, You could either go making SQL queries (using st_startpoint() and st_endpoint() et cetera) or have a look at the "Networks" plugin which has a lot of this kind of functionality. https://plugins.qgis.org/plugins/networks/ And there are several other network and topology related

Re: [Qgis-user] Classify road network into dead-end links and links connected on both ends

2022-05-02 Thread Zoltan via Qgis-user
that's why SHP files need to die: They're too simple to use, so also get used by people less "in the know" On 2022-05-02 11:05, Roland Spielhofer wrote: I totally agree with you, but the shape is all I got from the client - nothing better is available at his side... *Gesendet:* Montag, 02.

Re: [Qgis-user] Classify road network into dead-end links and links connected on both ends

2022-05-02 Thread Roland Spielhofer via Qgis-user
  I totally agree with you, but the shape is all I got from the client - nothing better is available at his side...     Gesendet: Montag, 02. Mai 2022 um 10:49 Uhr Von: "Zoltan via Qgis-user" An: qgis-user@lists.osgeo.org Betreff: Re: [Qgis-user] Classify road network into dead-end links and

Re: [Qgis-user] Classify road network into dead-end links and links connected on both ends

2022-05-02 Thread Zoltan via Qgis-user
On a more helpful note, you could add 2 columns to your line-string attribute table and then iterate through the start and end coords of each line, counting the number of lines selected at their endpoints. HTH, Zoltan On 2022-05-02 10:49, Zoltan via Qgis-user wrote: Sigh, this is where

Re: [Qgis-user] Classify road network into dead-end links and links connected on both ends

2022-05-02 Thread Zoltan via Qgis-user
Sigh, this is where SHP-file hell comes in - it's the scourge of GIS. Wouldn't it have been nice if your road network was in a data structure that allows you to go to each point and ask it "how many lines emanate from me"? Sorry, I know this is not helpful to you, but the SHP file format

[Qgis-user] Classify road network into dead-end links and links connected on both ends

2022-05-02 Thread Roland Spielhofer via Qgis-user
Hi, I have a road network (Shape linestring) where I would like to classify all links that are dead-end and compute the share of the dead-end links in relation to the total network length. I am pretty sure this is possible in QGIS or a plugin - any pointers would be appreciated.   Regards,