You could adapt the code used within netedit and port it over to your
script:
https://github.com/eclipse/sumo/blob/e7886dc8d167328696bd514ab64407603e8c0c3c/src/netedit/GNENet.cpp#L1035-L1093

Am Mo., 18. Okt. 2021 um 20:51 Uhr schrieb Patrik Matošević <
[email protected]>:

> Dear Jakob,
>
> Thank you for the quick answer, but we do not want to manually change the
> network in the GUI editor. We want to change the road network with a script
> or some other way in our code because we need to change it frequently as we
> want to optimise our road network.
>
> Thank you in advance and best regards.
> Students from Famnit
>
> V V pon., 18. okt. 2021 ob 15:00 je oseba Jakob Erdmann <
> [email protected]> napisala:
>
>> see
>> https://sumo.dlr.de/docs/Netedit/neteditUsageExamples.html#converting_an_intersection_into_a_roundabout
>> and
>> https://sumo.dlr.de/docs/Netedit/neteditUsageExamples.html#convertion_a_roundabout_into_a_simple_intersction
>>
>> Am Fr., 15. Okt. 2021 um 15:36 Uhr schrieb Patrik Matošević <
>> [email protected]>:
>>
>>> To whom it may concern,
>>>
>>> As students of computer science we are using Sumo for one of our
>>> projects and we would like to know if there is any way of converting
>>> junctions to roundabouts and the other way around? Do we need to manually
>>> change the XML file or is there any other way and if there is we would
>>> appreciate a nod into the right direction.
>>> Thanks in advance.
>>>
>>> Best regards
>>> Students from Famnit, Slovenia
>>> _______________________________________________
>>> sumo-user mailing list
>>> [email protected]
>>> To unsubscribe from this list, visit
>>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>>
>> _______________________________________________
>> sumo-user mailing list
>> [email protected]
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>
> _______________________________________________
> sumo-user mailing list
> [email protected]
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
_______________________________________________
sumo-user mailing list
[email protected]
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to