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

Arjun Dongre adongre at west-inc.com
Mon May 2 09:02:14 PDT 2022


You can use this method to get your endpoints:
https://gis.stackexchange.com/questions/306190/generating-start-and-end-points-for-linestrings

Buffer the points by a small amount, and intersect this buffer back with
your original shapefile. You should get the pairs of roads to
intersections. Filter as needed.

On Mon, May 2, 2022 at 11:17 AM <qgis-user-request at lists.osgeo.org> wrote:

> Send Qgis-user mailing list submissions to
>         qgis-user at lists.osgeo.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         https://lists.osgeo.org/mailman/listinfo/qgis-user
> or, via email, send a message with subject or body 'help' to
>         qgis-user-request at lists.osgeo.org
>
> You can reach the person managing the list at
>         qgis-user-owner at lists.osgeo.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Qgis-user digest..."
>
>
> Today's Topics:
>
>    1. Suscribe (Neil Christian Cadiz Rosella)
>    2. Classify road network into dead-end links and links connected
>       on both ends (Roland Spielhofer)
>    3. Re: Classify road network into dead-end links and links
>       connected on both ends (Zoltan)
>    4. Re: Classify road network into dead-end links and links
>       connected on both ends (Zoltan)
>    5. Re: Classify road network into dead-end links and links
>       connected on both ends (Roland Spielhofer)
>    6. Re: Classify road network into dead-end links and links
>       connected on both ends (Zoltan)
>    7. Re: Classify road network into dead-end links and links
>       connected on both ends (Raymond Nijssen)
>    8. Re: Classify road network into dead-end links and links
>       connected on both ends (Nicolas Cadieux)
>    9. Re: Classify road network into dead-end links and links
>       connected on both ends (Johannes Kr?ger (WhereGroup))
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sun, 1 May 2022 21:15:06 +0200
> From: Neil Christian Cadiz Rosella <neilcadiz99 at gmail.com>
> To: qgis-user at lists.osgeo.org
> Subject: [Qgis-user] Suscribe
> Message-ID:
>         <CAHt0wVjG610pNnVaU7wvmf=brhmrZCCUSrGQ1Gmv5XR8=
> LEUbA at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> safegthegref
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.osgeo.org/pipermail/qgis-user/attachments/20220501/247f68d6/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 2
> Date: Mon, 2 May 2022 10:35:42 +0200
> From: Roland Spielhofer <rspiel at gmx.net>
> To: qgis-user <qgis-user at lists.osgeo.org>
> Subject: [Qgis-user] Classify road network into dead-end links and
>         links connected on both ends
> Message-ID:
>
> <trinity-2a8953ec-e913-4b61-8ae8-83f37171cb9f-1651480542202 at 3c-app-gmx-bap40
> >
>
> Content-Type: text/plain; charset="us-ascii"
>
> An HTML attachment was scrubbed...
> URL: <
> http://lists.osgeo.org/pipermail/qgis-user/attachments/20220502/35b44b1b/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 3
> Date: Mon, 2 May 2022 10:49:36 +0200
> From: Zoltan <zoltans at geograph.co.za>
> To: qgis-user at lists.osgeo.org
> Subject: Re: [Qgis-user] Classify road network into dead-end links and
>         links connected on both ends
> Message-ID: <b9caa095-e731-bbc2-7615-d7cf906452ba at geograph.co.za>
> Content-Type: text/plain; charset="utf-8"; Format="flowed"
>
> 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 needed
> to have died 20 years ago.
>
> Regards,
> Zoltan
>
> On 2022-05-02 10:35, Roland Spielhofer via Qgis-user wrote:
> > 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,
> > Roland
> >
> > _______________________________________________
> > 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
>
> --
>
> =============================================
> Zoltan Szecsei GPrGISc 0031
> Director, Geograph (Pty) Ltd.
> GIS and Photogrammetric Services
>
> Cape Town, South Africa.
>
> Mobile: +27-83-6004028 (Signal, not WhatsApp)
> www.geograph.co.za
> =============================================
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.osgeo.org/pipermail/qgis-user/attachments/20220502/277f8905/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 4
> Date: Mon, 2 May 2022 10:54:12 +0200
> From: Zoltan <zoltans at geograph.co.za>
> To: qgis-user at lists.osgeo.org
> Subject: Re: [Qgis-user] Classify road network into dead-end links and
>         links connected on both ends
> Message-ID: <80eb454e-a7ca-d3cb-2326-54193f6b984b at geograph.co.za>
> Content-Type: text/plain; charset="utf-8"; Format="flowed"
>
> 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 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
> > needed to have died 20 years ago.
> >
> > Regards,
> > Zoltan
> >
> > On 2022-05-02 10:35, Roland Spielhofer via Qgis-user wrote:
> >> 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,
> >> Roland
> >>
> >> _______________________________________________
> >> 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
> >
> > --
> >
> > =============================================
> > Zoltan Szecsei GPrGISc 0031
> > Director, Geograph (Pty) Ltd.
> > GIS and Photogrammetric Services
> >
> > Cape Town, South Africa.
> >
> > Mobile: +27-83-6004028 (Signal, not WhatsApp)
> > www.geograph.co.za
> > =============================================
> >
> > _______________________________________________
> > 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
>
> --
>
> =============================================
> Zoltan Szecsei GPrGISc 0031
> Director, Geograph (Pty) Ltd.
> GIS and Photogrammetric Services
>
> Cape Town, South Africa.
>
> Mobile: +27-83-6004028 (Signal, not WhatsApp)
> www.geograph.co.za
> =============================================
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.osgeo.org/pipermail/qgis-user/attachments/20220502/1932fdbf/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 5
> Date: Mon, 2 May 2022 11:05:27 +0200
> From: Roland Spielhofer <rspiel at gmx.net>
> To: zoltans at geograph.co.za
> Cc: qgis-user at lists.osgeo.org
> Subject: Re: [Qgis-user] Classify road network into dead-end links and
>         links connected on both ends
> Message-ID:
>
> <trinity-a58b16b8-2d3c-4979-bad0-0727a64a1629-1651482327877 at 3c-app-gmx-bap40
> >
>
> Content-Type: text/plain; charset="us-ascii"
>
> An HTML attachment was scrubbed...
> URL: <
> http://lists.osgeo.org/pipermail/qgis-user/attachments/20220502/86f14f86/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 6
> Date: Mon, 2 May 2022 11:07:15 +0200
> From: Zoltan <zoltans at geograph.co.za>
> To: Roland Spielhofer <rspiel at gmx.net>
> Cc: qgis-user at lists.osgeo.org
> Subject: Re: [Qgis-user] Classify road network into dead-end links and
>         links connected on both ends
> Message-ID: <8dd095da-9275-edab-abae-b592847983b0 at geograph.co.za>
> Content-Type: text/plain; charset="utf-8"; Format="flowed"
>
> 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. Mai 2022 um 10:49 Uhr
> > *Von:*?"Zoltan via Qgis-user" <qgis-user at lists.osgeo.org>
> > *An:* qgis-user at lists.osgeo.org
> > *Betreff:*?Re: [Qgis-user] Classify road network into dead-end links
> > and links connected on both ends
> > 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
> > needed to have died 20 years ago.
> >
> > Regards,
> > Zoltan
> > On 2022-05-02 10:35, Roland Spielhofer via Qgis-user wrote:
> >
> >     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,
> >     Roland
> >
> >     _______________________________________________
> >     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
> >
> > --
> >
> > =============================================
> > Zoltan Szecsei GPrGISc 0031
> > Director, Geograph (Pty) Ltd.
> > GIS and Photogrammetric Services
> >
> > Cape Town, South Africa.
> >
> > Mobile: +27-83-6004028 (Signal, not WhatsApp)
> > www.geograph.co.za
> > =============================================
> > _______________________________________________ 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
>
> --
>
> =============================================
> Zoltan Szecsei GPrGISc 0031
> Director, Geograph (Pty) Ltd.
> GIS and Photogrammetric Services
>
> Cape Town, South Africa.
>
> Mobile: +27-83-6004028 (Signal, not WhatsApp)
> www.geograph.co.za
> =============================================
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.osgeo.org/pipermail/qgis-user/attachments/20220502/5621c4aa/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 7
> Date: Mon, 2 May 2022 13:03:32 +0200
> From: Raymond Nijssen <r.nijssen at terglobo.nl>
> To: qgis-user at lists.osgeo.org
> Subject: Re: [Qgis-user] Classify road network into dead-end links and
>         links connected on both ends
> Message-ID: <a3dbb9ee-2880-f7b6-6b10-3b6453793489 at terglobo.nl>
> Content-Type: text/plain; charset=UTF-8; format=flowed
>
> 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 plugins.
>
> Hope this helps,
> Raymond
>
>
> On 02-05-2022 10:35, Roland Spielhofer via Qgis-user wrote:
> > 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,
> > Roland
> >
> > _______________________________________________
> > 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
>
>
> ------------------------------
>
> Message: 8
> Date: Mon, 2 May 2022 10:47:27 -0400
> From: Nicolas Cadieux <njacadieux.gitlab at gmail.com>
> To: Roland Spielhofer <rspiel at gmx.net>
> Cc: qgis-user <qgis-user at lists.osgeo.org>
> Subject: Re: [Qgis-user] Classify road network into dead-end links and
>         links connected on both ends
> Message-ID: <9B36425D-A0C6-42B0-A82A-57DD92AF1679 at gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi,
>
> Go to
> https://plugins.qgis.org/models/?order_by=-upload_date&&is_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
> https://youtu.be/v61PafSByvM.
>
> Nicolas Cadieux
> https://gitlab.com/njacadieux
>
> > Le 2 mai 2022 ? 04:41, Roland Spielhofer via Qgis-user <
> qgis-user at lists.osgeo.org> a ?crit :
> >
> > ?
> > 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,
> > Roland
> > _______________________________________________
> > 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
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.osgeo.org/pipermail/qgis-user/attachments/20220502/c30279b1/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 9
> Date: Mon, 2 May 2022 17:09:34 +0200
> From: Johannes Kr?ger (WhereGroup)  <johannes.kroeger at wheregroup.com>
> To: Zoltan <zoltans at geograph.co.za>, Roland Spielhofer
>         <rspiel at gmx.net>
> Cc: qgis-user at lists.osgeo.org
> Subject: Re: [Qgis-user] Classify road network into dead-end links and
>         links connected on both ends
> Message-ID: <d4ebf237-d72e-bba9-4eaa-f2295b49ec11 at wheregroup.com>
> Content-Type: text/plain; charset="utf-8"; Format="flowed"
>
> 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 this fairly easily but if your data is not
> have "perfect" "geometric topology" it might have some false negatives
> or positives. Going via GRASS tools might be the best approach. Or some
> routing tools that are based on those common kinds of data.
>
> Cheers, Hannes
>
> Am 02.05.22 um 11:07 schrieb 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. Mai 2022 um 10:49 Uhr
> >> *Von:*?"Zoltan via Qgis-user" <qgis-user at lists.osgeo.org>
> >> *An:* qgis-user at lists.osgeo.org
> >> *Betreff:*?Re: [Qgis-user] Classify road network into dead-end links
> >> and links connected on both ends
> >> 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
> >> needed to have died 20 years ago.
> >>
> >> Regards,
> >> Zoltan
> >> On 2022-05-02 10:35, Roland Spielhofer via Qgis-user wrote:
> >>
> >>     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,
> >>     Roland
> >>
> >>     _______________________________________________
> >>     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
> >>
> >> --
> >>
> >> =============================================
> >> Zoltan Szecsei GPrGISc 0031
> >> Director, Geograph (Pty) Ltd.
> >> GIS and Photogrammetric Services
> >>
> >> Cape Town, South Africa.
> >>
> >> Mobile: +27-83-6004028 (Signal, not WhatsApp)
> >> www.geograph.co.za
> >> =============================================
> >> _______________________________________________ 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
> >
> > --
> >
> > =============================================
> > Zoltan Szecsei GPrGISc 0031
> > Director, Geograph (Pty) Ltd.
> > GIS and Photogrammetric Services
> >
> > Cape Town, South Africa.
> >
> > Mobile: +27-83-6004028 (Signal, not WhatsApp)
> > www.geograph.co.za
> > =============================================
> >
> > _______________________________________________
> > 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
>
> --
> Johannes Kr?ger / GIS-Entwickler/-Berater
>
> ---------------------------------------------
> Schon gewusst??
> In unserem Blog geben wir Tipps & Tricks zu Open-Source-GIS-Software
> und berichten aus unserem Experten-Alltag:
> https://wheregroup.com/blog/
> ---------------------------------------------
>
> WhereGroup GmbH
> Grevenweg 89
> 20537 Hamburg
> Germany
>
> Tel: +49 (0)228 / 90 90 38 - 36
> Fax: +49 (0)228 / 90 90 38 - 11
>
> johannes.kroeger at wheregroup.com
> www.wheregroup.com
> Gesch?ftsf?hrer:
> Olaf Knopp, Peter Stamm
> Amtsgericht Bonn, HRB 9885
> -------------------------------
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.osgeo.org/pipermail/qgis-user/attachments/20220502/b7a44a40/attachment.htm
> >
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: OpenPGP_0x840A4B843789797F.asc
> Type: application/pgp-keys
> Size: 2472 bytes
> Desc: OpenPGP public key
> URL: <
> http://lists.osgeo.org/pipermail/qgis-user/attachments/20220502/b7a44a40/attachment.key
> >
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: OpenPGP_signature
> Type: application/pgp-signature
> Size: 665 bytes
> Desc: OpenPGP digital signature
> URL: <
> http://lists.osgeo.org/pipermail/qgis-user/attachments/20220502/b7a44a40/attachment.sig
> >
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> 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
>
>
> ------------------------------
>
> End of Qgis-user Digest, Vol 195, Issue 1
> *****************************************
>


-- 
*Arjun Dongre*

Western EcoSystems Technology, Inc.
Environmental & Statistical Consultants
415 W. 17th St. Suite 200
Cheyenne, WY 82001
adongre at west-inc.com
www.west-inc.com

*Follow WEST: *Facebook
<http://www.facebook.com/pages/Western%E2%80%90EcoSystems%E2%80%90Technology%E2%80%90WESTInc/125604770807646>
, Twitter <http://twitter.com/WestEcoSystems>, Linked In
<http://www.linkedin.com/company/1458419>, Join our Mailing list
<http://visitor.r20.constantcontact.com/manage/optin/ea?v=001qrD4A3S5xJ5KgMyelH9jyw%3D%3D>

CONFIDENTIALITY NOTICE:  This message and any accompanying communications
are covered by the Electronic Communications Privacy Act, 18 U.S.C. §§
2510-2521, and contain information that is privileged, confidential or
otherwise protected from disclosure.  If you are not the intended recipient
or an agent responsible for delivering the communication to the intended
recipient, you are hereby notified that you have received this
communication in error.  Dissemination, distribution or copying of this
e-mail or the information herein by anyone other than the intended
recipient, or an employee or agent responsible for delivering the message
to the intended recipient, is prohibited.  If you have received this
communication in error, please notify us immediately by e-mail and delete
the original message.  Thank you.

P Please consider the environment before printing.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20220502/caaf7e91/attachment-0001.htm>


More information about the Qgis-user mailing list