[Qgis-user] Preparation of road network layer

Nicolas Cadieux njacadieux.gitlab at gmail.com
Thu Sep 2 19:18:28 PDT 2021


Hi,

Just realized I did not not do a "reply all" so I am resending this 
answer.   BTW I figured out today how to identify all those segments so 
I will be modifying my model and posting them up soon.

Nicolas


On 2021-09-02 1:18 p.m., Nicolas Cadieux wrote:
>
> Hi,
>
> I am currently working on 3 models that will find many of the problems 
> that you will have. (Disconnected line end, parallel edges, 
> intersecting none connected lines...)  This would be the perfect tool 
> for you but I was having problems with the line merge issues that you 
> are talking about here.  I will send you a link to my models if you 
> them.  I will be adding them to the QGIS hub also and to my gitlab 
> page https://gitlab.com/njacadieux.
>
> Be careful with applying the merge and then multipart to singlepart 
> functions.  That will fix your problems but it will also destroy the 
> data as it will be deleted by the merge function.  I will implement a 
> fix to this in a future models. Keep in mind that merging these lines 
> together will not affect the outcome of a shortest path analysis. It 
> will only speed things up as the layer will be smaller and simplified.
>
> As for the length of the road segment, just use the field calculator, 
> add a length float field and use $length expression. Only do that once 
> all of you intersections are split and snapped.
>
> https://docs.qgis.org/testing/en/docs/user_manual/working_with_vector/attribute_table.html#editing-attribute-values
>
> Nicolas
>
>
> On 2021-09-02 3:46 a.m., Roland Spielhofer wrote:
>> Hi,
>> I have a road network layer (Multi Line String) I would like to 
>> prepare so that each segment is a single line between intersections.
>> This would mean to connect consecutive lines without intersections 
>> and split longer line segments at interesctions.
>> In the end I need statistics of the length of the road segments 
>> between to junctions.
>> I remember a plugin capable of this but have not found anything useful.
>> BTW: Is there a way to make a fulltext search of the qgis-user 
>> mailing list archive? Nabble is not available for this anymore.
>> 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
> -- 
> Nicolas Cadieux
> https://gitlab.com/njacadieux

-- 
Nicolas Cadieux
https://gitlab.com/njacadieux

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20210902/96e45c72/attachment.html>


More information about the Qgis-user mailing list