-
Notifications
You must be signed in to change notification settings - Fork 69
Mapping a MATSim schedule to a MATSim network (Public Transit Mapper)
The Public Transit Mapper is run via
org.matsim.pt2matsim.run.PublicTransitMapper
with a config file as input argument.
To map a transit schedule to a MATSim network, a config file for all input parameters is necessary. A default config file can be created via
org.matsim.pt2matsim.run.CreateDefaultPTMapperConfig
The whole schedule is mapped to the network. In cases where only subsets should be used (e.g. for a region), the schedule needs to be filtered beforehand.
The implemented mapping algorithm and the config parameters are explained on a separate wiki page.
If your mapped schedule/network has an unexpectedly high number of artificial links or the public transit network is not in the same area as the road network, make sure that the coordinate system you used is correct. You have to use a projected coordinate system in which one unit in X/Y coordinate is 1 meter. In addition, make sure the network and the unmapped schedule use the same coordinate system.
OSM and GTFS use WGS84 which is a geographic coordinate system with latitude and longitute and thus not suitable for mapping and all subsequent MATSim processes. 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.