Some interesting solution found in pgadmin 

https://gis.stackexchange.com/questions/261654/automatic-bus-route-map-without-overlaps

Nicolas Cadieux
https://gitlab.com/njacadieux

> Le 11 nov. 2022 à 09:13, Nicolas Cadieux <[email protected]> a 
> écrit :
> 
> 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 
>>> <[email protected]> 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: [email protected]
>> P: +39 024388388
>> www.italtel.com
>>  
>>  
>>  
>> Da: Nicolas Cadieux <[email protected]> 
>> Inviato: martedì 8 novembre 2022 18:40
>> A: Bombonato Antonio Maria <[email protected]>; 
>> [email protected]
>> 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: [email protected]
>> P: +39 024388388
>> www.italtel.com
>>  
>>  
>>  
>> 
>> 
>> _______________________________________________
>> Qgis-user mailing list
>> [email protected]
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
_______________________________________________
Qgis-user mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to