Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add read-only vector GTFS (General Transit Feed Specification) driver
- Loading branch information
Showing
10 changed files
with
924 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
.. _vector.gtfs: | ||
|
||
GTFS - General Transit Feed Specification | ||
========================================= | ||
|
||
.. versionadded:: 3.7 | ||
|
||
.. shortname:: GTFS | ||
|
||
.. built_in_by_default:: | ||
|
||
This driver can read a .zip archive containing text files following the GTFS | ||
specification. | ||
|
||
The driver presents layers with their original structure, and: | ||
|
||
- enhances the ``stops`` layer with Point geometries | ||
- enhances the ``trips`` layer with LineString geometries reconstructed by | ||
joining the ``trips`` layer with ``stops`` and ``stop_times`` layers | ||
- expose a ``shapes_geom`` layer, if the optional ``shapes`` is present by | ||
constructing LineString geometries. | ||
|
||
Open syntax | ||
----------- | ||
|
||
The connection name can be: | ||
|
||
- a .zip filename containing GTFS .txt files | ||
- a directory name prefixed with ``GTFS:`` (potentially a | ||
``/vsizip/path/to/the.zip`` filename prefixed with ``GTFS:``) | ||
|
||
Driver capabilities | ||
------------------- | ||
|
||
.. supports_virtualio:: | ||
|
||
|
||
Links | ||
----- | ||
|
||
- `GTFS Wikipedia page <https://en.wikipedia.org/wiki/GTFS>`__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,6 +55,7 @@ Vector drivers | |
gpsbabel | ||
gpx | ||
grass | ||
gtfs | ||
hana | ||
idb | ||
idrisi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
add_gdal_driver( | ||
TARGET ogr_GTFS | ||
SOURCES ogrgtfsdriver.cpp | ||
PLUGIN_CAPABLE NO_DEPS) | ||
gdal_standard_includes(ogr_GTFS) | ||
|
Oops, something went wrong.