From 137f4c1815d8ce7f1987cd0ff01c53c4661e3118 Mon Sep 17 00:00:00 2001 From: Ludee Date: Thu, 6 Dec 2018 18:26:17 +0100 Subject: [PATCH 1/4] add indices for pp mviews --- .../sql_snippets/ego_dp_versioning_mviews.sql | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/dataprocessing/sql_snippets/ego_dp_versioning_mviews.sql b/dataprocessing/sql_snippets/ego_dp_versioning_mviews.sql index 8f39d5a6..58732630 100644 --- a/dataprocessing/sql_snippets/ego_dp_versioning_mviews.sql +++ b/dataprocessing/sql_snippets/ego_dp_versioning_mviews.sql @@ -24,6 +24,15 @@ CREATE MATERIALIZED VIEW supply.ego_dp_conv_powerplant_sq_mview AS ALTER MATERIALIZED VIEW supply.ego_dp_conv_powerplant_sq_mview OWNER TO oeuser; +-- index (id) +CREATE UNIQUE INDEX ego_dp_conv_powerplant_sq_mview_idx + ON supply.ego_dp_conv_powerplant_sq_mview (version,id); + +-- index GIST (geom) +CREATE INDEX ego_dp_conv_powerplant_sq_mview_geom_idx + ON supply.ego_dp_conv_powerplant_sq_mview USING GIST (geom); + + -- MView for NEP 2035 DROP MATERIALIZED VIEW IF EXISTS supply.ego_dp_conv_powerplant_nep2035_mview CASCADE; CREATE MATERIALIZED VIEW supply.ego_dp_conv_powerplant_nep2035_mview AS @@ -116,6 +125,15 @@ CREATE MATERIALIZED VIEW supply.ego_dp_res_powerplant_sq_mview AS ALTER MATERIALIZED VIEW supply.ego_dp_res_powerplant_sq_mview OWNER TO oeuser; +-- index (id) +CREATE UNIQUE INDEX ego_dp_res_powerplant_sq_mview_idx + ON supply.ego_dp_res_powerplant_sq_mview (version,id); + +-- index GIST (geom) +CREATE INDEX ego_dp_res_powerplant_sq_mview_geom_idx + ON supply.ego_dp_res_powerplant_sq_mview USING GIST (geom); + + -- MView for NEP 2035 DROP MATERIALIZED VIEW IF EXISTS supply.ego_dp_res_powerplant_nep2035_mview CASCADE; CREATE MATERIALIZED VIEW supply.ego_dp_res_powerplant_nep2035_mview AS From 716364baf475da11089873f139774a7cdc7ad473 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20Ple=C3=9Fmann?= Date: Mon, 16 Mar 2020 13:49:08 +0100 Subject: [PATCH 2/4] WIP: BKH vg250 BPMN Doku --- .../ego_dp-pre_bpmn_section_bkg-vg250.graphml | 431 ++++++++++++++++++ 1 file changed, 431 insertions(+) create mode 100644 documentation/bpmn/ego_dp-pre_bpmn_section_bkg-vg250.graphml diff --git a/documentation/bpmn/ego_dp-pre_bpmn_section_bkg-vg250.graphml b/documentation/bpmn/ego_dp-pre_bpmn_section_bkg-vg250.graphml new file mode 100644 index 00000000..36896fc3 --- /dev/null +++ b/documentation/bpmn/ego_dp-pre_bpmn_section_bkg-vg250.graphml @@ -0,0 +1,431 @@ + + + + + + + + + + + + + + + + + + + + + + + eGo Pre-Processing - bkg_vg250 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ego_pp_vg250_import.sql + + + + + + + + + + + + + + + + + + boundaries.bkg_vg250_1_sta +boundaries.bkg_vg250_2_lan +boundaries.bkg_vg250_3_rbz +boundaries.bkg_vg250_4_krs +boundaries.bkg_vg250_5_vwg +boundaries.bkg_vg250_6_gem + + + + + + + + + + + + + + + + + ? + + + + + + + + + + + + + + + + + ? + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Geodatenzugangsgesetz (GeoZG) +© GeoBasis-DE / BKG 2016 (Daten verändert) + + + + + + + + + + + + + + + + ego_dp_structure_boundaries_vg250.sql + + + + + + + + + + + + + + + + + + boundaries.bkg_vg250_1_sta +boundaries.bkg_vg250_2_lan +boundaries.bkg_vg250_4_krs +boundaries.bkg_vg250_6_gem +society.destatis_zensus_population_per_ha_mview + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + boundaries.bkg_vg250_1_sta_mview +boundaries.bkg_vg250_1_sta_error_geom_mview +boundaries.bkg_vg250_1_sta_union_mview +boundaries.bkg_vg250_1_sta_bbox_mview +boundaries.bkg_vg250_2_lan_mview +boundaries.bkg_vg250_4_krs_mview +society.destatis_zensus_population_per_ha_mview +boundaries.bkg_vg250_6_gem_mview +boundaries.bkg_vg250_6_gem_error_geom_mview +boundaries.bkg_vg250_6_gem_dump_mview +model_draft.ego_boundaries_bkg_vg250_6_gem_hole_mview +model_draft.ego_boundaries_bkg_vg250_6_gem_clean +boundaries.bkg_vg250_statistics_view + + + + + + + + + + + + + + + + + ? + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 5216863994c6e9cb440ad3254461b1839521e3f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20Ple=C3=9Fmann?= Date: Wed, 18 Mar 2020 20:26:46 +0100 Subject: [PATCH 3/4] Add BPMN documenting BKG vg250 data import and preprocessing --- .../ego_dp-pre_bpmn_section_bkg-vg250.graphml | 68 +++++++++++++++---- 1 file changed, 55 insertions(+), 13 deletions(-) diff --git a/documentation/bpmn/ego_dp-pre_bpmn_section_bkg-vg250.graphml b/documentation/bpmn/ego_dp-pre_bpmn_section_bkg-vg250.graphml index 36896fc3..7d47a0a5 100644 --- a/documentation/bpmn/ego_dp-pre_bpmn_section_bkg-vg250.graphml +++ b/documentation/bpmn/ego_dp-pre_bpmn_section_bkg-vg250.graphml @@ -13,15 +13,15 @@ - + - + - eGo Pre-Processing - bkg_vg250 - + eGo Pre-Processing - bkg_vg250 + @@ -53,7 +53,7 @@ - + @@ -64,7 +64,7 @@ - + @@ -104,10 +104,10 @@ boundaries.bkg_vg250_5_vwg boundaries.bkg_vg250_6_gem + - @@ -135,13 +135,18 @@ boundaries.bkg_vg250_6_gem< - ? + boundaries.bkg_vg250_sta_YYYY-MM-DD +boundaries.bkg_vg250_lan_YYYY-MM-DD +boundaries.bkg_vg250_rbz_YYYY-MM-DD +boundaries.bkg_vg250_krs_YYYY-MM-DD +boundaries.bkg_vg250_vwg_YYYY-MM-DD +boundaries.bkg_vg250_gem_YYYY-MM-DD + - @@ -161,8 +166,8 @@ boundaries.bkg_vg250_6_gem< - + @@ -185,8 +190,8 @@ boundaries.bkg_vg250_6_gem< - + @@ -259,10 +264,10 @@ society.destatis_zensus_population_per_ha_mview + - @@ -288,10 +293,10 @@ model_draft.ego_boundaries_bkg_vg250_6_gem_clean boundaries.bkg_vg250_statistics_view + - @@ -312,6 +317,23 @@ boundaries.bkg_vg250_statistics_view + + + + + + + boundaries.vg250_*_YYYY-MM-DD + + + + + + + + + + @@ -424,6 +446,26 @@ boundaries.bkg_vg250_statistics_view + + + + + + + + + + + + + + + + + + + + From dffcfd805586300cebd99ecf354d171184fc617c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20Ple=C3=9Fmann?= Date: Wed, 18 Mar 2020 20:27:11 +0100 Subject: [PATCH 4/4] Add BPMN for sections of preprocessing --- .../bpmn/ego_dp-pre_bpmn_sections.graphml | 267 ++++++++++++++++++ 1 file changed, 267 insertions(+) create mode 100644 documentation/bpmn/ego_dp-pre_bpmn_sections.graphml diff --git a/documentation/bpmn/ego_dp-pre_bpmn_sections.graphml b/documentation/bpmn/ego_dp-pre_bpmn_sections.graphml new file mode 100644 index 00000000..32514ce6 --- /dev/null +++ b/documentation/bpmn/ego_dp-pre_bpmn_sections.graphml @@ -0,0 +1,267 @@ + + + + + + + + + + + + + + + + + + + + + + + eGo Data-PreProcessing + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + zensus + + + + + + + + + + + + + + + + + + bkg_vg250 + + + + + + + + + + + + + + + + + + boundaries.bkg_vg250_1_sta_union_mview +model_draft.ego_boundaries_bkg_vg250_6_gem_clean +political_boundary.bkg_vg250_4_krs_mview +boundaries.bkg_vg250_6_gem +political_boundary.bkg_vg250_1_sta_union_mview + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +