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
-
+
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..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,23 +3,108 @@ meta:
name: Asemakaavan kaavamääräykset
version: "1.0"
templates:
- - name: Simppeli kaavakohde
+ - name: Korttelialue tai korttelialueen osa
group: Osa-alue
- sub_group: Alue
- description: Kaavakohde ilman kikkareita
+ 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
+ feature:
+ 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
+ # sub_group: Alue
+ description: Aluella kuvataan ...
feature:
- layer: land_use_area
+ layer: Aluevaraus
+ # 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
+ # layer: Aluevaraus
attributes:
- attribute: name
- attribute: type_of_underground_id
@@ -35,18 +120,173 @@ 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:
+ - 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
+
+ - name: Yleisten rakennusten alue
+ group: Aluevaraus
+ # sub_group: Alue
+ description: Aluella kuvataan ...
+ feature:
+ layer: Aluevaraus
+ # 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: Aluevaraus
+ # 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: Aluevaraus
+ # 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
feature:
- layer: other_area
+ layer: Aluevaraus
attributes:
- attribute: name
- attribute: type_of_underground_id