conveyal / gtfs-editor

A web-based GTFS editing framework. THIS PROJECT IS DEPRECATED. See https://github.com/ibi-group/datatools-ui for current version.
https://github.com/ibi-group/datatools-ui
MIT License
134 stars 63 forks source link

GTFS Upload skips all files after zip file is edited #232

Closed dcunited001 closed 1 year ago

dcunited001 commented 9 years ago

So I'm trying to upload the data for my local transit system and the upload fails when I import the zip file published here. I'm of errors stating that ID's for stops and stop_times couldn't be found. So it errors out.

So I wanted to test that the format was correct. I unzipped the file, made a few edits, rezipped and uploaded. No major changes, but now it skips the feed_info and every file, saying there's no tables and 0 records are uploaded. I tried unzipping and rezipping with no changes and same thing.

I'm new to the Play framework and I'm having a hard time tracking down the GTFSFeed.java file. I can't find it or the class anywhere. What am I doing wrong here?

dcunited001 commented 9 years ago

nvm, i downloaded the gtfs-lib repo and i'm looking through the code to figure out why GTFSFeed isn't reading the files in the zip. i'm trying to find a way to debug the play framework via intellij to track down the problems.

dcunited001 commented 9 years ago

K, the file index was incorrect, so now i can make modifications to the zip file to test how it affects parsing.

i'm still having problems getting some of the CSV files to parse. I tried uploading the GTFS file for Annapolis and this one works fine. But our GTFS file has problems on the stop_id and trip_id for stops.txt, stop_times.txt and trips.txt. I'm debugging GTFS-editor and it just reads null values for these columns.

dcunited001 commented 9 years ago

I think it's a UTF Byte Order Mark issue. However, I'm not sure how to the updated version of GTFS-lib into the project.

https://github.com/conveyal/gtfs-lib/issues/1