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
606 votes
7 answers
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 ...
Saurabh's user avatar
  • 6,187
99 votes
4 answers
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?
Kourosh's user avatar
  • 1,299
91 votes
13 answers
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 ...
Per Engstrom'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
  • 785
39 votes
9 answers
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 ...
djq's user avatar
  • 16.3k
32 votes
8 answers
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 ...
dassouki's user avatar
  • 8,563
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
32 votes
3 answers
89k views

Сreating polygon from coordinates in GeoPandas [closed]

How to create a polygon from coordinates in GeoPandas with Python?
Davma's user avatar
  • 850
27 votes
5 answers
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) ...
seinecle's user avatar
  • 465
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
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
19 votes
3 answers
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({ ...
Guillelon's user avatar
  • 313
19 votes
2 answers
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 ...
John Robertson's user avatar
17 votes
3 answers
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... ...
Marie Ducharme's user avatar
17 votes
2 answers
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 ...
DarkKunai99's user avatar
17 votes
2 answers
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 ...
Saad Malik's user avatar
16 votes
1 answer
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 ...
David Starkey's user avatar
16 votes
1 answer
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) ...
Chris Pallasch's user avatar
14 votes
1 answer
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....
iskandarblue's user avatar
  • 2,092
14 votes
3 answers
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 ...
Pris's user avatar
  • 1,251
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
13 votes
5 answers
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....
user avatar
12 votes
2 answers
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 ...
Haris ur Rehman's user avatar
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.6k
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
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
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
  • 500
11 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.7k
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
11 votes
1 answer
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 ...
Zach's user avatar
  • 617
11 votes
2 answers
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 ...
Kuu's user avatar
  • 113
10 votes
4 answers
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 ...
gisnside's user avatar
  • 7,858
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
10 votes
3 answers
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 ...
Maria's user avatar
  • 103
10 votes
4 answers
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().
csf's user avatar
  • 989
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
10 votes
2 answers
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....
Klamann's user avatar
  • 231
10 votes
2 answers
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(...
Lunar Sea's user avatar
  • 1,996
10 votes
1 answer
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 ...
Vijay Ramesh's user avatar
  • 1,342
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
9 votes
3 answers
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}, {...
Vesnič's user avatar
  • 193
9 votes
3 answers
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, ...
Jio's user avatar
  • 652
9 votes
2 answers
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 ...
Ayda Aktas's user avatar
9 votes
5 answers
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 ...
08Dc91wk's user avatar
  • 442
9 votes
2 answers
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 ...
Prashanth Ellina's user avatar
9 votes
1 answer
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 ...
Jaime S's user avatar
  • 93
9 votes
1 answer
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 ...
Chloe's user avatar
  • 91
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

1
2 3 4 5
34