# 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.

220 questions
Filter by
Sorted by
Tagged with
557k 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,087
89k 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.2k
69k 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
35k 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
8k 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,601
235k 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 ...
• 889
4k views

### Getting coordinates of point on mouse click using PyQGIS

I want to get x/y coordinates of a point on mouse click for a point and need to use those coordinates to evaluate other values as per other modules already define. How can I get x/y coordinates on ...
• 401
6k views

### Convert raster to CSV with lat, lon, and value columns

I'm looking for a process to convert ASCII gridded data (in this case 60min/1 degree gridded ASCII population data (GPW) from SEDAC: https://sedac.ciesin.columbia.edu/data/set/gpw-v4-population-count-...
• 307
96k 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
22k 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
17k 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 ...
• 381
9k views

### Adding "noise" to overlapping X,Y coordinates so no longer in EXACT same place?

I have a series of points representing animal observations. Many of them overlap, having the exact same coordinates, and this is causing me trouble when I want to run some analytical tools which ...
• 81
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 ...
44k views

### Calculate bearing between two decimal GPS coordinates

I'm building a virtual tour application that uses custom panoramas in conjunction with Google's StreetView service. With StreetView, you can have 1 to n links at each particular location to move to, ...
• 289
10k views

### Converting csv to kml/geojson using ogr2ogr or equivalent command line tools? [duplicate]

I've just unsuccessfully tried to use ogr2ogr to convert CSV into KML like so: ogr2ogr -f "KML" output.kml input.csv The csv has "latitude" and "longitude" columns. The attributes are all loaded ...
• 1,826
20k 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
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 ...
• 33k
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
22k views

### Getting all vertex lat, long coordinates every 1 meter between two known points using PHP?

I am currently using php to try and write code that will take a start point and end point latitude and longitude coordinate pair in decimal degrees and calculate the latitude and longitude of every ...
• 201
6k views

### Rounding coordinates to five decimals in GeoPandas

I have a shapefile, which I converted into GeoPandas DataFrame. I would like to round the coordinates to 5 decimals. Is there a method/function in GeoPandas that can do this? My shapefile contains ...
• 231
12k views

### Formula for coordinates (lat, lon), azimuth and distance.

I would like to know how to find a set of coordinates on a small circle some distance from another point. For example, lets say A = (39.73, -104.98) #Denver B = (39.83, -106.06) #point approximately ...
34k views

### How to get Shapefile point coordinates into .xls?

How can I get just Coordinates (in a file) from point features (shapes) without a big hustle. Something like Shape to .xls, with distinct coordinates? I want to use this coordinates immediately, so ...
1k views

### How to handle coordinates accuracy in ArcGIS

I am creating very basic rectangular polygon using very basic a Python code nCols,nRows=100,100 corners =[[0,0],[0,nRows],[nCols,nRows],[nCols,0],[0,0]] p=arcpy.Polygon(arcpy.Array([arcpy.Point(*...
• 22.6k
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,149
32k 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) ...
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 ...
• 480
25k 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
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,553
10k views

### Understanding the difference between coordinates projection in OSM and Google Maps in China

I'm looking at the coordinate differences between Google Maps and OSM. I'm a noob in the technicality behind GIS. Having read: EPSG 3857 or 4326 for GoogleMaps, OpenStreetMap and Leaflet How to ...
• 181
9k views

### Geocoding addresses to coordinates in QGIS

I've got an Excel file which includes known locations with their exact address (street, house number, city, state). This Excel file does not have a geographical column. Also, I have a shapefile inside ...
• 119
4k views

### Getting lat/long for centroids using QGIS

I have a series of polygons (lakes) in Kansas, Oklahoma and a few in Texas. I created centroids of each lake, which I need for distance measurements. These centroids have derived lat/long information ...
• 123
731 views

### Creating multiple separate vector lines from list of coordinate pairs in QGIS

I'm a QGIS user with 2 years of experience but I don't know how to do this task easily. I'm on QGIS 3.10.6 A Coruna. I know how to import CSV coordinate points and then convert them to a vector using &...
• 73
10k views

### How to extract X Y coordinates and RGB from pixels using python in QGIS?

I'm trying to white a Python plugin in QGIS (2.2) to get, for each pixel of a raster image, its X Y coordinates, as well as, its RGB (3 bands) values. At first I opened the raster file using: rlayer =...
• 71
3k views

### How to turn the QGIS "Coordinate capture" plugin on?

I have enabled the Coordinate Capture Plugin via the Plugins menu. But I cannot seem to "turn on" or activate the Plugin and get it running. How do I do that?
• 1,076
25k views

### Extract all the polygon coordinates from a SpatialPolygonsDataframe?

I want to do something relatively simply but it seems to be very difficult to do, though I am very new to using R for spatial data so apologies if I've missed something obvious. I have a list ...
4k views

### How to access Leaflet EPSG:3857 coordinates?

I read everywhere that Leaflet is internally using a spherical web mercator (EPSG:3857), but whatever I try I get either Lat/Lon (EPSG:4326) or strange coordinates I dont understand: map.getBounds()....
• 2,176
12k views

### GTA V coordinates to LatLng

I'm here because I'm trying to create a GTA V map with Leafletjs API. In deed, I've got my tiles that are ready. But the aim is to put markers on the map by using GTA V in-game coordinates. To achieve ...
45k views

### ArcGIS: Create polygon using file containing point coordinates

I have a text file containing the projected coordinates of the points that define a single polygon. The X, Y coordinates are separated by Tab Is there a tool in ArcGIS similar to "Add X,Y Data" in ...
• 1,476
967 views

### Plotting map locations from csv-file

I have a map of a city and a .csv-file containing 700 geographic coordinates pointing to locations within that city. How can I plot these 700 locations on the map?
2k views

### Is it possible to link a QGis project with an excel file?

I have an Excel file with coordinates and I have used this file to plot the coordinates in QGis. I was wondering if it was possible to permanently link the excel file to the QGis project, so that when ...
3k views

### Getting First and Last Point coordinates of Polyline with Field Calculator in ArcGIS Desktop?

I'm trying to get the First Point coordinates (x,y) and Final Point coordinates (x2,y2) from a polyline in ArcGIS 10 with the Field calculator. I've added 4 (double) fields like StartX,StartY,EndX ...
• 459
2k views

### How do I import specific coordinates from Namibia in QGIS?

I have a map here with coordinates from the Schwarzeck Map Datum Format 1903. They have the following format: y: 41 944,31 x: 363 810,71 I want these points to be pictured in QGIS... How is it ...
• 707
4k views

### Reverse Geocoding in QGIS

I have a point shapefile with "Lat" and "Lon" attributes with more than 1000 features. I want to add street address data in the shapefile by Reverse Geocoding but the Geocoding plugin has no such ...
1 vote
11k views

### Exporting coordinates from LAS files to CSV?

Is there any tool available for extracting the X, Y and Z coordinates from a .las file and exporting them to a .csv or similar file?
• 153
6k 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.4k
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,923
14k views

### Line vs. Polygon Intersection Coordinates

I am working with Python, Shapely and Fiona... Is there any way where I can give in an input of a line shapefile and a polygon shapefile, and get a result of the intersection points and their ...
• 1,435
9k views

### Update point coordinates in QGIS after manually moving locations in edit mode

I have imported point coordinates from a database, but I need to manually adjust a lot of the locations. Is there a way for QGIS to automatically update the point locations in the attribute table ...
• 271