Good idea on merging grids!
Here is how it works in principle:

1. netgenerate --grid --grid.number 8 --grid.length 400 -o net.net.xml
--prefix X
2. netconvert -s net.net.xml --geometry.max-segment-length 200
--geometry.split -o net2.net.xml
3. netgenerate --grid --grid.number 8 --grid.length 400 -o net3.net.xml
--prefix Y --default.lanenumber 2 -j traffic_light --offset.x 200
--offset.y 200
4. netconvert -s net3.net.xml --geometry.max-segment-length 200
--geometry.split -o net4.net.xml
5. netconvert -s net2.net.xml,net4.net.xml --junctions.join-same -o
merged.net.xml

Note: steps 2 and 4 ensure that the networks have junctions in the same
place and those junctions are joined in step 5

Am So., 22. Mai 2022 um 14:22 Uhr schrieb Manish Chaturvedi <
[email protected]>:

> Dear Jacob, thanks a lot for your help.
> As per your suggestion, I explored netedit and in the documentation It is
> mentioned that netedit can do anything that netconvert does.
> Accordingly, I tried to create multiple grid networks (a higher speed TL
> controlled network, and two lower speed unregulated networks with x,y
> displacement) and merge them using netconvert. However, few edges and
> junctions overlap. Is there any option to  keep only one  edge/junction of
> the overlapping ones?
> Or the manual approach as suggested by you in the earlier email would be
> better?  In that case, what is the selection file template? Please help.
>
> Regards,
>
> Manish
>
>
> On Sat, May 21, 2022 at 5:02 PM Jakob Erdmann <[email protected]>
> wrote:
>
>> build a grid with netgenerate, then use netedit to select some of the
>> edges and change all of their attributes at once.
>> If the network is large you could even prepare a selection file outside
>> of netedit and then just load that selection to avoid the need for
>> selection-by-clicking
>>
>> Am Sa., 21. Mai 2022 um 09:00 Uhr schrieb Manish Chaturvedi <
>> [email protected]>:
>>
>>> Dear Jacob, thanks a lot for your reply.
>>>
>>> Actually, I do not want to randomize the number of lanes or TL
>>> deployment in grid network.
>>>
>>> Instead, I need a grid in which the parallel roads have different
>>> configuration: e.g. a Major roads (3 Lane, TL controlled, higher speed) and
>>> the parallel low capacity road (e.g. 2 lanes, unregulated, lower speed).
>>>
>>> Is it possible to do this using netgenerate? Can you suggest some
>>> alternatives?
>>>
>>> Regards,
>>>
>>> Manish
>>>
>>>
>>> On Fri, May 20, 2022 at 6:13 PM Jakob Erdmann <[email protected]>
>>> wrote:
>>>
>>>> 1. you can randomize number of lanes (for all network types) by setting
>>>> options
>>>> --default.lanenumber MAXNUM --rand.random-lanenumber
>>>>
>>>> The latest development version also supports option --random-type
>>>> (together with option --type-files)
>>>>
>>>> 2. You can use option --tls.guess --tls.guess.threshold FLOAT. This
>>>> uses the sum of incoming lane speeds to decide whether an intersection gets
>>>> a tls or not. Together with random lane numbers or speeds (via random
>>>> types) you will get random traffic lights.
>>>>
>>>> regards,
>>>> Jakob
>>>>
>>>> Am Fr., 20. Mai 2022 um 13:37 Uhr schrieb Manish Chaturvedi <
>>>> [email protected]>:
>>>>
>>>>> Dear SUMO users,
>>>>>
>>>>> 1) I am trying to design a Grid network which should have  two-three
>>>>> different types of edges  (having  different properties e.g. number of
>>>>> lanes and speed limit).
>>>>>
>>>>> I checked the template file of netgenerate but did not find any option
>>>>> for the customization. I encountered a link about  Edge type but I have no
>>>>> Idea whether it can be used with netgenerate.
>>>>>
>>>>> Please suggest a way out for this.
>>>>>
>>>>>
>>>>> 2) In the Grid network, I want a few main junctions to be TL
>>>>> controlled, and others should be uncontrolled/unregulated.
>>>>>
>>>>> In the template file, I found the tag <unregulated_nodes>
>>>>> with <keep-nodes-unregulated.explicit value="STR[]"> . I do not understand
>>>>> how to use this feature  to declare a few junctions as Unregulated (How 
>>>>> can
>>>>> I know the junction IDs before the network is created?). Am I missing
>>>>> something? Please suggest.
>>>>>
>>>>> Best Regards,
>>>>>
>>>>> Manish
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> 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
>>
> _______________________________________________
> 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