GTFS Shapes To Features (Public Transit Tools)
Summary
Converts a GTFS shapes.txt file from a GTFS public transit dataset to a polyline feature class showing the physical paths taken by vehicles in the public transit system.
If possible, attributes from the routes.txt file are included for each shape in the output, and output lines are symbolized according to the color specified in the route_color field.
The shapes.txt file contains sequences of latitude and longitude points. This tool generates shape polylines by connecting these sequences of points with straight lines.
Note:
The GTFS Shapes To Features tool and the Generate Shapes Features From GTFS tool are used for different purposes. Use GTFS Shapes To Features if your GTFS dataset includes an existing shapes.txt file and you want to convert these shapes to a feature class to display in the map. Use Generate Shapes Features From GTFS if your GTFS dataset does not include an existing shapes.txt file and you want to estimate the shapes based on the other information contained in the GTFS dataset and create a shapes.txt file.
Usage
Route attributes will be populated only if valid
trips.txtandroutes.txtfiles are located in the same folder as the inputshapes.txtfile.A file geodatabase feature class is recommended for tool output instead of a shapefile. Because shapefile field names can have a maximum of only 10 characters, longer GTFS field names will be shortened if the output table is a shapefile.
Route attributes are populated for each shape using the following process: For each
shape_idin theshapes.txtfile, the tool checks thetrips.txtfile to find the trips with thisshape_idand finds theroute_idassociated with these trips. The tool then retrieves the attributes for thatroute_idfrom theroutes.txtfile and puts these attributes in the output feature class of shapes. In the unusual case that more than oneroute_idis associated with a givenshape_id, the shape will be duplicated in the output feature class so that there is one feature for each uniqueshape_idandroute_idpair.
Parameters
| Label | Explanation | Data type |
|---|---|---|
|
Input GTFS Shapes File |
A valid |
File |
|
Output Feature Class |
The output feature class. |
Feature Class |
Environments
Licensing information
- Basic: Yes
- Standard: Yes
- Advanced: Yes