Lat Lon Tools makes it easy to capture, zoom to coordinates, and interact with other on-line mapping tools. It adds MGRS and Plus Code coordinate support to QGIS. When working with Google Earth, Google Maps or other on-line mapping tools, coordinates are specified in the order of 'Latitude, Longitude'. By default Lat Lon Tools uses the standard Google Map format, but is very flexible and can use virtually any projection and coordinate format for input and output. The following tools are available in Lat Lon Tools.
Some of the functions can be accessed from the Lat Lon Tools toolbar. If for some reason the toolbar is missing, select the menu item View->Toolbars and make sure Lat Lon Tools Toolbar is enabled.
Copy Latitude, Longitude - This captures coordinates onto the clipboard when the user clicks on the map, using the standard Google Map format or a format specified in Settings. If the user specifies a Tab separator, then the coordinate can be pasted into a spreadsheet in separate columns. While this tool is selected, the coordinate the mouse is over is shown in the lower left-hand corner either in decimal degrees, DMS, MGRS, Plus Codes, WKT POINT, or GeoJSON notation depending on the Settings. By default it uses the Geographic Latitude and Longitude to snapshot the coordinate, but this can be configured in Settings to use the project CRS or any other projection desired. See the Settings section for more details on the all the possibilities.
Zoom to Latitude, Longitude - With this tool, type or paste a coordinate into the text area and hit Enter. QGIS centers the map on the coordinate, highlights the location and creates a temporary marker at the location. The marker can be removed with the
button. If the default WGS 84 (EPSG:4326 - latitude/longitude) coordinate system is specified, "Zoom to Latitude, Longitude" can interpret decimal degrees, DMS, WKT POINT, or GeoJSON coordinates. If configured in Settings, it can zoom to MGRS coordinates, Plus Code coordinates or coordinates formatted in the project CRS or any other projection. The Coordinate Order in Settings dictates whether the order is latitude followed by longitude (Y,X) or longitude followed by latitude (X,Y). By default the order is "Latitude, Longitude", the format used by Google Maps. Pressing the
also causes QGIS to zoom to that location.
Points Digitizing Tool - This tool digitizes points and add features the selcted layer using the same coordinate input formats as the Zoom, to Latitude, Longitude. A point vector layer must be selected and be edit mode for this tool to be enabled. When the user clicks on the tool, the following dialog is displayed.
Enter a coordinate in any of the Zoom to Latitude, Longitude formats and press Enter or click on the Add Feature button. If a layer contains fields then a secondary dialog box will popup to allow editing of the attributes.
The projection of the input coordinates can be specified by the CRS drop down menu which has the following options:
The next drop down menu specifies whether the coordinates are listed as Y,X (Latitude, Longitude) or X,Y (Longitude, Latitude). If the coordinate uses N, S, E, W then these take presidence and this setting is ignored.
Right below the text input box is a status line that tells you exactly what CRS and coordinate order you are using.
Show in External Map - With this tool, the user can click on the QGIS map which launches an external browser and displays the location on an external map. Currently Open Street Map, Google Maps, MapQuest, and Bing Maps are supported. The desired map can be configured in Settings.
Multi-location Zoom - Here the user can define a set of quick zoom-to locations. The user can also paste in or type in a coordinate in the Add location box to add it to the list. By default the format of the data entered is "latitude,longitude[,label,data1,data10]" where the contents in the [] are optional. Optionally, the user can define the input as "Y,X[,label,data1,...,data10]" where Y and X are coordinates defined by the project CRS or some other CRS. See Settings to set the input coordinate CRS. This defaults to WGS 84, Latitude and Longitude.
When the user clicks on a location in the list, QGIS centers the map on the location and highlights it. Double clicking on a Label or Data cell allows the text to be edited. By default the Data fields will not be visible, but can be added from Settings. More than one location can be selected by clicking on the first point and then Shift-Click to select a range or using Ctrl-Click to add additional selected items. Markers for all selected items will be displayed. The following are additional functions.
Conversions
Settings - Displays the settings dialog box (see below).
By default Lat Lon Tools follows the Google Map convention making it possible to copy and paste between QGIS, Google Map, Google Earth, and other on-line maps without breaking the coordinates into pieces. All tools work with latitude and longitude coordinates regardless of the QGIS project coordinate reference system. In Settings the user can choose the Coordinate Capture Delimiter used between coordinates with presets for Comma, Space, and Tab. Other allows the user to specify a delimited string which can be more than one character.
The CRS and coordinate order are independently set for the coordinate capture, zoom to, and multi-zoom to tools. Be careful when setting one of these settings, that you check the rest to make sure that they are set correctly for your needs.
There are 5 capture projections/formats that can be selected from the CRS/Projection of Captured Coordinate drop down menu. They are as follows.
Additional coordinate formatting can be specified with WGS 84 (Latitude & Longitude) Number Format.
For Other CRS Number Format such as Project CRS or Custom CRS the coordinate formatting options are:
The order in which the coordinates are captured are determined by Coordinate Order (Not applicable to MGRS and WKT) and are one of the following:
Lon, Lat (X,Y) Order.
Coordinate Capture Delimiter (Not applicable to MGRS and WKT) - Specifies the delimiter that separates the two coordinates. The options are:
The Zoom to Latitude, Longitude tool accepts the following input coordinates as specified by Zoom to Coordinate Type:
The order in which the coordinates are parsed in the Zoom to Latitude, Longitude tool is specified by Zoom to Coordinate Type and has the following two options: This is not applicable for MGRS coordinates, WKT coordinates, nor Plus Codes coordinates.
Use Persistent Marker - If this is checked, then when you zoom to a coordinate a persistent marker is displayed until you exit, zoom to another location, or click on the button.
You can Select an External Map Provider. The options are:
Map Hints are desired attributes you would like to see in the resulting map.
These are settings for the Multi-location zoom dialog box.
CRS of 'Add location' Input Coordinates
The user sets the CRS/projection of the coordinates entered in the Add location text box. By default this is set to WGS 84, latitude and longitude. This has no effect on the coordinates in the Location List that can be read in. The location list must always be WGS 84. The options are:
When Custom CRS is selected, the user is allowed to select a custom CRS projection.
Coordinate Order of 'Add location' Input Coordinates
The user sets the order of coordinates entered in the Add location text box. The order is either latitude followed by longitude (Y,X) or longitude followed by latitude (X,Y). By default the order is "Latitude, Longitude", the format used by Google Maps.
Create Vector Layer Style
The user can specify a style when creating a layer from the zoom locations. It can be a simple default style, default with labels, or a .qml style file that contains advanced styling.
The Browse button allows selection of the .qml style file. When a .qml file is selected, Custom is automatically selected as the default style.
Data Field Settings