Feature Representation

In addition to the generic FME feature attributes that FME Workbench adds to all features (seeAbout Feature Type Attributes), this format adds the format-specific attributes described in this topic.

Attribute Name

Contents

gtfs_type

(read-only)

The type of geometry stored within the feature.

Values:

  • gtfs_point: Used for stops andshapes_points.
  • gtfs_line: Used for shapes only.
  • gtfs_none: All other feature types.

Feature Types

Most feature types correspond directly with the files and schema defined by the specification. Refer to theGTFS Referencefor their definitions. To reduce duplication of documentation, only differences are documented here.

Feature Type

Notes

stops

Thestop_latandstop_loncolumns are not represented as attributes. Instead, they are represented as point geometry on the feature, under the LL84 coordinate system.

shapes

在每一行shapes.txtis not represented as a separate feature. Instead, for eachshape_id, the GTFS reader/writer conveys a single feature with line geometry containing all the points as ordered by theshape_pt_sequencecolumn.

shape_pt_sequenceandshape_dist_traveledare represented as measures on the line, whileshape_pt_latandshape_pt_lonform the vertices.

FME representsshape_pt_sequencevalues as floats. When writing, values are rounded down to an integer. Ifshape_pt_sequencemeasures are not provided, sequential values are automatically written, starting at 0.

Attribute Types

The GTFS Reader/Writer defines the following attribute types.

Note:These attribute types are intended as a guideline or hint so that users can understand what the specification expects for a given attribute.

Attribute Type

Notes

text

Used for most attributes.

date Used for dates in calendar andcalendar_dates.
time Used forarrival_timeanddeparture_timein thestop_timesfeature type.
boolean Used for the day of week flags in the calendar feature type.
float

Used forshape_dist_traveledin thestop_timesfeature type.

The GTFS writer will warn and skip the feature if the attribute value cannot be interpreted as a float.

integer

Used for integer values and attributes that have enumerated values as defined by the specification.

The GTFS writer will warn and skip the feature if the attribute value cannot be interpreted as an integer.