matsim-org / pt2matsim

Package to create a multi-modal MATSim network and schedule from public transit data (GTFS or HAFAS) and an OSM map of the area.
http://www.ivt.ethz.ch/publikationen/studenten/530.html
GNU General Public License v2.0
48 stars 66 forks source link

Issue with public transit mapper #191

Closed Sasha740 closed 1 week ago

Sasha740 commented 1 year ago

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 _CreateDefaultPtMapperConfigSZ.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 commented 1 year ago

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