[Qgis-user] Map Corner Coordinates
Richard McDonnell
richard.mcdonnell at opw.ie
Mon Apr 15 05:14:01 PDT 2024
Hi Alanna,
In addition to Andreas message…
If a table with the extents (Lower Left and Upper Right) is what you are looking for then something similar to the below is an option..
[cid:image001.png at 01DA8F36.C6979600]
You could also, conceivably, use the expressions in text boxes.
Hope that helps,
Richard
——
Richard McDonnell MSc GIS, FME Certified Professional
Flood Risk Management - Data Management
——
Oifig na nOibreacha Poiblí
Office of Public Works
Sráid Jonathan Swift, Baile Átha Troim, Co na Mí, C15 NX36
Jonathan Swift Street, Trim, Co Meath, C15 NX36
——
M +353 87 688 5964 T +353 46 942 2409
https://gov.ie/opw
——
To send me files larger than 30MB, please use the link below https://filetransfer.opw.ie/filedrop/richard.mcdonnell@opw.ie
Email Disclaimer: https://www.gov.ie/en/organisation-information/439daf-email-disclaimer/
From: QGIS-User <qgis-user-bounces at lists.osgeo.org> On Behalf Of Andreas Neumann via QGIS-User
Sent: 15 April 2024 12:58
To: Alanna Mitchell <A.Mitchell at aquafact.ie>
Cc: qgis-user at lists.osgeo.org
Subject: Re: [Qgis-user] Map Corner Coordinates
Hi Alanna,
It depends a bit on what you want to do.
There are map grids that you can use to label the edges of a map.
Or you can use a label with an expression. Here is one expression to help you get started:
with_variable(
'mapextent',
map_get(item_variables('Map1'),'map_extent'),
round(x_min(@mapextent)) || ' - ' || round(x_max(@mapextent))
)
This gets the map extent of the map with the ID "Map1" (you need to set the ID accordingly). Using the item_variables() data structure you can get hold of the first map and then query one or more of the attributes of a referenced item in a layout.
https://docs.qgis.org/3.34/en/docs/user_manual/expressions/functions_list.html#variables gives you a list of available variables - but it depends of the expression scope you are currently in.
Hope this helps you to get started.
Andreas
On 2024-04-15 12:13, Alanna Mitchell via QGIS-User wrote:
Dear QGIS community,
I am attempting to get the coordinate intersects of my map corners to display in Print Layout/Composer (i.e., N and W coordinates). The exact directions were: 'For geo-referencing purposes labelled coordinate intersects should be shown in all four corners of the map'. There does not seem to be an option for this in QGIS (I have found a few in ARC). I have found dynamic text in the Print Layout (Add Items - Add Dynamic Text - Map Properties) and one can see X minimum, X maximum, Y etc. I am not sure what these are or if they are relevant to me finding the map corner coordinates.
I also found the plugin Map Corner coordinates. But this seems to only work for the main map viewer, and I can't get this to align exactly with my Print Layout to ensure these coordinates are exactly the same.
If there was even a mathematically method, I would be more than partial to using that even. I appreciate any and all help in these matters. Thank you in advance.
Kind Regards,
Alanna
_______________________________________________
QGIS-User mailing list
QGIS-User at lists.osgeo.org<mailto:QGIS-User at lists.osgeo.org>
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20240415/5cc9b5d8/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 310822 bytes
Desc: image001.png
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20240415/5cc9b5d8/attachment-0001.png>
More information about the QGIS-User
mailing list