<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi Lars,</p>
<p>QGIS supports "data defined" properties. Any graphical attribute
is usually also exposed as "data-defined".</p>
<p>Wherever you can defined this data-defined icon (see
<a class="moz-txt-link-freetext" href="https://docs.qgis.org/2.18/en/_images/mIconDataDefine.png">https://docs.qgis.org/2.18/en/_images/mIconDataDefine.png</a>) you can
either specify a feature attribute or rule or calculation to
define a property.</p>
<p>See also
<a class="moz-txt-link-freetext" href="https://docs.qgis.org/2.18/en/docs/user_manual/introduction/general_tools.html#data-defined">https://docs.qgis.org/2.18/en/docs/user_manual/introduction/general_tools.html#data-defined</a></p>
<p>So - if your data contains attributes that can be used for
symbology, you can apply such data-defined overrides.</p>
<p>OGR feature styles are not directly supported by QGIS, but if
they are exposed in one or more attributes, you may use this
information for data-defined overrides.</p>
<p>Hope this helps,</p>
<p>Andreas<br>
</p>
<br>
<div class="moz-cite-prefix">Am 07.08.2018 um 15:49 schrieb Lars I.
Nielsen, LIFA A/S:<br>
</div>
<blockquote type="cite"
cite="mid:6EDB455314CAD940983B0F3ACAC4B0A53ABFD2EF@Mail2010.LIFA.DK">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="Generator" content="Microsoft Word 14 (filtered
medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
<style><!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:"Arial Narrow";
panose-1:2 11 6 6 2 2 2 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
code
{mso-style-priority:99;
font-family:"Courier New";}
pre
{mso-style-priority:99;
mso-style-link:"Formateret HTML Tegn";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Markeringsbobletekst Tegn";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";
mso-fareast-language:EN-US;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;
font-weight:normal;
font-style:normal;
text-decoration:none none;}
span.MarkeringsbobletekstTegn
{mso-style-name:"Markeringsbobletekst Tegn";
mso-style-priority:99;
mso-style-link:Markeringsbobletekst;
font-family:"Tahoma","sans-serif";}
span.FormateretHTMLTegn
{mso-style-name:"Formateret HTML Tegn";
mso-style-priority:99;
mso-style-link:"Formateret HTML";
font-family:"Courier New";
mso-fareast-language:DA;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:3.0cm 2.0cm 3.0cm 2.0cm;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:245968063;
mso-list-template-ids:-1467867838;}
@list l0:level1
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:36.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l0:level2
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:72.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:"Courier New";
mso-bidi-font-family:"Times New Roman";}
@list l0:level3
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:108.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Wingdings;}
@list l0:level4
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:144.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Wingdings;}
@list l0:level5
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:180.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Wingdings;}
@list l0:level6
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:216.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Wingdings;}
@list l0:level7
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:252.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Wingdings;}
@list l0:level8
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:288.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Wingdings;}
@list l0:level9
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:324.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Wingdings;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">Hi list.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US">Does QGIS utilize and
support textual styles, e.g. as read from data ?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">OGR has a feature style
specification (<a
href="https://www.gdal.org/ogr_feature_style.html"
moz-do-not-send="true">https://www.gdal.org/ogr_feature_style.html</a>
), with some examples shown below.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Has anyone used QGIS to
facilitate such style representation ?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">--<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><i><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif";mso-fareast-language:DA"
lang="EN-US">Here are some example style definition
strings:
<o:p></o:p></span></i></p>
<ul type="disc">
<li class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0
level1 lfo1">
<i><span style="font-size:12.0pt;font-family:"Times New
Roman","serif";mso-fareast-language:DA"
lang="EN-US">A 5 pixels wide red line:
<br>
</span></i><i><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:DA" lang="EN-US">PEN(c:#FF0000,w:5px)</span></i><i><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif";mso-fareast-language:DA"
lang="EN-US">
<o:p></o:p></span></i></li>
<li class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0
level1 lfo1">
<i><span style="font-size:12.0pt;font-family:"Times New
Roman","serif";mso-fareast-language:DA"
lang="EN-US">A polygon filled in blue, with a black
outline:
<br>
</span></i><i><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:DA" lang="EN-US">BRUSH(fc:#0000FF);PEN(c:#000000)</span></i><i><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif";mso-fareast-language:DA"
lang="EN-US">
<o:p></o:p></span></i></li>
<li class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0
level1 lfo1">
<i><span style="font-size:12.0pt;font-family:"Times New
Roman","serif";mso-fareast-language:DA"
lang="EN-US">A point symbol:
<br>
</span></i><i><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:DA" lang="EN-US">SYMBOL(c:#00FF00,id:"points.sym-45,ogr-sym-7")</span></i><i><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif";mso-fareast-language:DA"
lang="EN-US">
<o:p></o:p></span></i></li>
<li class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0
level1 lfo1">
<i><span style="font-size:12.0pt;font-family:"Times New
Roman","serif";mso-fareast-language:DA"
lang="EN-US">A text label, taking the text string from
the "text_attribute" attribute field:
<br>
</span></i><i><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:DA" lang="EN-US">LABEL(f:"Times
New Roman",s:12pt,t:{text_attribute})"</span></i><i><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif";mso-fareast-language:DA"
lang="EN-US">
<o:p></o:p></span></i></li>
</ul>
<p class="MsoNormal"><i><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif";mso-fareast-language:DA"
lang="EN-US">Here is what a style table that contains all
the above styles could look like:
<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:DA" lang="EN-US"> road:
PEN(c:#FF0000,w:5px)<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:DA" lang="EN-US">
lake: BRUSH(fc:#0000FF);PEN(c:#000000)<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:DA" lang="EN-US">
campsite: SYMBOL(c:#00FF00,id:"points.sym-45,ogr-sym-7")<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:DA" lang="EN-US">
label: LABEL(f:"Times New
Roman",s:12pt,t:{text_attribute})<o:p></o:p></span></i></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">--<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I know that QGIS
supports its own XML style format, and supports some form of
SLD. Both are layer based, though, not feature based.<o:p></o:p></span></p>
<div>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif";mso-fareast-language:DA"
lang="EN-US"><br>
</span><span style="font-size:10.0pt;font-family:"Arial
Narrow","sans-serif";color:black;mso-fareast-language:DA"
lang="EN-US">Med venlig hilsen</span><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif";mso-fareast-language:DA"><o:p></o:p></span></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;margin-bottom:11.9pt"><span
style="font-size:10.0pt;font-family:"Arial
Narrow","sans-serif";color:black;mso-fareast-language:DA"
lang="EN-US">Lars I. Nielsen, LIFA A/S</span><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif";mso-fareast-language:DA"><br>
</span><span style="font-size:10.0pt;font-family:"Arial
Narrow","sans-serif";mso-fareast-language:DA"
lang="EN-US">GIS konsulent, FME Certified Professional</span><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif";mso-fareast-language:DA"><br>
<br>
</span><span style="font-size:10.0pt;font-family:"Arial
Narrow","sans-serif";color:black;mso-fareast-language:DA"><img
id="_x0000_i1026"
src="cid:part2.A956265A.4962B1DA@carto.net"
alt="Beskrivelse:
http://website.lifa.dk/docs/LIFA_GIS·IT_logo.png"
class="" width="285" border="0" height="82"></span><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif";mso-fareast-language:DA"><o:p></o:p></span></p>
<table class="MsoNormalTable" style="width:225.0pt"
width="300" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span
style="font-size:10.0pt;font-family:"Arial
Narrow","sans-serif";color:red;mso-fareast-language:DA">T</span></b><span
style="font-size:12.0pt;font-family:"Times
New
Roman","serif";mso-fareast-language:DA"><o:p></o:p></span></p>
</td>
<td style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
style="font-size:10.0pt;font-family:"Arial
Narrow","sans-serif";mso-fareast-language:DA">6313
6800</span><span
style="font-size:12.0pt;font-family:"Times
New
Roman","serif";mso-fareast-language:DA"><o:p></o:p></span></p>
</td>
<td style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span
style="font-size:10.0pt;font-family:"Arial
Narrow","sans-serif";color:red;mso-fareast-language:DA">@</span></b><span
style="font-size:10.0pt;font-family:"Arial
Narrow","sans-serif";mso-fareast-language:DA"> </span><span
style="font-size:12.0pt;font-family:"Times
New
Roman","serif";mso-fareast-language:DA"><o:p></o:p></span></p>
</td>
<td style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
style="font-size:10.0pt;font-family:"Arial
Narrow","sans-serif";mso-fareast-language:DA"><a class="moz-txt-link-abbreviated" href="mailto:lin@lifa.dk">lin@lifa.dk</a></span><span
style="font-size:12.0pt;font-family:"Times
New
Roman","serif";mso-fareast-language:DA"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span
style="font-size:10.0pt;font-family:"Arial
Narrow","sans-serif";color:red;mso-fareast-language:DA">D</span></b><span
style="font-size:12.0pt;font-family:"Times
New
Roman","serif";mso-fareast-language:DA"><o:p></o:p></span></p>
</td>
<td style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
style="font-size:10.0pt;font-family:"Arial
Narrow","sans-serif";mso-fareast-language:DA">6313
6849</span><span
style="font-size:12.0pt;font-family:"Times
New
Roman","serif";mso-fareast-language:DA"><o:p></o:p></span></p>
</td>
<td style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span
style="font-size:10.0pt;font-family:"Arial
Narrow","sans-serif";color:red;mso-fareast-language:DA">W</span></b><span
style="font-size:12.0pt;font-family:"Times
New
Roman","serif";mso-fareast-language:DA"><o:p></o:p></span></p>
</td>
<td style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
style="font-size:10.0pt;font-family:"Arial
Narrow","sans-serif";mso-fareast-language:DA"><a
href="http://www.lifa.dk" moz-do-not-send="true"><span
style="color:blue">www.lifa.dk</span></a> </span><span
style="font-size:12.0pt;font-family:"Times
New
Roman","serif";mso-fareast-language:DA"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span
style="font-size:10.0pt;font-family:"Arial
Narrow","sans-serif";color:red;mso-fareast-language:DA">M</span></b><span
style="font-size:12.0pt;font-family:"Times
New
Roman","serif";mso-fareast-language:DA"><o:p></o:p></span></p>
</td>
<td style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
style="font-size:10.0pt;font-family:"Arial
Narrow","sans-serif";mso-fareast-language:DA">2492
4866</span><span
style="font-size:12.0pt;font-family:"Times
New
Roman","serif";mso-fareast-language:DA"><o:p></o:p></span></p>
</td>
<td style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
style="font-size:10.0pt;font-family:"Arial
Narrow","sans-serif";mso-fareast-language:DA"> </span><span
style="font-size:12.0pt;font-family:"Times
New
Roman","serif";mso-fareast-language:DA"><o:p></o:p></span></p>
</td>
<td style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
style="font-size:10.0pt;font-family:"Arial
Narrow","sans-serif";mso-fareast-language:DA"> </span><span
style="font-size:12.0pt;font-family:"Times
New
Roman","serif";mso-fareast-language:DA"><o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
</div>
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif";mso-fareast-language:DA"><br>
</span><b><span
style="font-size:10.0pt;font-family:"Arial
Narrow","sans-serif";color:red;mso-fareast-language:DA">Vi
tilbyder interne og eksterne kurser. Du kan finde mere
information i vores
</span></b><b><span
style="font-size:10.0pt;font-family:"Arial
Narrow","sans-serif";color:black;mso-fareast-language:DA"><a
href="https://www.lifa.dk/kursuskalender" target="_new"
title="LIFA kurser" moz-do-not-send="true"><span
style="color:blue">kursuskalender</span></a><br>
<br>
</span></b><a
href="https://www.linkedin.com/company/lifa-a-s/"
moz-do-not-send="true"><b><span
style="font-size:10.0pt;font-family:"Arial
Narrow","sans-serif";color:blue;mso-fareast-language:DA;text-decoration:none"><img
id="_x0000_i1025"
src="cid:part5.5DB93EEE.F1331752@carto.net"
alt="Beskrivelse:
C:\Users\lin\AppData\Roaming\Microsoft\signatures\21x21-Images-Get-L749-l8.png"
class="" width="21" border="0" height="21"></span></b></a><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif";mso-fareast-language:DA"><br>
</span><span style="font-size:10.0pt;font-family:"Arial
Narrow","sans-serif";color:black;mso-fareast-language:DA">Følg
os på LinkedIn og læs de seneste nyheder fra LIFA A/S
Landinspektører</span><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif";mso-fareast-language:DA"><br>
<br>
</span><o:p></o:p></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Qgis-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></pre>
</blockquote>
<br>
</body>
</html>