I see error messages when trying to load the ptlines file (which isn't
supported by netedit anway) but I cannot reproduce a crash.
What steps did you take when loading  the file(s) and what menu options did
you use?

Note, that you can "clean up"  your ptline file with the following command:

netconvert -s osm.net.xml --ptstop-files stops.add.xml --ptline-files
ptlines.xml -o net2.net.xml --ptstop-output stops2.add.xml --ptline-output
ptlines2.xml -l log --ignore-errors

regards,
Jakob


Am Mi., 18. Jan. 2023 um 20:30 Uhr schrieb Yunhe Zhao <
[email protected]>:

> Hi Jakob,
> thanks for your reply, I will try it out in the following days.
>
> As for the crash-down problem, when it happens the net editor would close
> itself. And attached you could find the original files. The bus stops are
> not yet fixed so there are errors when they are imported. And the crash
> happens when ptline.xml is imported.
>
> On Tue, 17 Jan 2023 at 18:08, Jakob Erdmann <[email protected]> wrote:
>
>> 1. When you say 'SUMO would crash', do you mean it would quit with an
>> error message or simply stop working? In the latter case this indicates a
>> bug and I'd be happy to receive input files for reproducing the crash).
>>
>> 2. the tool ptlines2flows.py (
>> https://sumo.dlr.de/docs/Tutorials/PT_from_OpenStreetMap.html) which
>> generates the public transport routes and (synthetic) schedules is somewhat
>> robust and should be able to function without the osm-routes. All you need
>> to do is ensure that the busStop objects are correctly placed on your
>> modified map.  Netedit can help you to find the problematic stops:
>>
>> - load your modified and stops public transport stop of the unmodified
>> public transport scenario in netedit (this keeps all the valid stops)
>> - note the error messages about stops that cannot be loaded
>> - manually fix the placement of these stops if they are in the area of
>> interest (if there are lots of stops outside the area of interest it may be
>> worth to filter those out in an automated manner but that's more
>> complicated)
>>
>>
>>
>>
>> Am Di., 17. Jan. 2023 um 17:26 Uhr schrieb Yunhe Zhao <
>> [email protected]>:
>>
>>> Hi SUMO Team,
>>>
>>> Our team was using SUMO to generate a real-life simulation for a city,
>>> so we imported data using the osmWizard first without public transit
>>> info(which could be a mistake). But now we come to the stage where we need
>>> information about public transport.
>>>
>>> The problem is that as we already trimmed down the unwanted part of the
>>> map, and after iterations of network editing(including joining junctions
>>> and connection calibrating, etc.), some of the edges and junction ids are
>>> not the same as we had at the beginning. Now I tried to generate the needed
>>> files according to the documentation using osm data. And as I added these
>>> files to the network, e.g. the ptline XML file where the bus stops and line
>>> information are stored, SUMO would just crash.
>>>
>>> My conjecture of the reason is discrepancies of edge id or
>>> geo-locations. So our question is: would it be possible to import
>>> automatically the public transit information without having to fix the
>>> routes manually?
>>>
>>> Thank you and best regards,
>>> Yunhe
>>>
>>> _______________________________________________
>>> 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