Lat Lon Tools is a suite of tools that makes it easy to capture and zoom to coordinates and interact with other on-line mapping tools. It also adds MGRS 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.
-
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, or WKT POINT 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, or WKT POINT coordinates. If configure in Settings it can zoom to MGRS 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.
The following are acceptable coordinate formats when the Settings Zoom to Coordinate Type is set to WGS 84 (Latitude & Longitude). When the letters "N, S, E, W" are used, then the coordinate order is not important. These letters can be used before or after the coordinates. As long as the coordinate is understandable, punctuation, spaces, and ° ' " are optional. In these examples "d" represents degree digits, "m" minutes, and "s" seconds. Here are some example input formats:- Decimal Degree: 38.959390°, -95.265483° / 38.959390, -95.265483 / 38.959390N, 95.265483 W (d.dddd, d.dddd)
- Degree, Minute: 38° 57.5634'N 95° 15.92890'W (d m.mmmm, d m.mmmm)
- Degree, Minute: 3857.5634N 09515.92890W (ddmm.mmmm, ddmm.mmmm) - In this format there must be 2 digits for latitude degrees, and 3 digits for longitude degrees.
- Degree, Minute, Second: 38°57'33.804"N, 95°15'55.739"W (d m s.ssss, d m s.ssss)
- Degree, Minute, Second: 385733.804N 0951555.739W (ddmmss.ssss, dddmmss.ssss) - In this format there must be 2 digits for latitude degrees, and 3 digits for longitude degrees.
- WKT: POINT(-95.265483 38.959390)
- Example MGRS coordinate when Zoom to Coordinate Type is set to MGRS: 15S UD 03704 14710
-
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, 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 or type in a coordinate in the Add location box and add it to the list. When the user clicks on a list location, 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. The following are additional functions.
- Open Location List reads in a set of coordinates that are comma separated with an optional label. There should only be one location per line and formatted as "latitude,longitude,label" or "latitude,longitude".
- Save Location List saves all of the zoom-to entries in a .csv file, formatted as "latitude,longitude,label".
- Delete Selected Location removes the selected location.
- Clear All Locations removes all of the list locations.
- Create Vector Layer From Location List creates a memory layer out of the zoom-to locations.
- Show Style Settings chooses a style for the layer created from the create layer button. This displays the Settings dialog box.
- Start Capture enables the user to click on the map to capture coordinates directly to the list.
- The Show all markers displays markers of all locations.
-
MGRS Conversions
- MGRS to Geometry - This takes a table or vector layer and if there is a field that contains MGRS coordinates, it converts the layer to a new point vector layer where each record is converted to WGS84 (EPSG:4326) geometry.
- Geometry to MGRS - Convert a point vector layer into a point memory layer, but add an MGRS column, containing coordinates based on the vector layer's geometry. MGRS supports measuring precisions of 1m, 10m, 100m, 1km, 10km, and 100km. MGRS Precision of 5 is 1m and an MGRS Precision of 0 represents a point accuracy of 100km.
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.
There are 4 capture projections that can be selected from the Coordinate Capture Projection drop down menu. They are as follows.
- WGS 84 (Latitude & Longitude) - This captures the coordinates as a latitude and longitude regardless of what the project CRS is set to. This is the default setting.
- MGRS - This captures the coordinates in the MGRS format,
- Project CRS - This captures the coordinates using the project's specified CRS.
- Custom CRS - The captures the coordinate in any coordinate reference system regardless of what the project CRS is set to. When this is selected, then the Custom CRS dialog box is activated allowing selection of any projection.
Additional coordinate formatting can be specified with WGS 84 (Latitude & Longitude) Number Format.
- Decimal Degrees - "42.20391297, -86.023854202"
- DMS - "36° 47' 24.27" N, 99° 22' 9.39" W"
- DDMMSS - "400210.53N, 1050824.96 W"
- WKT POINT - POINT(-86.023854202 42.20391297)
For Other CRS Number Format such as Project CRS or Custom CRS the coordinate formatting options are:
- Normal Coordinate - Decimal coordinate notation.
- WKT POINT
The order in which the coordinates are captured are determined by Coordinate Capture Order (not applicable to MGRS coordinates or WKT formatted coordinates) and are one of the following:
-
Lat, Lon (Y,X) - Google Map Order
-
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:
- Comma - This is really a comma followed by a space.
- Tab - This useful if you are pasting the coordinates into two columns of a spreadsheet.
- Space
- Other - With this selected, the contents of Other Delimiter is used.
-
DMS Second Precision - Used when formatting DMS coordinates and specifies the number of digits after the decimal.
The Zoom to Latitude, Longitude tool accepts the following input coordinates as specified by Zoom to Coordinate Type:
- WGS 84 (Latitude & Longitude) - Input coordinates can be either in decimal, DMS or WKT degrees. The order of the coordinates are determined by Zoom to Coordinate Order.
- MGRS - This accepts MGRS coordinates as input.
- Project CRS - This accepts coordinates formatted in the CRS of the QGIS project. The numbers can be formatted in decimal or WKT notation.
- Custom CRS - You can specify any CRS for the input coordinates and QGIS zooms to that coordinate regardless of the project CRS. The numbers can be formatted in decimal or WKT notation.
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 or WKT formatted coordinates.
- Lat, Lon (Y,X) - Google Map Order
- Lon, Lat (X,Y) Order
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.
Here you can Select an External Map Provider. The options are:
- OSM - Open Street Map
- Google Map
- Google Aerial
- Bing Map
- Bing Aerial
Map Hints are desired attributes you would like to see in the resulting map.
- Show placemark - When checked the external map shows a placemark at the location clicked on in the QGIS map. If this is not checked then the external map centers itself around clicked location, but will not display the placemark.
- Map Zoom Level - This is the desired default zoom level in the external map when it is launched.
These are setting for the Multi-location zoom dialog box. 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 user can choose up to 10 additional data fields.
- Default style for multi-location zoom new layers determins the new layer style when Create Vector Layer Fron Location List is clicked on. The options are:
- Default - No style is applied.
- Label - The newly created layer will have labels next to the points.
- Custom - The user can create a QGIS .qml file that contains style infomation on how to style the new layer. If this is configured, then this will apply this style to the new layer.
- Number of extra data fields - Besides Latitude, Longitude, and Label, the user can add up to 10 additional data fields which are labeled as Data1, Data2, ... Data10. By default this is set to 0.