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 public transit mapper #191

Open
Sasha740 opened this issue Jul 12, 2023 · 1 comment
Open

Issue with public transit mapper #191

Sasha740 opened this issue Jul 12, 2023 · 1 comment

Comments

@Sasha740
Copy link

Sasha740 commented Jul 12, 2023

Hello,
I'm using pt2matsim to map network.xml with schedule.xml. I'll try to explain myself as clear as possible.

  1. I downloaded first the .osm map, and using the MATSim to generate the network.xml. After that, I downloaded the GTFS files, executed first the GTFS2Transit to generate both the transit and the vehicles,

  2. Then I want to map network.xml with schedule.xml. I generated the config file with CreateDefaultPtMapperConfig_SZ.xml, and run the following code to generate the final transit and network.
    package Sasha; import org.matsim.pt2matsim.run.PublicTransitMapper; public class Mapper { public static void main(String[] args) { // TODO Auto-generated method stub String[] aa = new String[1]; aa[0] = "src/main/java/Sasha/defaultPTMapperConfig_SZ.xml"; PublicTransitMapper.main(aa); } }

  3. When I run the above code , I got the error
    Exception in thread "Thread-0" java.lang.NoSuchMethodError: org.matsim.core.network.filter.NetworkFilterManager.<init>(Lorg/matsim/api/core/v01/network/Network;)V at org.matsim.pt2matsim.tools.NetworkTools.createFilteredNetworkByLinkMode(NetworkTools.java:228) at org.matsim.pt2matsim.mapping.networkRouter.ScheduleRoutersStandard.load(ScheduleRoutersStandard.java:90) at org.matsim.pt2matsim.mapping.networkRouter.ScheduleRoutersStandard.<init>(ScheduleRoutersStandard.java:60) at org.matsim.pt2matsim.mapping.networkRouter.ScheduleRoutersStandard.<init>(ScheduleRoutersStandard.java:36) at org.matsim.pt2matsim.mapping.networkRouter.ScheduleRoutersStandard$Factory.createInstance(ScheduleRoutersStandard.java:184) at org.matsim.pt2matsim.mapping.PseudoRoutingImpl.run(PseudoRoutingImpl.java:77) at java.base/java.lang.Thread.run(Thread.java:834)

I'll attach the zip of the log file , maybe I messed up in the generation of the config file.

Kind regards,
Sasha Song
log.log

@polettif
Copy link
Contributor

Hard to tell what's going on without the config file. Two things stood out to me:

  • search radius: 30000.0 is too big for link candidates (assuming it's in meters)
  • java.lang.NoSuchMethodError: org.matsim.core.network.filter.NetworkFilterManager.<init>(Lorg/matsim/api/core/v01/network/Network looks to me like some issue with the matsim dependency, it should be matsim 15.0 (as stated pom.xml)

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