[Qgis-user] Problem display overlapping lines

Nicolas Cadieux njacadieux.gitlab at gmail.com
Fri Nov 11 06:13:15 PST 2022


Hi,

I am not aware of a function or of a plugin that does that. I would start by googling.  A quick Google search has shown me this python solution. https://gis.stackexchange.com/questions/239129/shifting-display-of-overlapping-lines-in-qgis

It was created for an earlier version of QGIS with another version of Python. If would need to be adapted.  If this is for a small project (but to big to do by hand) you could always just install a QGIS 2.XX version of QGIS in a virtual machine to see if it works.

Then, you could ask help to adapt if to QGIS 3x.  Maybe there is a plugin that already does this.

Nicolas Cadieux
https://gitlab.com/njacadieux

> Le 11 nov. 2022 à 06:45, Bombonato Antonio Maria <antoniomaria.bombonato at italtel.com> a écrit :
> 
> 
> Thanks Nicolas.
> Unfortunately, the problem is not to identify the overlapping lines.
> I already have a shapefile that identifies the sections with multiple overlapping lines. In this shapefile, for each segment with overlaps, I have the indication of how many overlapping lines there are (at most 3).
> The real problem is to draw the lines without overlappings.
> Any suggestion will be appreciated.
>  
> <image001.png>
> Antonio Maria Bombonato
> Software Developer
> Business Unit Ultra Broadband
> 
> Italtel S.p.A.
> Via Caldera, 21 
> 20153 Milano MI – Italy
> email: antoniomaria.bombonato at italtel.com
> P: +39 024388388
> www.italtel.com
>  
>  
>  
> Da: Nicolas Cadieux <njacadieux.gitlab at gmail.com> 
> Inviato: martedì 8 novembre 2022 18:40
> A: Bombonato Antonio Maria <antoniomaria.bombonato at italtel.com>; qgis-user at lists.osgeo.org
> Oggetto: Re: [Qgis-user] Problem display overlapping lines
>  
> Hi,
> 
> It would be nice to have this QGIS.  My first reaction is to use line offset but the end result is not predictable. You may need to work with Python to do this.  You could also probably create a model. 
> 
> If you need to identify the overlapping segments, you can use my Fix Directional Network model 1 to 3.  You can download this on the plugin page. https://plugins.qgis.org/models/?order_by=-upload_date&&is_gallery=true
> 
> The first model will check the Geometries.  Test with all default values.  After running this model, run the second model.  It should identify all partially overlapping lines.  This layer will be called "Potential Problem || Overlapping lines." You can open the second model and look at the "Find overlapping lines" algorithm to see how it's done.   It should find any overlapping or partially overlapping lines.
> 
> This video should help you figure things out. https://youtu.be/v61PafSByvM
> 
> It's not a total solution but it's at least a start!
> 
> Nicolas Cadieux
> 
>  
> 
> Le 2022-11-03 à 3:12 p.m., Bombonato Antonio Maria via Qgis-user a écrit :
> Hello,
> First of all, sorry for my english.
> My name is Antonio Bombonato and it is the first time I ask a question to this mailing list.
>  
> I have a shapefile with multiple routes (each one is identified by an univoque OBJECT_ID) and some are partially overlapped (i.e they share the same segment). I need to display these routes so they are all visible and without overlapping.
>  
> i tryed using line offset but some line still remains overlapped.
> Any idea to solve the problem, possibly using a python script, will be appreciated.
>  
> Attached the starting shapefile (cables) and the desired result I want to obtain (target).
> In this case the shapefile target was created manually moving the vertices of each line.
>  
> P.S. I use 3.16.7-Hannover QGIS version
>  
> Best regards,
> Antonio
>  
> <image001.png>
> Antonio Maria Bombonato
> Software Developer
> Business Unit Ultra Broadband
> 
> Italtel S.p.A.
> Via Caldera, 21 
> 20153 Milano MI – Italy
> email: antoniomaria.bombonato at italtel.com
> P: +39 024388388
> www.italtel.com
>  
>  
>  
> 
> 
> _______________________________________________
> 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/20221111/02f2e432/attachment.htm>


More information about the Qgis-user mailing list