From 8cbb3cd84bc848b3aa845ba42db5784314313fcb Mon Sep 17 00:00:00 2001 From: Mateusz Konieczny Date: Wed, 5 Oct 2022 19:52:14 +0200 Subject: [PATCH] Display official planning data. --- app/map_styles/polygon.xml | 22 ++++ app/src/api/controllers/buildingController.ts | 18 +++ app/src/api/routes/buildingsRouter.ts | 1 + app/src/api/services/building/base.ts | 1 + app/src/api/services/building/planningData.ts | 16 +++ .../frontend/api-data/use-building-data.ts | 6 +- .../data-components/planning-data-entry.tsx | 87 ++++++++++++++ .../building/data-containers/planning.tsx | 7 +- app/src/frontend/components/info-box.tsx | 2 +- .../frontend/config/category-maps-config.ts | 16 ++- app/src/frontend/config/data-fields-config.ts | 8 ++ app/src/frontend/config/tileserver-config.ts | 1 + app/src/frontendRoute.tsx | 7 +- app/src/tiles/dataDefinition.ts | 5 + etl/planning_data/.gitignore | 2 + etl/planning_data/README.MD | 33 ++++++ etl/planning_data/load_into_database.py | 109 ++++++++++++++++++ etl/planning_data/make_query.py | 55 +++++++++ etl/planning_data/obtain_livestream_data.py | 87 ++++++++++++++ .../033.planning_livestream_data.down.sql | 1 + .../033.planning_livestream_data.up.sql | 15 +++ 21 files changed, 491 insertions(+), 8 deletions(-) create mode 100644 app/src/api/services/building/planningData.ts create mode 100644 app/src/frontend/building/data-components/planning-data-entry.tsx create mode 100644 etl/planning_data/.gitignore create mode 100644 etl/planning_data/README.MD create mode 100644 etl/planning_data/load_into_database.py create mode 100644 etl/planning_data/make_query.py create mode 100644 etl/planning_data/obtain_livestream_data.py create mode 100644 migrations/033.planning_livestream_data.down.sql create mode 100644 migrations/033.planning_livestream_data.up.sql diff --git a/app/map_styles/polygon.xml b/app/map_styles/polygon.xml index f6f3fd60..874fa97a 100644 --- a/app/map_styles/polygon.xml +++ b/app/map_styles/polygon.xml @@ -313,6 +313,28 @@ +