Browse Source

Default colour style for the 'lines' layer fix #20

tags/1.1
Etienne Trimaille 4 years ago
parent
commit
041a29c7ac
2 changed files with 30 additions and 1 deletions
  1. 1
    1
      Controller/Process.py
  2. 29
    0
      styles/lines_colour.qml

+ 1
- 1
Controller/Process.py View File

@@ -100,7 +100,7 @@ class Process:
100 100
                     newlayer.loadNamedStyle(configOutputs[layer]['style'])
101 101
                 else:
102 102
                     #Loading default styles
103
-                    if layer == "multilinestrings":
103
+                    if layer == "multilinestrings" or layer == "lines":
104 104
                         if "colour" in item['tags']:
105 105
                             newlayer.loadNamedStyle(join(dirname(dirname(abspath(__file__))),"styles",layer+"_colour.qml"))
106 106
                 

+ 29
- 0
styles/lines_colour.qml View File

@@ -0,0 +1,29 @@
1
+<!DOCTYPE qgis PUBLIC 'http://mrcc.com/qgis.dtd' 'SYSTEM'>
2
+<qgis version="2.4.0-Chugiak" minimumScale="-4.65661e-10" maximumScale="1e+08" simplifyDrawingHints="1" minLabelScale="0" maxLabelScale="1e+08" simplifyDrawingTol="1" simplifyMaxScale="1" hasScaleBasedVisibilityFlag="0" simplifyLocal="1" scaleBasedLabelVisibilityFlag="0">
3
+  <renderer-v2 symbollevels="0" type="singleSymbol">
4
+    <symbols>
5
+      <symbol alpha="1" type="line" name="0">
6
+        <layer pass="0" class="SimpleLine" locked="0">
7
+          <prop k="capstyle" v="square"/>
8
+          <prop k="color" v="144,135,190,255"/>
9
+          <prop k="color_expression" v="colour"/>
10
+          <prop k="customdash" v="5;2"/>
11
+          <prop k="customdash_map_unit_scale" v="0,0"/>
12
+          <prop k="customdash_unit" v="MM"/>
13
+          <prop k="draw_inside_polygon" v="0"/>
14
+          <prop k="joinstyle" v="bevel"/>
15
+          <prop k="offset" v="0"/>
16
+          <prop k="offset_map_unit_scale" v="0,0"/>
17
+          <prop k="offset_unit" v="MM"/>
18
+          <prop k="penstyle" v="solid"/>
19
+          <prop k="use_custom_dash" v="0"/>
20
+          <prop k="width" v="0.46"/>
21
+          <prop k="width_map_unit_scale" v="0,0"/>
22
+          <prop k="width_unit" v="MM"/>
23
+        </layer>
24
+      </symbol>
25
+    </symbols>
26
+    <rotation/>
27
+    <sizescale scalemethod="area"/>
28
+  </renderer-v2>
29
+</qgis>

Loading…
Cancel
Save