diff options
| author | Ariel Costas Guerrero <ariel@costas.dev> | 2025-11-14 15:57:34 +0100 |
|---|---|---|
| committer | Ariel Costas Guerrero <ariel@costas.dev> | 2025-11-14 15:57:34 +0100 |
| commit | 52f342f9135264216cdbf3012ea115981d0bc294 (patch) | |
| tree | bbb2e13e3ce277be5407a1dd1b169ee7d12256d1 /src/gtfs_vigo_stops/stop_report.py | |
| parent | 799091e285bf918c4028ade435d9c974e27bb206 (diff) | |
Add Shape extraction from GTFS to new protobufs
Diffstat (limited to 'src/gtfs_vigo_stops/stop_report.py')
| -rw-r--r-- | src/gtfs_vigo_stops/stop_report.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gtfs_vigo_stops/stop_report.py b/src/gtfs_vigo_stops/stop_report.py index ab6bac8..8a36e60 100644 --- a/src/gtfs_vigo_stops/stop_report.py +++ b/src/gtfs_vigo_stops/stop_report.py @@ -6,6 +6,7 @@ import time import traceback from typing import Any, Dict, List +from src.shapes import process_shapes from src.common import get_all_feed_dates from src.download import download_feed_from_url from src.logger import get_logger @@ -339,6 +340,13 @@ def main(): _, stop_summary = process_date(feed_dir, date, output_dir) all_stops_summary[date] = stop_summary + logger.info("Finished processing all dates. Beginning with shape transformation.") + + # Process shapes, converting each coordinate to EPSG:25829 and saving as Protobuf + process_shapes(feed_dir, output_dir) + + logger.info("Finished processing shapes.") + if feed_url: if os.path.exists(feed_dir): shutil.rmtree(feed_dir) |
