Skip to content

Commit

Permalink
Fix qml files for QGIS 3.16
Browse files Browse the repository at this point in the history
  • Loading branch information
marioba committed Mar 22, 2023
1 parent 964f137 commit 3cb3f32
Show file tree
Hide file tree
Showing 2 changed files with 492 additions and 614 deletions.
239 changes: 95 additions & 144 deletions pzp/qml/area.qml
Original file line number Diff line number Diff line change
@@ -1,105 +1,77 @@
<!DOCTYPE qgis PUBLIC 'http://mrcc.com/qgis.dtd' 'SYSTEM'>
<qgis version="3.28.2-Firenze" styleCategories="Symbology|Fields|Forms">
<renderer-v2 enableorderby="0" symbollevels="0" forceraster="0" type="singleSymbol" referencescale="-1">
<qgis version="3.16.16-Hannover" styleCategories="Symbology|Fields|Forms">
<renderer-v2 type="singleSymbol" symbollevels="0" enableorderby="0" forceraster="0">
<symbols>
<symbol is_animated="0" clip_to_extent="1" name="0" frame_rate="10" alpha="1" force_rhr="0" type="fill">
<data_defined_properties>
<Option type="Map">
<Option name="name" value="" type="QString"/>
<Option name="properties"/>
<Option name="type" value="collection" type="QString"/>
</Option>
</data_defined_properties>
<layer class="SimpleFill" pass="0" locked="0" enabled="1">
<Option type="Map">
<Option name="border_width_map_unit_scale" value="3x:0,0,0,0,0,0" type="QString"/>
<Option name="color" value="236,245,57,0" type="QString"/>
<Option name="joinstyle" value="bevel" type="QString"/>
<Option name="offset" value="0,0" type="QString"/>
<Option name="offset_map_unit_scale" value="3x:0,0,0,0,0,0" type="QString"/>
<Option name="offset_unit" value="MM" type="QString"/>
<Option name="outline_color" value="31,120,250,255" type="QString"/>
<Option name="outline_style" value="solid" type="QString"/>
<Option name="outline_width" value="0.46" type="QString"/>
<Option name="outline_width_unit" value="MM" type="QString"/>
<Option name="style" value="solid" type="QString"/>
</Option>
<symbol type="fill" force_rhr="0" name="0" clip_to_extent="1" alpha="1">
<layer locked="0" pass="0" class="SimpleFill" enabled="1">
<prop k="border_width_map_unit_scale" v="3x:0,0,0,0,0,0"/>
<prop k="color" v="0,0,255,0"/>
<prop k="joinstyle" v="bevel"/>
<prop k="offset" v="0,0"/>
<prop k="offset_map_unit_scale" v="3x:0,0,0,0,0,0"/>
<prop k="offset_unit" v="MM"/>
<prop k="outline_color" v="31,120,250,255"/>
<prop k="outline_style" v="solid"/>
<prop k="outline_width" v="0.46"/>
<prop k="outline_width_unit" v="MM"/>
<prop k="style" v="solid"/>
<data_defined_properties>
<Option type="Map">
<Option name="name" value="" type="QString"/>
<Option type="QString" name="name" value=""/>
<Option name="properties"/>
<Option name="type" value="collection" type="QString"/>
<Option type="QString" name="type" value="collection"/>
</Option>
</data_defined_properties>
</layer>
<layer class="LinePatternFill" pass="0" locked="0" enabled="1">
<Option type="Map">
<Option name="angle" value="45" type="QString"/>
<Option name="clip_mode" value="during_render" type="QString"/>
<Option name="color" value="0,0,0,255" type="QString"/>
<Option name="coordinate_reference" value="feature" type="QString"/>
<Option name="distance" value="2" type="QString"/>
<Option name="distance_map_unit_scale" value="3x:0,0,0,0,0,0" type="QString"/>
<Option name="distance_unit" value="MM" type="QString"/>
<Option name="line_width" value="0.5" type="QString"/>
<Option name="line_width_map_unit_scale" value="3x:0,0,0,0,0,0" type="QString"/>
<Option name="line_width_unit" value="MM" type="QString"/>
<Option name="offset" value="0" type="QString"/>
<Option name="offset_map_unit_scale" value="3x:0,0,0,0,0,0" type="QString"/>
<Option name="offset_unit" value="MM" type="QString"/>
<Option name="outline_width_map_unit_scale" value="3x:0,0,0,0,0,0" type="QString"/>
<Option name="outline_width_unit" value="MM" type="QString"/>
</Option>
<layer locked="0" pass="0" class="LinePatternFill" enabled="1">
<prop k="angle" v="45"/>
<prop k="color" v="0,0,0,255"/>
<prop k="distance" v="2"/>
<prop k="distance_map_unit_scale" v="3x:0,0,0,0,0,0"/>
<prop k="distance_unit" v="MM"/>
<prop k="line_width" v="0.5"/>
<prop k="line_width_map_unit_scale" v="3x:0,0,0,0,0,0"/>
<prop k="line_width_unit" v="MM"/>
<prop k="offset" v="0"/>
<prop k="offset_map_unit_scale" v="3x:0,0,0,0,0,0"/>
<prop k="offset_unit" v="MM"/>
<prop k="outline_width_map_unit_scale" v="3x:0,0,0,0,0,0"/>
<prop k="outline_width_unit" v="MM"/>
<data_defined_properties>
<Option type="Map">
<Option name="name" value="" type="QString"/>
<Option type="QString" name="name" value=""/>
<Option name="properties"/>
<Option name="type" value="collection" type="QString"/>
<Option type="QString" name="type" value="collection"/>
</Option>
</data_defined_properties>
<symbol is_animated="0" clip_to_extent="1" name="@0@1" frame_rate="10" alpha="1" force_rhr="0" type="line">
<data_defined_properties>
<Option type="Map">
<Option name="name" value="" type="QString"/>
<Option name="properties"/>
<Option name="type" value="collection" type="QString"/>
</Option>
</data_defined_properties>
<layer class="SimpleLine" pass="0" locked="0" enabled="1">
<Option type="Map">
<Option name="align_dash_pattern" value="0" type="QString"/>
<Option name="capstyle" value="square" type="QString"/>
<Option name="customdash" value="5;2" type="QString"/>
<Option name="customdash_map_unit_scale" value="3x:0,0,0,0,0,0" type="QString"/>
<Option name="customdash_unit" value="MM" type="QString"/>
<Option name="dash_pattern_offset" value="0" type="QString"/>
<Option name="dash_pattern_offset_map_unit_scale" value="3x:0,0,0,0,0,0" type="QString"/>
<Option name="dash_pattern_offset_unit" value="MM" type="QString"/>
<Option name="draw_inside_polygon" value="0" type="QString"/>
<Option name="joinstyle" value="bevel" type="QString"/>
<Option name="line_color" value="31,120,180,255" type="QString"/>
<Option name="line_style" value="solid" type="QString"/>
<Option name="line_width" value="0.15" type="QString"/>
<Option name="line_width_unit" value="MM" type="QString"/>
<Option name="offset" value="0" type="QString"/>
<Option name="offset_map_unit_scale" value="3x:0,0,0,0,0,0" type="QString"/>
<Option name="offset_unit" value="MM" type="QString"/>
<Option name="ring_filter" value="0" type="QString"/>
<Option name="trim_distance_end" value="0" type="QString"/>
<Option name="trim_distance_end_map_unit_scale" value="3x:0,0,0,0,0,0" type="QString"/>
<Option name="trim_distance_end_unit" value="MM" type="QString"/>
<Option name="trim_distance_start" value="0" type="QString"/>
<Option name="trim_distance_start_map_unit_scale" value="3x:0,0,0,0,0,0" type="QString"/>
<Option name="trim_distance_start_unit" value="MM" type="QString"/>
<Option name="tweak_dash_pattern_on_corners" value="0" type="QString"/>
<Option name="use_custom_dash" value="0" type="QString"/>
<Option name="width_map_unit_scale" value="3x:0,0,0,0,0,0" type="QString"/>
</Option>
<symbol type="line" force_rhr="0" name="@0@1" clip_to_extent="1" alpha="1">
<layer locked="0" pass="0" class="SimpleLine" enabled="1">
<prop k="align_dash_pattern" v="0"/>
<prop k="capstyle" v="square"/>
<prop k="customdash" v="5;2"/>
<prop k="customdash_map_unit_scale" v="3x:0,0,0,0,0,0"/>
<prop k="customdash_unit" v="MM"/>
<prop k="dash_pattern_offset" v="0"/>
<prop k="dash_pattern_offset_map_unit_scale" v="3x:0,0,0,0,0,0"/>
<prop k="dash_pattern_offset_unit" v="MM"/>
<prop k="draw_inside_polygon" v="0"/>
<prop k="joinstyle" v="bevel"/>
<prop k="line_color" v="31,120,180,255"/>
<prop k="line_style" v="solid"/>
<prop k="line_width" v="0.15"/>
<prop k="line_width_unit" v="MM"/>
<prop k="offset" v="0"/>
<prop k="offset_map_unit_scale" v="3x:0,0,0,0,0,0"/>
<prop k="offset_unit" v="MM"/>
<prop k="ring_filter" v="0"/>
<prop k="tweak_dash_pattern_on_corners" v="0"/>
<prop k="use_custom_dash" v="0"/>
<prop k="width_map_unit_scale" v="3x:0,0,0,0,0,0"/>
<data_defined_properties>
<Option type="Map">
<Option name="name" value="" type="QString"/>
<Option type="QString" name="name" value=""/>
<Option name="properties"/>
<Option name="type" value="collection" type="QString"/>
<Option type="QString" name="type" value="collection"/>
</Option>
</data_defined_properties>
</layer>
Expand All @@ -124,8 +96,8 @@
<editWidget type="TextEdit">
<config>
<Option type="Map">
<Option name="IsMultiline" value="false" type="bool"/>
<Option name="UseHtml" value="false" type="bool"/>
<Option type="bool" name="IsMultiline" value="false"/>
<Option type="bool" name="UseHtml" value="false"/>
</Option>
</config>
</editWidget>
Expand All @@ -134,33 +106,33 @@
<editWidget type="ValueMap">
<config>
<Option type="Map">
<Option name="map" type="List">
<Option type="List" name="map">
<Option type="Map">
<Option name="Alluvionamento corso d'acqua minore" value="1110" type="QString"/>
<Option type="QString" name="Alluvionamento corso d'acqua minore" value="1110"/>
</Option>
<Option type="Map">
<Option name="Alluvionamento corso d'acqua principale" value="1120" type="QString"/>
<Option type="QString" name="Alluvionamento corso d'acqua principale" value="1120"/>
</Option>
<Option type="Map">
<Option name="Colata detritica di versante" value="2002" type="QString"/>
<Option type="QString" name="Colata detritica di versante" value="2002"/>
</Option>
<Option type="Map">
<Option name="Flusso detrito" value="1200" type="QString"/>
<Option type="QString" name="Flusso detrito" value="1200"/>
</Option>
<Option type="Map">
<Option name="Ruscellamento superficiale" value="1400" type="QString"/>
<Option type="QString" name="Ruscellamento superficiale" value="1400"/>
</Option>
<Option type="Map">
<Option name="Scivolamento spontaneo" value="2001" type="QString"/>
<Option type="QString" name="Scivolamento spontaneo" value="2001"/>
</Option>
<Option type="Map">
<Option name="Caduta sassi o blocchi" value="3000" type="QString"/>
<Option type="QString" name="Caduta sassi o blocchi" value="3000"/>
</Option>
<Option type="Map">
<Option name="Valanga radente" value="4100" type="QString"/>
<Option type="QString" name="Valanga radente" value="4100"/>
</Option>
<Option type="Map">
<Option name="Valanga polverosa" value="4200" type="QString"/>
<Option type="QString" name="Valanga polverosa" value="4200"/>
</Option>
</Option>
</Option>
Expand All @@ -171,36 +143,36 @@
<editWidget type="TextEdit">
<config>
<Option type="Map">
<Option name="IsMultiline" value="false" type="bool"/>
<Option name="UseHtml" value="false" type="bool"/>
<Option type="bool" name="IsMultiline" value="false"/>
<Option type="bool" name="UseHtml" value="false"/>
</Option>
</config>
</editWidget>
</field>
</fieldConfiguration>
<aliases>
<alias field="fid" index="0" name=""/>
<alias field="commento" index="1" name="Osservazione o ev. commento"/>
<alias field="proc_parz" index="2" name="Processo rappresentato TI"/>
<alias field="fonte_proc" index="3" name="Fonte del processo (es. nome riale)"/>
<alias name="" index="0" field="fid"/>
<alias name="Osservazione o ev. commento" index="1" field="commento"/>
<alias name="Processo rappresentato TI" index="2" field="proc_parz"/>
<alias name="Fonte del processo (es. nome riale)" index="3" field="fonte_proc"/>
</aliases>
<defaults>
<default expression="" field="fid" applyOnUpdate="0"/>
<default expression="" field="commento" applyOnUpdate="0"/>
<default expression="@pzp_process" field="proc_parz" applyOnUpdate="0"/>
<default expression="" field="fonte_proc" applyOnUpdate="0"/>
<default field="fid" expression="" applyOnUpdate="0"/>
<default field="commento" expression="" applyOnUpdate="0"/>
<default field="proc_parz" expression="@pzp_process" applyOnUpdate="0"/>
<default field="fonte_proc" expression="" applyOnUpdate="0"/>
</defaults>
<constraints>
<constraint exp_strength="0" field="fid" constraints="3" notnull_strength="1" unique_strength="1"/>
<constraint exp_strength="0" field="commento" constraints="0" notnull_strength="0" unique_strength="0"/>
<constraint exp_strength="0" field="proc_parz" constraints="1" notnull_strength="1" unique_strength="0"/>
<constraint exp_strength="0" field="fonte_proc" constraints="3" notnull_strength="1" unique_strength="1"/>
<constraint notnull_strength="1" field="fid" exp_strength="0" unique_strength="1" constraints="3"/>
<constraint notnull_strength="0" field="commento" exp_strength="0" unique_strength="0" constraints="0"/>
<constraint notnull_strength="1" field="proc_parz" exp_strength="1" unique_strength="1" constraints="7"/>
<constraint notnull_strength="1" field="fonte_proc" exp_strength="1" unique_strength="1" constraints="7"/>
</constraints>
<constraintExpressions>
<constraint desc="" field="fid" exp=""/>
<constraint desc="" field="commento" exp=""/>
<constraint desc="" field="proc_parz" exp=""/>
<constraint desc="" field="fonte_proc" exp=""/>
<constraint desc="" exp="" field="fid"/>
<constraint desc="" exp="" field="commento"/>
<constraint desc="" exp="" field="proc_parz"/>
<constraint desc="" exp="" field="fonte_proc"/>
</constraintExpressions>
<expressionfields/>
<editform tolerant="1"></editform>
Expand All @@ -227,24 +199,9 @@ def my_form_open(dialog, layer, feature):
<featformsuppress>0</featformsuppress>
<editorlayout>tablayout</editorlayout>
<attributeEditorForm>
<labelStyle labelColor="0,0,0,255" overrideLabelColor="0" overrideLabelFont="0">
<labelFont strikethrough="0" bold="0" description="Sans Serif,9,-1,5,50,0,0,0,0,0" style="" italic="0" underline="0"/>
</labelStyle>
<attributeEditorField index="2" name="proc_parz" showLabel="1">
<labelStyle labelColor="0,0,0,255" overrideLabelColor="0" overrideLabelFont="0">
<labelFont strikethrough="0" bold="0" description="Sans Serif,9,-1,5,50,0,0,0,0,0" style="" italic="0" underline="0"/>
</labelStyle>
</attributeEditorField>
<attributeEditorField index="3" name="fonte_proc" showLabel="1">
<labelStyle labelColor="0,0,0,255" overrideLabelColor="0" overrideLabelFont="0">
<labelFont strikethrough="0" bold="0" description="Sans Serif,9,-1,5,50,0,0,0,0,0" style="" italic="0" underline="0"/>
</labelStyle>
</attributeEditorField>
<attributeEditorField index="1" name="commento" showLabel="1">
<labelStyle labelColor="0,0,0,255" overrideLabelColor="0" overrideLabelFont="0">
<labelFont strikethrough="0" bold="0" description="Sans Serif,9,-1,5,50,0,0,0,0,0" style="" italic="0" underline="0"/>
</labelStyle>
</attributeEditorField>
<attributeEditorField showLabel="1" name="proc_parz" index="2"/>
<attributeEditorField showLabel="1" name="fonte_proc" index="3"/>
<attributeEditorField showLabel="1" name="commento" index="1"/>
</attributeEditorForm>
<editable>
<field name="commento" editable="1"/>
Expand All @@ -253,17 +210,11 @@ def my_form_open(dialog, layer, feature):
<field name="proc_parz" editable="0"/>
</editable>
<labelOnTop>
<field labelOnTop="0" name="commento"/>
<field labelOnTop="0" name="fid"/>
<field labelOnTop="0" name="fonte_proc"/>
<field labelOnTop="0" name="proc_parz"/>
<field name="commento" labelOnTop="0"/>
<field name="fid" labelOnTop="0"/>
<field name="fonte_proc" labelOnTop="0"/>
<field name="proc_parz" labelOnTop="0"/>
</labelOnTop>
<reuseLastValue>
<field name="commento" reuseLastValue="0"/>
<field name="fid" reuseLastValue="0"/>
<field name="fonte_proc" reuseLastValue="0"/>
<field name="proc_parz" reuseLastValue="0"/>
</reuseLastValue>
<dataDefinedFieldProperties/>
<widgets/>
<layerGeometryType>2</layerGeometryType>
Expand Down
Loading

0 comments on commit 3cb3f32

Please sign in to comment.