GithubHelp home page GithubHelp logo

gtfs_sql_importer's People

Contributors

atogle avatar cbick avatar jjlin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gtfs_sql_importer's Issues

Error in use of agency_id

Able to set up tables but fails to populate when it hits errors with agency_id:
ERROR: column "agency_id" of relation "gtfs_agency" does not exist

Tried with different feeds with and without an agency_id and some work while others dont. SEPTA has no agency_id and worked, MTA Maryland had a 1 and worked. Arlington had a 1 and failed. TriMet had nothing and failed.

To sqlite?

Hi,
I was wondering how much change would it require from this code to import it to SQLite instead of SQL. (I don't know much about DBMS structures)

Thanks

Not recognizing stop_id

GTFS feeds are running into errors about stop_id even when the stop_id is coded properly in the files.

No errors listed earlier in this log about gtfs_stops table.

ERROR:  column "stop_id" of relation "gtfs_stops" does not exist
invalid command \.
ERROR:  syntax error at or near "83"
LINE 1: 83|51001|Ballston Metro, Fairfax Dr, EB @ N Stafford St, NS|...
        ^
invalid command \.
ERROR:  syntax error at or near "1"
LINE 1: 1_41|1|41|Columbia Pike-Ballston-Court House|3|http://realti...
        ^
invalid command \.
ERROR:  syntax error at or near "1"
LINE 1: 1|0|0|0|0|0|1|0|20120423|20131231
        ^
invalid command \.
ERROR:  syntax error at or near "1"
LINE 1: 1|20121008|1
        ^
invalid command \.
ERROR:  current transaction is aborted, commands ignored until end of transaction block
ERROR:  current transaction is aborted, commands ignored until end of transaction block

Trailing white space causing syntax errors

Using the current BART gtfs (http://bart.gov/dev/schedules/google_transit.zip), it happens to have two trailing white space lines in the stops table and the transfers table which causes script to stop uploading tables beyond there. When I deleted the white space it fixed the problem. I don't think most feeds have these trailing spaces, but maybe the program should end at the last full line.

These errors go away when the whitespace is deleted and the program is re-run...

BEGIN
ERROR:  missing data for column "stop_name"
CONTEXT:  COPY gtfs_stops, line 48: ""
ERROR:  current transaction is aborted, commands ignored until end of transaction block
invalid command \.
ERROR:  syntax error at or near "AirBART"
LINE 1: AirBART|AirBART|NULL|SHUTTLE|NULL|3|http://www.bart.gov/guid...
        ^
invalid command \.
ERROR:  syntax error at or near "WKDY"
LINE 1: WKDY|1|1|1|1|1|0|0|20120701|20140101
        ^
invalid command \.
ERROR:  syntax error at or near "SAT"
LINE 1: SAT|20120116|1
        ^
...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.