Skip to main content

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.

Filter by
Sorted by
Tagged with
607 votes
7 answers
579k 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 ...
Saurabh's user avatar
  • 6,197
39 votes
9 answers
96k 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 ...
djq's user avatar
  • 16.3k
24 votes
5 answers
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?
Bill's user avatar
  • 311
10 votes
2 answers
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 ...
SS_Rebelious's user avatar
  • 5,621
24 votes
6 answers
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?
ChanDon's user avatar
  • 771
91 votes
13 answers
256k 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 ...
Per Engstrom's user avatar
6 votes
1 answer
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 ...
sudhanshud's user avatar
4 votes
2 answers
7k 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-...
interwebjill's user avatar
43 votes
9 answers
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 ...
pindleskin's user avatar
42 votes
1 answer
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 ...
Campa's user avatar
  • 795
11 votes
1 answer
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 ...
Atihska's user avatar
  • 391
8 votes
3 answers
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 ...
Noe's user avatar
  • 81
10 votes
0 answers
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 ...
Stanislas Rebaudet's user avatar
8 votes
2 answers
45k 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, ...
Jason's user avatar
  • 289
7 votes
8 answers
7k 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 ...
Vinay's user avatar
  • 231
7 votes
5 answers
11k 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 ...
boulder_ruby's user avatar
  • 1,824
13 votes
5 answers
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 ...
Bex's user avatar
  • 323
12 votes
2 answers
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 ...
MrXsquared's user avatar
  • 34.9k
11 votes
4 answers
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 ...
Sveinung's user avatar
  • 113
8 votes
6 answers
23k 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 ...
nulll's user avatar
  • 201
6 votes
2 answers
5k 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 for each lake, which I needed for distance measurements. These centroids have derived lat/long ...
gwfami's user avatar
  • 123
4 votes
3 answers
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 ...
Neck Beard's user avatar
3 votes
2 answers
35k 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 ...
surftrial's user avatar
2 votes
2 answers
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(*...
FelixIP's user avatar
  • 23.2k
32 votes
2 answers
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 ...
Jens's user avatar
  • 6,219
17 votes
1 answer
35k 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) ...
Chris Pallasch's user avatar
11 votes
1 answer
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 ...
rodrikev's user avatar
  • 510
10 votes
2 answers
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?
dassouki's user avatar
  • 8,563
10 votes
1 answer
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. ...
user66332's user avatar
  • 111
8 votes
1 answer
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 ...
Nora Olsen's user avatar
8 votes
5 answers
10k 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 ...
GeoRay's user avatar
  • 129
6 votes
3 answers
31k views

Adding x,y coordinates to Attribute table in QGIS

If I use the 'Add coordinates to point' it adds the coordinates to in the file, however splits the data into the amount of objects in the original file. If I try to add separate columns in the ...
David Peacock's user avatar
6 votes
3 answers
1k 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 &...
Paul's user avatar
  • 73
5 votes
3 answers
11k 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 =...
mbonad's user avatar
  • 71
5 votes
1 answer
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?
Catlike's user avatar
  • 1,116
4 votes
4 answers
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 ...
Jennifer Taylor's user avatar
4 votes
1 answer
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()....
q9f's user avatar
  • 2,176
3 votes
3 answers
1k 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?
Costa.Gustavo's user avatar
3 votes
2 answers
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 ...
Templeton Peck's user avatar
3 votes
4 answers
5k views

Stripping spatial reference from raster using ArcGIS Desktop?

I am creating an exercise for remote sensing students and would like to take an existing raster and remove the spatial reference from the file so that the students can practice using another image to ...
Chris Strother's user avatar
3 votes
1 answer
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 ...
user28664's user avatar
3 votes
2 answers
46k 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 ...
Ligia's user avatar
  • 1,476
2 votes
2 answers
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 ...
Lukas's user avatar
  • 737
2 votes
2 answers
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 ...
user130019's user avatar
2 votes
1 answer
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 ...
juasmilla's user avatar
  • 479
1 vote
2 answers
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?
Dan D.'s user avatar
  • 153
12 votes
3 answers
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 ...
radouxju's user avatar
  • 49.8k
11 votes
1 answer
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 ...
Abe's user avatar
  • 1,943
9 votes
1 answer
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 ...
Akhil's user avatar
  • 1,435
8 votes
2 answers
31k views

Extracting points from LineString or Polygon and making dictionary out of them in GeoPandas

I am building some pre-processing routines for 3D visualization of GIS data and I have several line and polygon shapefiles with multiple features. I want to extract the points for each of the features ...
Michael Wallace's user avatar

1
2 3 4 5