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:
newlayer.loadNamedStyle(configOutputs[layer]['style'])
else:
#Loading default styles
if layer == "multilinestrings":
if layer == "multilinestrings" or layer == "lines":
if "colour" in item['tags']:
newlayer.loadNamedStyle(join(dirname(dirname(abspath(__file__))),"styles",layer+"_colour.qml"))

+ 29
- 0
styles/lines_colour.qml View File

@@ -0,0 +1,29 @@
<!DOCTYPE qgis PUBLIC 'http://mrcc.com/qgis.dtd' 'SYSTEM'>
<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">
<renderer-v2 symbollevels="0" type="singleSymbol">
<symbols>
<symbol alpha="1" type="line" name="0">
<layer pass="0" class="SimpleLine" locked="0">
<prop k="capstyle" v="square"/>
<prop k="color" v="144,135,190,255"/>
<prop k="color_expression" v="colour"/>
<prop k="customdash" v="5;2"/>
<prop k="customdash_map_unit_scale" v="0,0"/>
<prop k="customdash_unit" v="MM"/>
<prop k="draw_inside_polygon" v="0"/>
<prop k="joinstyle" v="bevel"/>
<prop k="offset" v="0"/>
<prop k="offset_map_unit_scale" v="0,0"/>
<prop k="offset_unit" v="MM"/>
<prop k="penstyle" v="solid"/>
<prop k="use_custom_dash" v="0"/>
<prop k="width" v="0.46"/>
<prop k="width_map_unit_scale" v="0,0"/>
<prop k="width_unit" v="MM"/>
</layer>
</symbol>
</symbols>
<rotation/>
<sizescale scalemethod="area"/>
</renderer-v2>
</qgis>

Loading…
Cancel
Save