Copy performs a basic copy from a reader to a writer.
Copy performs a basic copy from a reader to a writer.
By default, any entity with errors will be skipped and not written to output. This can be ignored with --allow-entity-errors
to ignore simple errors and --allow-reference-errors
to ignore entity relationship errors, such as a reference to a non-existent stop.
transitland copy [flags] <reader> <writer>
% transitland copy --allow-entity-errors "https://www.bart.gov/dev/schedules/google_transit.zip" output.zip
% unzip -p output.zip agency.txt
agency_id,agency_name,agency_url,agency_timezone,agency_lang,agency_phone,agency_fare_url,agency_email
BART,Bay Area Rapid Transit,https://www.bart.gov/,America/Los_Angeles,,510-464-6000,,
--allow-entity-errors Allow entities with errors to be copied
--allow-reference-errors Allow entities with reference errors to be copied
--create Create a basic database schema if none exists
--error-limit int Max number of detailed errors per error group (default 1000)
--ext strings Include GTFS Extension
--fvid int Specify FeedVersionID when writing to a database
-h, --help help for copy
--write-extra-columns Include extra columns in output
--write-extra-files Copy additional files found in source to destination
- transitland - transitland-lib utilities