Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] issue with cutRoutes.py and TAZ

Dear all,

when I use cutRoutes.py to extract sub-routes for my subnetwork, I face an issue with TAZ definitions. My original routes are obtained from MAROUTER (TAZs are defined as well). when I apply cutRoutes.py the original 'fromTaz' and 'toTaz' are written in the output file. The problem is that the subnetwork doesn't cover all of the original TAZs and by running SUMO it either expects the TAZs to exist or to be defined. If I load my original TAZ file some of the edges in the original TAZ do not exist in the subnetwork. If I use the subnetwork TAZ, some of the TAZ ids from the original network are missing. Either way, I cannot run SUMO. 
I tried with sumolib to remove the attribute but the function is not offered, it can only set the value for an attribute. For now, I just replaced all TAZ IDs with one that I know it exists in the subnetwork.
It would be nice if cutRoute.py can also replace the 'fromTaz' and  'toTaz' attributes with those of the subnetwork. Or extend the option --ignore-route-errors to ignore TAZ if route is defined as a list of edges. 

Thanks,
Sasan

Back to the top