Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with artificial links generated #147

Open
federicobigi opened this issue Jun 17, 2021 · 5 comments
Open

Issue with artificial links generated #147

federicobigi opened this issue Jun 17, 2021 · 5 comments

Comments

@federicobigi
Copy link

Hello,
I'm using pt2matsim. I'll try to explain myself as clear as possible.
I downloaded first the .osm map, and using the MATSim plugin in JOSM I generated the network.xml. After that, I downloaded the GTFS files, executed first the GTFS2Transit to generate both the transit and the vehicles, then I generated the config file with CreateDefaultPtMapperConfig, modified it accordingly in order to generate the final network.
When I finally run the checkmappedscheduleplausability, I saw that the mapper generated around 10k artificial links, even though in the plausability output it could find out the corrected transit route (schedule_TransitRoutes).
I'll attach the zip of the plausability and the config file, maybe I messed up in the generation of the config file.
Kind regards,

Federico Bigi
allPlausibilityWarnings.xlsx
config.txt

@federicobigi
Copy link
Author

Also, I'd like to attach this picture: the circles appears to be the artificial links generated for public transport in general
image

@polettif
Copy link
Contributor

Looks to me like an issue with coordinate systems, there's a note on that in the wiki. Did you convert the schedule to a projected coordinate system?

@federicobigi
Copy link
Author

Hi,
from the wiki, "It's best to look up the EPSG code of a coordinate system that covers your area of interest and use it as a parameter for the network and schedule conversion.". You mean that, given the osm file and the GTFS files, once I go into the GTF2TransitSchedule, instead of setting WGS84 as the third argument I have to put a code of the interested area? Sorry I'm not so practical with topography and transformations.
Kind regards,

Federico

@federicobigi
Copy link
Author

Goodmorning,
I tried as you mentioned. I initially created the map on JOSM, but today I used your tool (CreateDefaultOsmConfig and then, setting inside the parameters, Osm2MultimodalNetwork) to translate the map using a different EPGS code (EPSG:2169). Then, the I translated the GTFS files as well using the GTF2TransitSchedule using the same code as before. Now, I obtained 1k artificial link. Do you think this number of link is the average or am I still missing something?
Kind regards,

Federico

@polettif
Copy link
Contributor

Yes the workflow looks like this:

GTFS (WGS84) -> GtfsTransitSchedule -> MATSim schedule (EPSG:*)  \
                                                                  PTMapper
OSM (WGS84) -> Osm2MultimodalNetwork -> MATSim network (EPSG:*)  /  

both Gtfs2TransitSchedule and Osm2Multimodalnetwork should convert their input data to a projected coordinate system.

I can't tell whether 1k link is ok for your area but it does seem high. It's generally better to just look at the generated network/schedule (in via) and see if the links make sense or if some parts are missing (e.g. railway). I'd focus on that visual analysis first instead of the plausibility check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants