[Qgis-user] add coordinates to my map?

Alexandre Neto senhor.neto at gmail.com
Tue Jun 9 01:47:29 PDT 2015


Hello Peter,

Following Lene's idea, If your layer geometry type are lines or polygons,
you need to calculate the centroid.

https://sigsemgrilhetas.wordpress.com/2015/02/10/calcular-coordenadas-do-centroide-de-poligonos-calculate-polygon-centroids-coordinates/

So the expression will become:



*xmin(centroid($geometry)) || ‘ , ‘ || ymin(centroid($geometry))*
Hope it helped,

Alexandre

On Mon, Jun 8, 2015 at 6:17 AM, Lene Fischer <lfi at ign.ku.dk> wrote:

>  Hi Peter,
>
> You can use the functions $x and $y for inserting it as an Expression in a
>  label.
>
>
>
> To separate the information between the X and Y you  insert  *‘ space
> comma space ‘ *it looks like:
>
>
>
> *$X || ‘ , ‘ || $Y*
>
>
>
> See the video at http://screencast.com/t/iL02hUFDCHo
>
> Regards
>
>
>
>
>
> *Lene Fischer*
>
> Associate Professor
>
>
>
> *Department of Geosciences and Natural Resource Management*
>
> University of Copenhagen
>
>
>
>
>
> MOB +45 40115084
>
> lfi at ign.ku.dk
>
>
>
>
>
> [image: cid:image001.gif at 01D03029.2F3EC6A0]
>
>
>
>
>
>
>
> *Fra:* qgis-user-bounces at lists.osgeo.org [mailto:
> qgis-user-bounces at lists.osgeo.org] *På vegne af *peter spence
> *Sendt:* 7. juni 2015 23:08
> *Til:* qgis-user at lists.osgeo.org
> *Emne:* [Qgis-user] add coordinates to my map?
>
>
>
> Dear Ggis users,
>
> Can any one tell me how I can add coordinates to the X,Y-as of my map?
>
> Thanks!
>
> Peter
>
> ps
> I couldn't find it in the manual...
> Using Qgis 2.6
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20150609/aa4913c4/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 4863 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20150609/aa4913c4/attachment.gif>


More information about the Qgis-user mailing list