Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [latitude-longitude]

Angular geographic coordinates that specifying the north-south and east-west positions of locations.

Filter by
Sorted by
Tagged with
439
votes
7answers
377k 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 which are 6 ...
84
votes
4answers
372k views

Does Y mean latitude and X mean longitude in every GIS software?

I am using Mapinfo and it has Y as latitude and X as longitude. Is that the same case for all mapping software? As for any country their respective value is multiple of 1 or -1. So for Nepal can I say ...
72
votes
5answers
38k views

Displaying coordinates and inputs as LatLon or LonLat?

I'm trying to get a sense if this is an issue for others or every input/output should be labeled so user is not confused and just go with it? I think almost everyone pronounces it as "LatLon". Who ...
61
votes
1answer
369k views

Calculating longitude length in miles

Suppose I have geographic coordinates of "Saratoga, California, USA" as Latitude: 37°15.8298′ N Longitude: 122° 1.3806′ W I know from here that in case of latitude 1° ≈ 69 miles and that ...
31
votes
2answers
3k 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 ...
22
votes
5answers
21k views

Manually transforming rotated lat/lon to regular lat/lon?

First I should clarify I don't have previous experience with the field, so I don't know the technical terminology. My question is as follows: I have two weather datasets: The first one has the ...
20
votes
3answers
13k views

Why latitude/longitude and not the other way round?

When you google "latitude/longitude" you get 10 times more results than "longitude/latitude". This I find very confusing as "x/y" seems 20 times more common than "y/x". But on a map Latitude is on ...
19
votes
3answers
21k views

How do you compute the earth's radius at a given geodetic latitude?

(I see there is an equation on wikipedia that does exactly what I am asking but there is no references. I have no way of confirming the validity of this equation!) I already understand the difference ...
19
votes
3answers
19k views

Computing an averaged latitude and longitude coordinates

How can I compute the average between several latitude and longitude spots? Should I just compute the Arithmetic mean for both lat and lng?
17
votes
12answers
11k views

How do you memorize the meaning of longitude and latitude? [closed]

Longitude and latitude are concepts I usually don't need to remember them. However I sometimes suddenly need to learn their meaning for a period of time because I am using them. Is there an aide-...
16
votes
1answer
1k 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 ...
16
votes
1answer
27k views

How can I render latitude-longitude coordinates on a map with D3?

I am trying to overlay dots of arbitrary sets of longitude-latitude coordinates on top of a United States map. So far I have found the D3 cartography example, but when I try to place dots on X,Y ...
16
votes
4answers
776 views

Compare similar lines and update layers

Here there are two layers with the representation of the streets and the idea is: We want to update the most recent layer (with the red line) with some of the data storaged in the other one (the light ...
13
votes
2answers
16k views

Understanding terms in Length of Degree formula?

Online calculators such as http://www.csgnetwork.com/degreelenllavcalc.html (view page source) use the below formulas to get meters per degree. I understand in general how distance per degree varies ...
13
votes
2answers
485 views

Making QGIS interpret coordinates as long-lat instead of lat-long?

I am working with the TRMM 3B31 files on precipitation provided by NASA. When I load them on QGIS selecting the WGS84 projection together with other shape files the maps are displayed vertically, i.e. ...
12
votes
5answers
44k views

Is there a name for 0,0?

Is there a name for the latitude/longitude pair 0,0? On a graph, (0,0) is referred to as the "origin" but I'm not sure if that term also applies to the location 0,0 in cartography.
12
votes
1answer
2k views

Great-circle lines in Equirectangular projection

Just to check that I'm on the right track: Are all great-circles on the sphere and in equirectangular projection (i.e. latitude, longitude pairs) either: meridians (i.e. going pole to pole) of the ...
12
votes
2answers
2k views

How do you find a lat/lon (DMS) on a paper map using a 30cm ruler?

How do you use a 30cm ruler to find DMS on a paper map? The locations I would like to find are the 'corner' points so I can generate an extent based on the four corners. I have an old paper map (3 ...
11
votes
5answers
2k views

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

I'm trying to develop a "formula" to correct the lat-lng values. I'm using vue-leaflet but when you pan outside the "first" world you get big numbers. Over +180 or under -180. For example: when I ...
11
votes
1answer
1k views

What types of lat/long coordinates are these?

I'm trying to map out a set of coordinates that I received: N 39,21.440 W 120,48.076 But i'm not familiar with the format. I'm familiar with DMS lat/longs and the standard(?) format (eg, 39.123234,...
11
votes
4answers
7k views

What methods exist for geohash of polygon?

GeoHash is an excellent method to code the latitude and longitude of a point into a string. It's concise, due to the use of numbers + letters, and the precision can be tuned adding characters at the ...
11
votes
3answers
333 views

Latitude above and below the surface of the Earth

I know that Geodetic Latitude is measured with respect to the normal at a point on the surface of the reference ellipsoid. But what about points above and below the surface? Do they follow a ...
11
votes
2answers
3k views

Finding Sentinel tile for specific Long/Lat coordinate

I'm building a tool that downloads images from "Sentinel-2 on AWS" I have a trouble translating Long/Lat coordinates to a specific Sentinel tile. I know that Sentinel 2 uses MGRS and I tried to ...
10
votes
1answer
3k views

How to compute the bounding box of multiple layers in lat/long?

I am writing an application to performance test all kinds of map services, primarily AGS 9.x, AGS 10, and WMS 1.x. Part of the application involves generating random bounding boxes for individual ...
9
votes
6answers
6k views

Detecting and fixing outliers in a GPS trajectory

I need to find an algorithm or method that can detect outlier latitude longitude points in a trajectory during post-processing, which can then be fixed (brought back into the trajectory's path based ...
9
votes
2answers
3k views

Creating image with specific latitude/longitude positions using GDAL?

I have an ASCII file with latitude, longitude, and data_val in the following format. 35-13.643782N, 080-57.190157W, 118.6 ... I have a GeoTiff image file, and I can easily view it. I want to place ...
9
votes
1answer
3k views

Georeferencing LAS files in geographic coordinates (lat/lon) or in cartesian (projected) ones?

First of all, I am a newbie in GIS. I have a lidar point cloud with GPS and telemetry data associated. Then, I transform coordinates of every point to an ECEF coordinate system and finally I ...
9
votes
1answer
3k views

Convert longitude/latitude to pixels on the map

I have a map from here. I want to be able to simply convert arbitrary lon/lat pair to pixels on the map (also the ability to do reverse conversion). The maps come with .tfw file and projection info, ...
9
votes
1answer
2k views

Project location on a (great circle) path

I've been searching this SE site for quite a few hours now, and I'm still struggling to find a solution to my question. My goal is that given a way in OSM and my location (lat/lon coordinates), I want ...
9
votes
2answers
3k views

How to get latitude /longitude in Degree Minute Second (DMS) using QGIS field calculator?

I have come up with the following expression to convert 5.1234 to 5° 7`24.24" toint ($x) || '° ' || toint((($x) - toint ($x)) * 60) ||'`' || substr( (tostring(((($x) - toint ($x)) * 60) - toint(...
8
votes
3answers
4k views

Why is the GPS Reference Meridian 100m to the East of the Prime Meridian?

Apparently if you stand at Greenwich then your GPS will not say you are at longitude zero. This is because the GPS reference meridian is about 100 metres to the east of the prime meridian. My ...
8
votes
2answers
22k views

How to convert 6 & 7 digit coordinates to degrees latitude & longitude

I'm a bit new to the whole GIS world, and though I am making great headway drawing polygons and such in Bing Maps, I am currently stuck. In our SQL spatial data, I came across MULTIPOLYGON data, where ...
8
votes
4answers
2k views

Formatting longitude/latitude in arabic language?

How should longitude and latitude be properly formatted in the arabic language? e.g. how should the following coordinates be displayed in arabic language: 40°26′46.23″ N, 79°56′56.12″ W?
8
votes
3answers
1k views

Longitudinal Issues with NetCDF data

I am seeking advice on working with world data sets where the GCS has a positive range (0 degrees to 360 degrees). The data I am working with are NetCDF oceanographic data and have positive coordinate ...
7
votes
5answers
12k 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 ...
7
votes
2answers
10k views

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

I have a netCDF file that contains climate data in a Gaussian grid. The longitudes are given from 0 to 360. I need to convert this to -180 to 180. Is this the correct formula - If longitude is ...
7
votes
3answers
3k views

What is the origin of the Degrees, Decimal Minutes format?

In my experience, for most non-GIS folks, the most commonly used and understood coordinate system is good old Latitude and Longitude, displayed as degrees, minutes, and seconds (DDMMSS.ss). In GIS, it'...
7
votes
1answer
931 views

locating latitude-longitude point in a piste-map with matrix transforms

I am trying to plot points of a particular latitude longitude on this image of a Swiss mountainous landscape. What I am doing is I have some 54 known location-points plotted on this image (not ...
6
votes
4answers
911 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 ...
6
votes
5answers
9k views

Where can i find Latitude & Longitude data for the coastlines of the world?

Im developing an application to print flight paths on a world map. To do this i need a dataset to describe the latitude and longitude of various coastlines (and country borders if possible) of the ...
6
votes
1answer
4k views

ogr2ogr specify lat/long order on conversion to GeoJSON

When using ogr2ogr to convert a polyon from a .shp file to GeoJSON, I noticed that it writes the coordinates in order lat, long. I noticed this because whenever I tried to view the GeoJSON on a map, ...
6
votes
3answers
4k views

Extracting values from raster according to Lat and long of values?

having 12 files with 12 hdrs for one year: these files are raster (projected WGS84,lat long): samples = 1440 lines = 720 bands = 1 header offset = 0 ...
6
votes
1answer
2k views

Displaying lat long values from XLS in ArcGIS Desktop?

I have a .xls spreadsheet with about 60,000 rows. Most of them have Latitude and Longitude. I simply want to display these as points in Arc10. I've tried making a .dbf in arccatalog and creating a ...
6
votes
1answer
822 views

Converting while reading a shapefile

I have a set of functions I am using to read shapefiles and produce some geojson files for parsing: def read_shapefile(path, buffer = []): # read the shapefile reader = shapefile.Reader(path) ...
6
votes
2answers
1k views

Transforming data from a rotated pole lat-lon grid into regular lat-lon coordinates in QGIS?

I am working with data from a numerical weather model, the output of which is given in grid cells where I have the lat-lon coordinates of each cell's center point. The lat-lon specifications are, ...
6
votes
1answer
5k views

D3: center a map feature using correct latitude and longitude, without rotation?

The following is a map of Chicago which I've created in D3.js, and the JS code to render it. I had a very hard time centering Chicago within my viewfinder (the white box). After much trial and error,...
6
votes
3answers
8k views

Income data on a block level: how does a newbie do it?

I am a complete newbie at GIS data, and am trying to do the following: Figure out census blocks in Miami-Dade (and several other counties) that have average household incomes > $75,000 Get the ...
6
votes
1answer
4k views

Add distance to a latitude or longitude

Say I have a latitude of 38.802610 and a longitude of -116.419389 and I want to be able to add a distance to that, 20 miles for example. So far I have came up with a rough idea on how I would do this:...
6
votes
2answers
2k views

Choosing datatype for holding Latitude, Longitude and Altitude in PostGIS?

I'm trying to take advantage of the many functions available in Postgis for dealing with latitude and longitude coordinate systems. However, I would like to add some altitude information to my ...
6
votes
0answers
259 views

How should the bounds of decimal and degree coordinates be programmatically handled in respect to hemispheres? [closed]

Are the bounds inclusive of 0, 90/180? Many systems and libraries simply clamp it to from -n to +n without considering zero. In many of these cases the handling of 0 is arbitrary (which hemisphere it ...