<div dir="ltr">Hello Peter,<br><br>Following Lene's idea, If your layer geometry type are lines or polygons, you need to calculate the centroid.<br><br><div><a href="https://sigsemgrilhetas.wordpress.com/2015/02/10/calcular-coordenadas-do-centroide-de-poligonos-calculate-polygon-centroids-coordinates/">https://sigsemgrilhetas.wordpress.com/2015/02/10/calcular-coordenadas-do-centroide-de-poligonos-calculate-polygon-centroids-coordinates/</a><br><br></div><div>So the expression will become:<br><br><b><span style="font-size:10pt;font-family:"Verdana","sans-serif"" lang="EN-US"><code class="">xmin(centroid($geometry))</code> || ‘ , ‘ || </span><code class="">ymin(centroid($geometry))<br><br></code></b></div><div><code class="">Hope it helped,<br><br></code></div><div><code class="">Alexandre</code><b><code class=""><br></code></b></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 8, 2015 at 6:17 AM, Lene Fischer <span dir="ltr"><<a href="mailto:lfi@ign.ku.dk" target="_blank">lfi@ign.ku.dk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="blue" vlink="purple" lang="DA">
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"" lang="EN-US">Hi Peter,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"" lang="EN-US">You can use the functions $x and $y for inserting it as an Expression in a label.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"" lang="EN-US">To separate the information between the X and Y you insert <b>‘ space comma space ‘
</b>it looks like:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"" lang="EN-US">$X || ‘ , ‘ || $Y<u></u><u></u></span></b></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"" lang="EN-US"><u></u> <u></u></span></b></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"" lang="EN-US">See the video at
<a href="http://screencast.com/t/iL02hUFDCHo" target="_blank">http://screencast.com/t/iL02hUFDCHo</a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"" lang="EN-US">Regards<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:black" lang="EN-GB"> </span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:7.5pt;font-family:"Verdana","sans-serif";color:gray" lang="EN-GB">Lene Fischer</span></b><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Verdana","sans-serif";color:gray" lang="EN-GB">Associate Professor</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Verdana","sans-serif";color:gray" lang="EN-GB"> </span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:7.5pt;font-family:"Verdana","sans-serif";color:gray" lang="EN-GB">Department of Geosciences and Natural Resource Management</span></b><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Verdana","sans-serif";color:gray" lang="EN-GB">University of Copenhagen</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Verdana","sans-serif";color:gray" lang="EN-GB"> </span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Verdana","sans-serif";color:gray" lang="EN-GB">MOB <a href="tel:%2B45%2040115084" value="+4540115084" target="_blank">+45 40115084</a></span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Verdana","sans-serif";color:gray" lang="EN-GB"><a href="mailto:lfi@ign.ku.dk" title="LFI@IGN.KU.DK" target="_blank"><span style="color:gray">lfi@ign.ku.dk</span></a></span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Verdana","sans-serif";color:gray" lang="EN-GB"> </span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Verdana","sans-serif";color:gray" lang="EN-GB"> </span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal" style="line-height:12.0pt"><span style="font-size:7.5pt;font-family:"Verdana","sans-serif";color:gray"><img src="cid:image001.gif@01D0A1BB.33081B70" alt="cid:image001.gif@01D03029.2F3EC6A0" border="0" width="327" height="121"></span><span style="font-size:7.5pt;font-family:"Verdana","sans-serif";color:gray" lang="EN-GB"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""> <u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"" lang="EN-US"><u></u> <u></u></span></p>
<div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Fra:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:qgis-user-bounces@lists.osgeo.org" target="_blank">qgis-user-bounces@lists.osgeo.org</a> [mailto:<a href="mailto:qgis-user-bounces@lists.osgeo.org" target="_blank">qgis-user-bounces@lists.osgeo.org</a>]
<b>På vegne af </b>peter spence<br>
<b>Sendt:</b> 7. juni 2015 23:08<br>
<b>Til:</b> <a href="mailto:qgis-user@lists.osgeo.org" target="_blank">qgis-user@lists.osgeo.org</a><br>
<b>Emne:</b> [Qgis-user] add coordinates to my map?<u></u><u></u></span></p>
</div>
</div><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri","sans-serif"">Dear Ggis users,<br>
<br>
Can any one tell me how I can add coordinates to the X,Y-as of my map?<br>
<br>
Thanks!<br>
<br>
Peter <br>
<br>
ps<br>
I couldn't find it in the manual...<br>
Using Qgis 2.6<u></u><u></u></span></p>
</div>
</div></div></div>
</div>
<br>_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br></blockquote></div><br></div>