From 25b8b36cd4ba3217c234e8dc290550f07aa355ca Mon Sep 17 00:00:00 2001 From: Niko Aarnio Date: Wed, 30 Oct 2024 12:38:01 +0200 Subject: [PATCH 1/5] remove header from tree view --- arho_feature_template/gui/template_dock.ui | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/arho_feature_template/gui/template_dock.ui b/arho_feature_template/gui/template_dock.ui index e3452df..344fc78 100644 --- a/arho_feature_template/gui/template_dock.ui +++ b/arho_feature_template/gui/template_dock.ui @@ -40,7 +40,11 @@ - + + + false + + @@ -56,7 +60,7 @@ QgsFilterLineEdit QLineEdit -
qgis.gui
+
qgsfilterlineedit.h
From 317cb75d6b4de54e04ea5d1a513fe7a2eefc16f6 Mon Sep 17 00:00:00 2001 From: Niko Aarnio Date: Wed, 30 Oct 2024 12:45:48 +0200 Subject: [PATCH 2/5] add a few example templates for land use areas --- .../template_libraries/asemakaava-sample.yaml | 81 ------- .../ryhmitelty-asemakaava-sample.yaml | 198 +++++++++++++++++- 2 files changed, 195 insertions(+), 84 deletions(-) delete mode 100644 arho_feature_template/resources/template_libraries/asemakaava-sample.yaml diff --git a/arho_feature_template/resources/template_libraries/asemakaava-sample.yaml b/arho_feature_template/resources/template_libraries/asemakaava-sample.yaml deleted file mode 100644 index b6cf67f..0000000 --- a/arho_feature_template/resources/template_libraries/asemakaava-sample.yaml +++ /dev/null @@ -1,81 +0,0 @@ -version: 1 -meta: - name: Asemakaavan kaavamääräykset - version: "1.0" -templates: - - name: Simppeli kaavakohde - description: Kaavakohde ilman kikkareita - feature: - layer: land_use_area - # layer: Aluevaraus - attributes: - - attribute: name - - attribute: type_of_underground_id - default: 1 - - name: Asuin-, liike- ja toimistorakennusten alue - description: Aluella kuvataan ... - feature: - layer: land_use_area - # layer: Aluevaraus - attributes: - - attribute: name - - attribute: type_of_underground_id - default: 1 - child_features: - - layer: plan_requlation_group - attributes: - - attribute: name - default: Asuin-, liike- ja toimistorakennusten alue - allow_user_input: false - child_features: - - layer: plan_requlation - attributes: - - attribute: type_of_plan_regulation_id - default: asumisenAlue - description: Asumisen alue - hidden: true - child_features: - - layer: additional_information_of_plan_regulation - attributes: - - attribute: type_of_additional_information_id - default: paakayttotarkoitus - description: Pääkäyttötarkoitus - hidden: true - - layer: plan_requlation - attributes: - - attribute: type_of_plan_regulation_id - default: liikerakennustenAlue - description: Liikerakennusten alue - hidden: true - child_features: - - layer: additional_information_of_plan_regulation - attributes: - - attribute: type_of_additional_information_id - default: paakayttotarkoitus - description: Pääkäyttötarkoitus - hidden: true - - layer: plan_requlation - attributes: - - attribute: type_of_plan_regulation_id - default: toimitilojenAlue - description: Toimitilojen alue - hidden: true - child_features: - - layer: additional_information_of_plan_regulation - attributes: - - attribute: type_of_additional_information_id - default: paakayttotarkoitus - description: Pääkäyttötarkoitus - hidden: true - - layer: plan_requlation_group - attributes: - - attribute: name - default: Korttelin numero - allow_user_input: false - child_features: - - layer: plan_requlation - attributes: - - attribute: type_of_plan_regulation_id - default: korttelinNumero - description: Korttelin numero - - attribute: numeric_default diff --git a/arho_feature_template/resources/template_libraries/ryhmitelty-asemakaava-sample.yaml b/arho_feature_template/resources/template_libraries/ryhmitelty-asemakaava-sample.yaml index d2c59f4..76ccaa9 100644 --- a/arho_feature_template/resources/template_libraries/ryhmitelty-asemakaava-sample.yaml +++ b/arho_feature_template/resources/template_libraries/ryhmitelty-asemakaava-sample.yaml @@ -5,7 +5,7 @@ meta: templates: - name: Simppeli kaavakohde group: Osa-alue - sub_group: Alue + # sub_group: Alue description: Kaavakohde ilman kikkareita feature: layer: land_use_area @@ -14,12 +14,56 @@ templates: - attribute: type_of_underground_id default: 1 + - name: Asuinrakennusten alue + group: Aluevaraus + # sub_group: Alue + description: Aluella kuvataan ... + feature: + layer: land_use_area + # layer: Aluevaraus + attributes: + - attribute: name + - attribute: type_of_underground_id + default: 1 + child_features: + - layer: plan_requlation_group + attributes: + - attribute: name + default: Asuinrakennusten alue + allow_user_input: false + child_features: + - layer: plan_requlation + attributes: + - attribute: type_of_plan_regulation_id + default: asumisenAlue + description: Asumisen alue + hidden: true + child_features: + - layer: additional_information_of_plan_regulation + attributes: + - attribute: type_of_additional_information_id + default: paakayttotarkoitus + description: Pääkäyttötarkoitus + hidden: true + - layer: plan_requlation_group + attributes: + - attribute: name + default: Korttelin numero + allow_user_input: false + child_features: + - layer: plan_requlation + attributes: + - attribute: type_of_plan_regulation_id + default: korttelinNumero + - attribute: numeric_default + - name: Asuin-, liike- ja toimistorakennusten alue group: Aluevaraus - sub_group: Alue - description: Alueella kuvataan ... + # sub_group: Alue + description: Aluella kuvataan ... feature: layer: land_use_area + # layer: Aluevaraus attributes: - attribute: name - attribute: type_of_underground_id @@ -42,6 +86,154 @@ templates: - attribute: type_of_additional_information_id default: paakayttotarkoitus hidden: true + - layer: plan_requlation + attributes: + - attribute: type_of_plan_regulation_id + default: liikerakennustenAlue + hidden: true + child_features: + - layer: additional_information_of_plan_regulation + attributes: + - attribute: type_of_additional_information_id + default: paakayttotarkoitus + hidden: true + - layer: plan_requlation + attributes: + - attribute: type_of_plan_regulation_id + default: toimitilojenAlue + hidden: true + child_features: + - layer: additional_information_of_plan_regulation + attributes: + - attribute: type_of_additional_information_id + default: paakayttotarkoitus + hidden: true + - layer: plan_requlation_group + attributes: + - attribute: name + default: Korttelin numero + allow_user_input: false + child_features: + - layer: plan_requlation + attributes: + - attribute: type_of_plan_regulation_id + default: korttelinNumero + - attribute: numeric_default + + - name: Yleisten rakennusten alue + group: Aluevaraus + # sub_group: Alue + description: Aluella kuvataan ... + feature: + layer: land_use_area + # layer: Aluevaraus + attributes: + - attribute: name + - attribute: type_of_underground_id + default: 1 + child_features: + - layer: plan_requlation_group + attributes: + - attribute: name + default: Yleisten rakennusten alue + allow_user_input: false + child_features: + - layer: plan_requlation + attributes: + - attribute: type_of_plan_regulation_id + default: asumisenAlue + description: Yleisten rakennusten alue + hidden: true + child_features: + - layer: additional_information_of_plan_regulation + attributes: + - attribute: type_of_additional_information_id + default: paakayttotarkoitus + description: Pääkäyttötarkoitus + hidden: true + - layer: additional_information_of_plan_regulation + attributes: + - attribute: type_of_additional_information_id + default: + description: Varattu yleiseen käyttöön + hidden: true + + - name: Teollisuus- ja varastorakennusten alue + group: Aluevaraus + # sub_group: Alue + description: Aluella kuvataan ... + feature: + layer: land_use_area + # layer: Aluevaraus + attributes: + - attribute: name + - attribute: type_of_underground_id + default: 1 + child_features: + - layer: plan_requlation_group + attributes: + - attribute: name + default: Teollisuusalue + allow_user_input: false + child_features: + - layer: plan_requlation + attributes: + - attribute: type_of_plan_regulation_id + default: teollisuusAlue + description: Teollisuusalue + hidden: true + child_features: + - layer: additional_information_of_plan_regulation + attributes: + - attribute: type_of_additional_information_id + default: paakayttotarkoitus + description: Pääkäyttötarkoitus + hidden: true + - layer: plan_requlation + attributes: + - attribute: type_of_plan_regulation_id + default: varastoAlue + description: Varastoalue + hidden: true + child_features: + - layer: additional_information_of_plan_regulation + attributes: + - attribute: type_of_additional_information_id + default: paakayttotarkoitus + description: Pääkäyttötarkoitus + hidden: true + + - name: Virkistysalue + group: Aluevaraus + # sub_group: Alue + description: Aluella kuvataan ... + feature: + layer: land_use_area + # layer: Aluevaraus + attributes: + - attribute: name + - attribute: type_of_underground_id + default: 1 + child_features: + - layer: plan_requlation_group + attributes: + - attribute: name + default: Virkistysalue + allow_user_input: false + child_features: + - layer: plan_requlation + attributes: + - attribute: type_of_plan_regulation_id + default: virkistysAlue + description: Virkistysalue + hidden: true + child_features: + - layer: additional_information_of_plan_regulation + attributes: + - attribute: type_of_additional_information_id + default: paakayttotarkoitus + description: Pääkäyttötarkoitus + hidden: true - name: Ryhmätön simppeli kaavakohde description: Kaavakohde ilman kikkareita From 67420c684b815f5f63b29b51e156de1aa32d0754 Mon Sep 17 00:00:00 2001 From: Niko Aarnio Date: Wed, 30 Oct 2024 13:31:26 +0200 Subject: [PATCH 3/5] add missing descriptions to config --- .../template_libraries/ryhmitelty-asemakaava-sample.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arho_feature_template/resources/template_libraries/ryhmitelty-asemakaava-sample.yaml b/arho_feature_template/resources/template_libraries/ryhmitelty-asemakaava-sample.yaml index 76ccaa9..067ee14 100644 --- a/arho_feature_template/resources/template_libraries/ryhmitelty-asemakaava-sample.yaml +++ b/arho_feature_template/resources/template_libraries/ryhmitelty-asemakaava-sample.yaml @@ -79,34 +79,40 @@ templates: attributes: - attribute: type_of_plan_regulation_id default: asumisenAlue + description: Asumisen alue hidden: true child_features: - layer: additional_information_of_plan_regulation attributes: - attribute: type_of_additional_information_id default: paakayttotarkoitus + description: Pääkäyttötarkoitus hidden: true - layer: plan_requlation attributes: - attribute: type_of_plan_regulation_id default: liikerakennustenAlue + description: Liikerakennusten alue hidden: true child_features: - layer: additional_information_of_plan_regulation attributes: - attribute: type_of_additional_information_id default: paakayttotarkoitus + description: Pääkäyttötarkoitus hidden: true - layer: plan_requlation attributes: - attribute: type_of_plan_regulation_id default: toimitilojenAlue + description: Toimitilojen alue hidden: true child_features: - layer: additional_information_of_plan_regulation attributes: - attribute: type_of_additional_information_id default: paakayttotarkoitus + description: Pääkäyttötarkoitus hidden: true - layer: plan_requlation_group attributes: @@ -118,6 +124,7 @@ templates: attributes: - attribute: type_of_plan_regulation_id default: korttelinNumero + description: Korttelin numero - attribute: numeric_default - name: Yleisten rakennusten alue From 984777cd2f2437a7b26a28395aee783c87bb2f2b Mon Sep 17 00:00:00 2001 From: Lauri Kajan Date: Wed, 30 Oct 2024 14:10:29 +0200 Subject: [PATCH 4/5] Change to used layer names --- .../ryhmitelty-asemakaava-sample.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arho_feature_template/resources/template_libraries/ryhmitelty-asemakaava-sample.yaml b/arho_feature_template/resources/template_libraries/ryhmitelty-asemakaava-sample.yaml index 067ee14..5f667df 100644 --- a/arho_feature_template/resources/template_libraries/ryhmitelty-asemakaava-sample.yaml +++ b/arho_feature_template/resources/template_libraries/ryhmitelty-asemakaava-sample.yaml @@ -19,7 +19,7 @@ templates: # sub_group: Alue description: Aluella kuvataan ... feature: - layer: land_use_area + layer: Aluevaraus # layer: Aluevaraus attributes: - attribute: name @@ -62,7 +62,7 @@ templates: # sub_group: Alue description: Aluella kuvataan ... feature: - layer: land_use_area + layer: Aluevaraus # layer: Aluevaraus attributes: - attribute: name @@ -132,7 +132,7 @@ templates: # sub_group: Alue description: Aluella kuvataan ... feature: - layer: land_use_area + layer: Aluevaraus # layer: Aluevaraus attributes: - attribute: name @@ -170,7 +170,7 @@ templates: # sub_group: Alue description: Aluella kuvataan ... feature: - layer: land_use_area + layer: Aluevaraus # layer: Aluevaraus attributes: - attribute: name @@ -215,7 +215,7 @@ templates: # sub_group: Alue description: Aluella kuvataan ... feature: - layer: land_use_area + layer: Aluevaraus # layer: Aluevaraus attributes: - attribute: name @@ -245,7 +245,7 @@ templates: - name: Ryhmätön simppeli kaavakohde description: Kaavakohde ilman kikkareita feature: - layer: other_area + layer: Aluevaraus attributes: - attribute: name - attribute: type_of_underground_id From f1cfa29f178dc3d0f3d8b046b425105c621d43dd Mon Sep 17 00:00:00 2001 From: Lauri Kajan Date: Wed, 30 Oct 2024 14:11:28 +0200 Subject: [PATCH 5/5] Add few osa-alue --- .../ryhmitelty-asemakaava-sample.yaml | 49 +++++++++++++++++-- 1 file changed, 45 insertions(+), 4 deletions(-) diff --git a/arho_feature_template/resources/template_libraries/ryhmitelty-asemakaava-sample.yaml b/arho_feature_template/resources/template_libraries/ryhmitelty-asemakaava-sample.yaml index 5f667df..33ec14d 100644 --- a/arho_feature_template/resources/template_libraries/ryhmitelty-asemakaava-sample.yaml +++ b/arho_feature_template/resources/template_libraries/ryhmitelty-asemakaava-sample.yaml @@ -3,16 +3,57 @@ meta: name: Asemakaavan kaavamääräykset version: "1.0" templates: - - name: Simppeli kaavakohde + - name: Korttelialue tai korttelialueen osa + group: Osa-alue + description: Korttelialue + feature: + layer: Osa-alue + attributes: + - attribute: name + - attribute: type_of_underground_id + default: 1 + child_features: + - layer: plan_requlation_group + attributes: + - attribute: name + default: Korttelin numero + child_features: + - layer: plan_requlation + attributes: + - attribute: type_of_plan_regulation_id + default: korttelinNumero + description: korttelin numero + - attribute: numeric_default + + - name: Sitovan tonttijaon mukainen tontti + group: Osa-alue + feature: + layer: Osa-alue + attributes: + - attribute: name + - attribute: type_of_underground_id + default: 1 + + - name: Rakennusala group: Osa-alue - # sub_group: Alue - description: Kaavakohde ilman kikkareita feature: - layer: land_use_area + layer: Osa-alue attributes: - attribute: name - attribute: type_of_underground_id default: 1 + child_features: + - layer: plan_requlation_group + attributes: + - attribute: name + default: Tehokkuusluku + child_features: + - layer: plan_requlation + attributes: + - attribute: type_of_plan_regulation_id + default: tehokkuusluku + description: Tehokkuusluku + - attribute: numeric_default - name: Asuinrakennusten alue group: Aluevaraus