From 52f342f9135264216cdbf3012ea115981d0bc294 Mon Sep 17 00:00:00 2001 From: Ariel Costas Guerrero Date: Fri, 14 Nov 2025 15:57:34 +0100 Subject: Add Shape extraction from GTFS to new protobufs --- src/gtfs_vigo_stops/stop_report.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/gtfs_vigo_stops/stop_report.py') 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) -- cgit v1.3