Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Dividing a .net.xml file into two networks

Thank you so much!
I have one last question relating to this. Once I have partitioned my network. Is there a way to visualise them together using the sumo GUI? 

On Wednesday, 26 February 2025 at 07:03:42 GMT, Jakob Erdmann via sumo-user <sumo-user@xxxxxxxxxxx> wrote:


- use netedit selection mode to select all edges that you want to have in one part of the network (i.e. with repeated rectangle selection)
- use the 'save selection' function of selection mode and save the selection to 'sel1.txt'
- use 'invert selection'
- add back all the edges to the selection that you want to have in both networks
- use the 'save selection' function of selection mode and save the selection to 'sel2.txt'
- run the following netconvert commands

netconvert -s old.net.xml --keep-edge.input-file sel1.txt -o net1.net.xml
netconvert -s old.net.xml --keep-edge.input-file sel2.txt -o net2.net.xml



Am Di., 25. Feb. 2025 um 19:00 Uhr schrieb Zain Shah via sumo-user <sumo-user@xxxxxxxxxxx>:
Hi,
I am new to sumo and need help with splitting my network file. I require the file to be split into two and that both files share edges so that I can have vehicles cross the boundaries of one file to another. I am using sumo 1.8.0. Any tips would be greatly appreciated.
Thanks,
Zain
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top