# Tag Info

### Measuring accuracy of latitude and longitude

POINT #1. lets differentiate Precision from Accuracy As it is clear from the picture we can talk about Accuracy of a measurement (e.g. GPS measurement) if we already know the actual value (exact ...
• 1,052

### Measuring accuracy of latitude and longitude

I think this XKCD is a perfect answer to this question :) https://xkcd.com/2170/
• 1,103

### Calculating latitude and longitude of points using QGIS

With QGIS 3 you can use two simple expressions doing all the reprojection in one go without having to care about settings or projections of the layer. To get decimal degrees as float values use: For x ...
• 34.9k
Accepted

### What format is a location represented like this?

The coordinates are in MGRS (Military Grid Reference System) which is a projected coordinate system. Those coordinates give you an accuracy of 0.1 meters since there are 10 trailing digits. You can ...
• 1,200
Accepted

### What types of lat/long coordinates are these?

They are likely "Degrees, Decimal Minutes". Conversion to Decimal Degrees You can convert it to "Decimal Degrees" by diving the "Decimal Minutes" by 60 and adding the result to the Degrees: 21.440 /...
• 3,630

### Calculating correct longitude when it's over |180|?

An answer that avoids conditionals and function calls: longitude = (longitude % 360 + 540) % 360 - 180 I wrote a quick microbenchmark at https://jsperf.com/longitude-normalisation and the ...
Accepted

### Calculating correct longitude when it's over |180|?

You need to repeatedly add (or subtract) 360 to your value until it lies in the range of -180 - 180. So usually a pair of loops like: lon = -187; while(lon < -180){ lon +=360; } while (lon > ...
• 82.2k
Accepted

### Why does the same UTM northing give different values when converted to latitude?

This is perfectly normal behaviour in a transverse Mercator projection. The fact that a specific northing does not match a specific latitude (except for the Equator itself) can be easily visualized. ...
• 3,846

### What does "¢" mean in a coordinate?

Your viewer, or the website, has some problem with the fonts. Perhaps your browser does not get access to the defined fonts. Works for me, though, and this is how it should look: Coordinates are ...
• 67.3k
Accepted

### What kind of coordinates are 38,40.1365N, 75,4.23933W?

Mobile devices use WGS84 coordinates, and the coordinates might be displayed in different formats. One of them is DDM format. A comma for separating degree and minute, a dot for decimal. Your ...
• 77.3k

### Calculating latitude and longitude of points using QGIS

Since QGIS 3.8 (June 2019), there is now an algorithm to add the X and Y values called "Add X/Y fields to layer". It can reproject coordinates on the fly. If you still need a Degree Minute ...
• 7,290

### Finding distance between two points with GeoSeries.distance

import geopandas as gpd from shapely.geometry import Point geom = [Point(xy) for xy in zip([117.454361,117.459880], [38.8459879,38.846255])] gdf = gpd.GeoDataFrame(geometry=geom, crs={'init':'epsg:...
• 341

### How do I search for a coordinate in QGIS?

You can use the coordinate window in the status bar to pan the map to this location. Enter your coordinate in a lon, lat format (note that it's the reverse order of how you wrote it here), and press ...
• 8,666
Accepted

### Flipping coordinates with Shapely

You can use a simple transformation function with shapely.ops' transform function. For example: def flip(x, y): """Flips the x and y coordinate values""" return y,...
• 830
Accepted

### What is the projection for point(x,y)?

There are plenty of ways to do this using both open source (pyproj, gdal, postgis) and commercial libraries (ArcGIS). If it's just a one time work, you could use this service from Boundless: http://...
Accepted

### Finding distance between two points with GeoSeries.distance

This is a distance in degrees, the coordinates of your data. I can get this using Pythagoras' theorem from your coordinates: >>> a = [117.454361, 38.8459879] >>> b = [117.45988, 38....
• 65.1k

### Is there a way to use a spatial query to invert X and Y coordinates in QGIS?

I propose a solution using PyQGIS: the several codes instantly work from the Python Console, but they can easily be implemented in separate scripts (see the edit at the end of the answer). Each script ...
• 16.3k

### How do I search for a coordinate in QGIS?

You have 2 options (well, it is QGIS, so maybe more) --> use the coordinate window in the status bar --> install the super-simple plugin "Zoom to Point"
• 1,235

### Measuring accuracy of latitude and longitude

The other excellent answers here are primarily about latitude. A degree of longitude shrinks from about 111 km at the equator to 0 at the poles, so the nominal precision of a decimal degree of ...
• 528
Accepted

### Verifying formula that will convert longitude 0-360 to -180 to 180?

Here is an example for fortran: Variables in explanation: long1 is the longitude varying from -180 to 180 or 180W-180E long3 is the longitude variable from 0 to 360 (all positive) To convert ...
• 3,630

### Latitude, longitude, projections, CRS

Latitude-Longitude coordinates are not projected, they live on an ellipsoid. Occasionally, you'll find lat-lon values referenced to a sphere instead. This ellipsoid is, however, defined by a ...
• 42.3k
Accepted

### Extracting Latitude/Longitude from polygon vertices in QGIS

Open your attribute table of the layer you want to add this information to and its field calculator. Create a new field with data type double/real and give it a length and precision of your choice. ...
• 34.9k
Accepted

### Converting lat/lon to Postal code using Python

You can use geopy and its Nominatim geocoder. Here is an example using the DataFrame you provided: import geopy import pandas as pd def get_zipcode(df, geolocator, lat_field, lon_field): ...
• 5,998
Accepted

### Creating square polygon around center of the point using Python

Maybe you can adapt from this code which makes use of Shapely's buffer method through GeoPandas with a squared caps style: import geopandas as gpd from math import sqrt from shapely import wkt def ...
• 10.5k
Accepted

### Converting coordinates from cartesian to geodetic in QGIS

The Show coordinates in use option is for visualization purposes. It doesn't affect the expression. You need to transform. Use this for X: x(transform(\$geometry, @layer_crs, 'EPSG:4326')) and for Y: ...
• 77.3k

### leaflet map crs is 3857 but coordinates 4326

This is a feature, not a bug. Most Leaflet users are not aware that the map's display CRS is different from the map's data CRS, and that's fine; it makes life simpler for most people. If your ...
• 10.3k

### Is there a way to use a spatial query to invert X and Y coordinates in QGIS?

You can use the Affine Transformation plugin to do this. It's not particularly fast, so you might want to try on some fairly simple geometries to begin with. Also, it only works with editable layers, ...
• 20.5k

### Creating polygon using coordinates

To give an example according to @geom recommendation. You must use the syntax to define polygons in WKT format, here an example in CSV: Finally use add delimited text data source: With the ...
• 446