<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (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:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
span.EmailStyle19
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:1106656708;
        mso-list-template-ids:-1693043902;}
@list l1
        {mso-list-id:1747071936;
        mso-list-type:hybrid;
        mso-list-template-ids:-115281374 336134159 336134169 336134171 336134159 336134169 336134171 336134159 336134169 336134171;}
@list l1:level1
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l1:level2
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l1:level3
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l1:level4
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l1:level5
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l1:level6
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l1:level7
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l1:level8
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l1:level9
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
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]--></head><body lang=EN-NZ link="#0563C1" vlink="#954F72" style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal>Hi All<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Simple question, but I am not sure how best to word it. Since we all love maps, I have a diagram below.<o:p></o:p></p><ol style='margin-top:0cm' start=1 type=1><li class=MsoListParagraph style='margin-left:0cm;mso-list:l1 level1 lfo3'>Create some points along a polyline. Easy using “Points along Gemoetry”<o:p></o:p></li><li class=MsoListParagraph style='margin-left:0cm;mso-list:l1 level1 lfo3'>Display and label the points and put a rotation on the labels and  justify as needed (middle right in this case)<o:p></o:p></li></ol><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>What I want to do is shift the label out from the point slightly. That’s easy if using Offset X and Y, but it does exactly as expected and moves them X and Y, NOT accounting for the angle.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I’m guessing I would need to use Data Defined X and Y and do some trigonometry using the angle and distance to calculate the new preferred label position.  Does anybody have code to do this?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>A simple workaround I did use was to just pad a few spaces to the end of the label (ie “FIELD NAME” || ‘    ‘)<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><img width=368 height=451 style='width:3.8333in;height:4.6979in' id="Picture_x0020_4" src="cid:image001.png@01D76F2D.EC0549E0"><o:p></o:p></p><p class=MsoNormal><span style='mso-fareast-language:EN-NZ'>Cheers<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-NZ'>Tony<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-NZ'><o:p> </o:p></span></p><p class=MsoNormal><b><span style='color:#404040;mso-fareast-language:EN-NZ'>Tony Shepherd</span></b><span style='color:#595959;mso-fareast-language:EN-NZ'>  </span><b><span style='mso-fareast-language:EN-NZ'>|</span></b><span style='color:#595959;mso-fareast-language:EN-NZ'>  GeoSpatial / Mapping Manager<o:p></o:p></span></p><p class=MsoNormal><span style='color:#595959;mso-fareast-language:EN-NZ'>Ph 027 435 6193  </span><b><span style='mso-fareast-language:EN-NZ'>|</span></b><span style='color:#595959;mso-fareast-language:EN-NZ'>  E </span><a href="mailto:tony@farmmaps.nz"><span style='color:#0563C1;mso-fareast-language:EN-NZ'>tony@farmmaps.nz</span></a><span style='color:#595959;mso-fareast-language:EN-NZ'><o:p></o:p></span></p><p class=MsoNormal><span style='color:#595959;mso-fareast-language:EN-NZ'>FarmMaps NZ, 3 Kerwood Place, Gore 9740<o:p></o:p></span></p><p class=MsoNormal><span style='color:#595959;mso-fareast-language:EN-NZ'><o:p> </o:p></span></p><p class=MsoNormal><a href="http://tonyshepherd8.wixsite.com/home"><b><span style='font-family:"Arial",sans-serif;color:windowtext;mso-fareast-language:EN-NZ;text-decoration:none'><img border=0 width=157 height=34 style='width:1.6354in;height:.3541in' id="Picture_x0020_1" src="cid:image003.png@01D76F2D.EC0549E0"></span></b></a><a href="https://www.wunderground.com/personal-weather-station/dashboard?ID=ISTLGORE2"><b><span style='font-family:"Arial",sans-serif;color:windowtext;mso-fareast-language:EN-NZ;text-decoration:none'><img border=0 width=170 height=37 style='width:1.7708in;height:.3854in' id="Picture_x0020_3" src="cid:image004.png@01D76F2D.EC0549E0"></span></b></a><b><span style='font-family:"Arial",sans-serif;mso-fareast-language:EN-NZ'><o:p></o:p></span></b></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>