Load GTFS as GPKG with GDAL 3.7
✓ Published0🌍 Public
TThomasG77
Last edited Jun 28, 2023
Created on Jun 28, 2023
This example demonstrates converting an IDFM GTFS transit feed into a GeoPackage database using GDAL’s new GTFS driver. The Bash script first checks that GDAL 3.7 is installed, then uses `ogrinfo` with `-json` to list all available layers. For each layer, it runs `ogr2ogr` with the GeoPackage format, appending layers incrementally with the `-update` flag. The source data is loaded directly from a URL via `/vsicurl/`, and the script allows customizing input and output names through environment variables.
AI-generated description