# Questions tagged [coordinates]

Any of a set of two or more numbers used to determine the position of a point, line, curve, or plane in a space of a given dimension with respect to a system of lines or other fixed references.

1,690 questions
Filter by
Sorted by
Tagged with
577k views

### Measuring accuracy of latitude and longitude

I have latitude and longitude as 19.0649070739746 and 73.1308670043945 respectively. In this case, both coordinates are 13 decimal places long, but sometimes I also get coordinates that are 6 decimal ...
• 6,187
195k views

### Getting coordinates from geometry in PostGIS

This line: SELECT geom FROM myLayer.geom will return a hex value. How would I get decimal values, which is a human-readable coordination?
• 1,299
254k views

### Creating point features with exact coordinates in QGIS

How do I create point features with exact (manually entered) coordinates in QGIS? I get precise GPS coordinates from a survey team which I need to add to a point layer. What I want: add point, type in ...
• 919
97k views

### Generating random locations nearby?

I am trying to create random locations nearby my location. What i want is to create random latitude/longitude pairs inside a 200 meters circle surrounding my location. This is the formula i came up ...
• 433
23k views

### Is WGS84 itself a Coordinate Reference System?

I was wondering the difference between WGS84 and EPSG:4326 (see this). Can then WGS84 on its own be defined as a Coordinate Reference System? Or is it just a datum so that a Coordinate System must ...
• 785
95k views

### Calculating latitude and longitude of points using QGIS

How do I easily calculate the lat/long of points using the QGIS Field Calculator? I saw a previous related question (Using QGIS API and Python, to return latitude and longitude of point?), but it ...
• 16.3k
73k views

### Returning lat and long of centroid point with GeoPandas

I would like to return the lat, lon or x, y from the point object in the following series as I plan to link them with an API I built that links OSM and NetworkX. The centroids will be added as new ...
• 8,563
4k views

### Why do we use the terms “longitude” and “latitude” for a spherical body?

To specify a geographic coordinate we use the terms “longitude” and “latitude”. Far as I know, these terms derive from the Latin latitudo (= breadth) and longitudo (= length). In German we use the ...
• 6,219
89k views

### Сreating polygon from coordinates in GeoPandas [closed]

How to create a polygon from coordinates in GeoPandas with Python?
• 850
58k views

### List of central coordinates (centroid) for all countries?

I need a list of the central points (centroid) for all countries: China: lat/long (coordinates of the most central point in China) France: lat/long (coordinates of the most central point in France) ...
• 465
36k views

### Moving vectors to specified coordinates in QGIS?

I have a layer of vectors located around, say, (100, 100), and I want to move them to new coordinate like (1000, 1000). How should I do it using QGIS?
• 771
71k views

### Importing coordinate data from Excel into QGIS

I have an Excel file containing data collected over many years as latitude and longitude coordinates for archaeological sites. How can I import it into QGIS as a new layer?
• 311
68k views

### Change OpenLayers 3 view center

I'm using OpenLayers 3 to interact with some maps. I first declare my map: map = new ol.Map({ target: 'map', layers: [ new ol.layer.Tile({ ...
• 313
34k views

### Converting between wgs84 and nad83

This is a newbie question that is about converting between wgs84 and nad83. I have aerial photos that I am trying to compute lat long coordinates for as closely as possible. There are several factors ...
26k views

### Looking for a tool that will place the cursor to a specific x,y coordinate

I am a new user to Quantum GIS. I am looking for a tool/function that will allow a user to type in coordinates, and place the cursor on that exact position. This is for navigation in the field... ...
51k views

### Using Leaflet Js, is it possible to know the onclick location of a Marker (ignore anchor point)?

I have a marker object that is of a specific height and width, and although it is pointing a single coordinate, the visual representation of the marker spans many pixels. When I click on the visual ...
• 193
16k views

### Leaflet: Container coordinates vs Layer coordinates?

What is the difference between map container coordinates and layer coordinates? From what I gathered, the map container coordinates are always relative to the map viewport, and while layer ...
• 273
2k views

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

While converting an old system, I came across a position column with values in a format like this: 38RQT6410550656 While I've never seen global positioning represented this way, putting this in ...
34k views

### Manually editing point coordinates in QGIS

Is there a tool for shapefiles or a QGIS Plugin available, which will enable me to edit the coords of a point manually ? ("tool" -f1 "Tsunami Gauge"-move x1.abcdef -to x2.ghijkl) ...
15k views

### Shapely coordinate sequence to GeoDataFrame

Using the shapely bounding box function box, and a GeoDataFrameof points, I have extracted a bounding box and created a buffer around it (below gdf is a GeoDataFrameof points): bbox=shapely.geometry....
• 2,092
17k views

### Given a set of coordinates, how can I calculate the minimum bounds?

I have a set of coordinates in lon/lat. There are always at least 3 ordered coordinates that form a poly (if they were projected flat). How can I calculate the minimum bounds for these coordinates as ...
• 1,251
21k views

### Calculating coordinates of square x miles from center point?

I am trying to create a x mile square (or circle) around a central point, where all sides of the square would be x miles from the centre. I need the 4 corner coordinates. It is scrambling my brain ...
• 323
43k views

### Calculating midpoint from series of latitude and longitude coordinates

I have a series of longitude and latitude coordinates which represent a building outline e.g. -0.5485381346101759,53.2285150736142 -0.5482220594232723,53.22842450827133 -0.5482298619861881,53....
2k views

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

I have a series of coordinates (e.g. 38,40.1365N, 75,4.23933W) that I cannot make sense of. These coordinates were with the pictures taken with iPhone 12. I need to know their type so that I can then ...
2k views

### Displaying vertex coordinates of polygon or line without creating new layer in QGIS

I am wondering if there is a way to display coordinates for each vertex of a polygon by only using expressions, without creating a new layer. So this question is basically inspired by Displaying ...
• 34.6k
21k views

### How to export polygon coordinates to CSV (not WKT)?

I am trying to export polygon coordinates from a shapefile to a CSV file, but so far all my attempts have failed. I have found numerous questions and answers about this, but none have solved my ...
• 113
18k views

### Creating square buffers around points using shapely? [duplicate]

I am trying to create square buffers around given points, I am able to create circular buffers but how do I create square ones? from shapely.ops import transform from shapely.geometry import Point ...
• 391
5k views

### If Geographic Coordinates are unprojected coordinates, how can GIS softwares display such unprojected data on a plane?

I have been using ArcGIS and QGIS regularly for about 2 years now, and just recently I was struck by this new thought. If a data set in say, in ArcMap, has been georeferrenced with a Geographic ...
• 500
7k views

### Is there a standard for the coordinates of pixels in georeferenced rasters ?

We are working with different raster datasets, and the pixel coordinates are either stored at the center of the pixel or at one corner. The information is usually provided in the metadata, but ...
• 49.7k
5k views

### Given Lat and Lon identify if point over land or ocean using R

In R, how do I identify if a point is over land or ocean? e.g. for: set.seed(0) lat <- runif(10, -80, 80) lon <- runif(10, -180, 180) points <- expand.grid(lat, lon) I would like to create a ...
• 1,943
35k views

### Making POINT from longitude/latitude coordinates in existing table using PostGIS?

I would like to make a POINT using the longitude and latitude columns of an existing table. Here's a link to the documentation of ST_MakePoint. Here's my table: CREATE TABLE sysinst.bio ( oid ...
• 617
7k views

### How do I group near points with GPS positions?

I'm an IT person so I don't know too much about projections and so on, I hope you can help me. I have made an application for Android that collects a GPS position, so I have the latitude and the ...
• 113
4k views

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

Original problem : I tend to often invert X & Y in WGS84 lat/long CSV import. I'm wondering now if there is a way not to reimport the original file (as this is the basic solution for points) and ...
• 7,858
9k views

### Transforming single QgsGeometry object from one CRS to another using PyQGIS

I have a polyline layer with roads in WGS84 that covers several UTM zones. For every road I need to place a set of points at different distances (in metres). To do so I want to reproject each road to ...
• 5,621
8k views

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

Created a global map by adding the OpenStreetMap and WorldMap layers in QGIS. Drew polygons over that, creating what I believe is a polygon layer. I've also created a layer of the Nodes/Vertices of ...
• 103
68k views

### Convert geometry to latitude-longitude using PostGIS ST_Transform

My table has a geometric field, in EPSG:3857, of type point. I need the latitude and longitude, in EPSG: 4326, of each point. Could someone give me a valid example of how to use ST_Transform().
• 989
6k views

### Returning latitude and longitude of point using PyQGIS [closed]

I have a point layer, that I'd like to return the Longitude, latitude using the PyQGIS. How do I use QgsPoint to do that?
• 8,563
26k views

### Calculating View Angle

I am looking for the most accurate way of calculating the view angle (Azimuth, Elevation) from a reference point (my location) A to another point B. I have the Lat, Lon, and Altitude for each point. ...
• 111
5k views

### Order of latitude and longitude in EPSG:4326

I recently started working with GPS data in PostGIS and am very confused about the order of latitude and longitude. I'm from Europe, and here everyone I know uses latitude first, longitude second, e.g....
• 231
2k views

### How to create dynamic leader lines?

I'm trying to create dynamic leader lines by using a PostGIS view in addition to the QGIS „Move Label“ tool. CREATE VIEW leader_line AS SELECT gid, ST_MakeLine(geom, ST_SetSRID(ST_MakePoint(...
• 1,996
456 views

### Georeferencing Museum specimens with poor locality descriptions

I am currently collating a list of specimens from databases of various natural history museums for further research. However, a well known issue associated with majority of historical data is the lack ...
• 1,342
39k views

### How to add Lat/long columns to a point layer which is not in WGS84? [duplicate]

I need to extract the Lat/long coordinates of the centroids of districts. My QGIS project SCR and the different layers have all been set on "WGS 84 / UTM zone 18N". I've created the centroids using ...
21k views

### Converting polygon to list of coordinates with shapely

I received a code, that expects a list of coordinates such as this as input area_polygon = [{'lat': 46.037286, 'lng': 14.471329}, {'lat': 46.036733, 'lng': 14.467378}, {...
• 193
2k views

### Determining CRS from given point coordinate set

I have a set of coordinates (X, Y) and I do not know which coordinate system they are actually in. They are definitely in a projected coordinate system since they are not in decimal degrees. However, ...
• 652
2k views

### Add an Excel file with a list of coordinates to QGIS as a layer?

I've added delimited text layers to QGIS before with columns consisting latitude and longitude separately. But Now I have an Excel file like: station no parcel no parcel coordinates 63 ...
• 674
10k views

### Representing Time in GeoJSON?

I'm modelling a bus route as a series of waypoints. Most of these waypoints have just a latitude and a longitude and represent points along a road. However, when the bus gets to a bus stop, the ...
• 442
32k views

### Finding country from coordinates using Python

I have tweets with coordinates. I'm trying to bucket the tweets by country using the coordinate information. I know that I can achieve this using some hosted web services but all of these have API ...
174 views

### Mean coordinates in QGIS yields displaced point from centroid

I need to get the weighted centroid from a grid layer (according to an attribute of the polygons on this layer). For that, I am using the "mean coordinates" tool, but I realized that the ...
• 93
511 views

### Creating grid in QGIS 'anchored' to specific point

I need to create grids using QGIS with specific intervals 'anchored' to, or beginning at, a specific UTM coordinate. This is for a survey sampling procedure. For example: a point was determined - UTM ...
• 91