matsim-org / matsim-code-examples

A repository containing code examples around MATSim
GNU General Public License v3.0
83 stars 179 forks source link

Converting EMME/4 network and creating transit vehicle files with multiple transit vehicle type. #525

Open mashrur93 opened 3 years ago

mashrur93 commented 3 years ago

Hi. I am a beginner in using MATSIM.

  1. I have an EMME network of the city, extracted from EMME/4 on which I intend to work on. I found in the book mentioning an already developed javascript on this location. https://github.com/matsim-org/matsim-code-examples/find/11.x Butt I could not trace the javascript there. I will highly appreciate it, I can be directed to that file location.

  2. Where can I input different types of transit vehicles to create the vehicle file for transit modeling. Right now, I keep getting the "default transit vehicle type" for all the public transit types.

I will highly appreciate any guidance in this regard. Thanks.

mrieser commented 3 years ago

I found an older version in the 0.10.x-branch: https://github.com/matsim-org/matsim-code-examples/blob/0.10.x/src/main/java/tutorial/converter/networkFromEmme/RunNetworkEmme2MatsimExample.java.

You might have to adapt it a bit, either because the EMME format changed or the MATSim API changed. But it should be a good starting point to convert your network.

Not sure why it is not available anymore in the 11.x.

mashrur93 commented 3 years ago

thanks Dr. Rieser.

kainagel commented 3 years ago

Don't know why it got lost. I just re-added it to 13.x.

mashrur93 commented 3 years ago

Thanks a lot Dr. Nagel. I have another query: Can the current version process the shapefile to build the matsim network? Currently, the output file for the network from EMME/4 is in shape format.

mrieser commented 3 years ago

The current code is for EMME/3 or even EMME/2, as far as I remember, which was a text-based file format. So the provided code will not be able to convert the EMME/4 file in shape format.