I need to convert a Shapefile (.shp), shx or dbf to GTFS (General Transit Feed Specification https://developers.google.com/transit/gtfs/reference).
Do you know any tool for this issue?
I need to convert a Shapefile (.shp), shx or dbf to GTFS (General Transit Feed Specification https://developers.google.com/transit/gtfs/reference).
Do you know any tool for this issue?
I'd do it using Python. It's going to be custom, I reckon.
There's a shapefile reading library: https://code.google.com/p/pyshp/
And you're writing CSVs. Doing it with Python means it's repeatable too!
Safe Software's FME Version 2016 can read Shapefiles (among numerous other formats) and write GTFS etc.
You are welcome to evaluate FME and make use of our support to see if this solution is suitable.
Disclosure: I am the European Services Manager for Safe Software Inc
ArcGIS Pro 2.2 introduces a Features To GTFS Stops tool which:
Converts a feature class to a GTFS stops.txt file for a GTFS public transit dataset.
Note that:
A file geodatabase feature class is recommended for tool input instead of a shapefile because some field names allowed by the GTFS specification are longer than the maximum of 10 characters allowed for shapefile field names.