Questions tagged [wgs84]

WGS 84 is the reference coordinate system used by the Global Positioning System

  1. The coordinate origin of WGS 84 is meant to be located at the Earth's center of mass; the error is believed to be less than 2 cm.
  2. The WGS 84 meridian of zero longitude is the IERS Reference Meridian, 5.31 arc seconds or 102.5 metres east of the Greenwich meridian at the latitude of the Royal Observatory.
  3. The WGS 84 datum surface is an oblate spheroid (ellipsoid) with major (equatorial) radius a = 6378137 m at the equator and flattening f = 1/298.257223563. The polar semi-minor axis b is 6356752.3142 m.

References

160 questions
17
votes
3 answers

GeoJSON and MongoDB: Is it worth it to store points as GeoJSON.Point?

With the introduction of 2.3 > MongoDB has become even more useful with location data handling and querying. MongoDB stores documents as BSON, so each document with have all the document fields, which obviously potentially leads to larger databases…
nevi_me
  • 2,702
  • 4
  • 24
  • 37
10
votes
6 answers

Java code for WGS84 to Google map position and back

Searching for some sample code for converting a point in WGS84 coordinate system to a map position in Google Maps (pixel position), also supporting zoom levels. If the codes is well commented, then it can also be in some other language. You can…
JaanusSiim
  • 2,192
  • 3
  • 22
  • 24
9
votes
1 answer

How to transform coordinate from WGS84 to a coordinate in a projection with PROJ.4?

I have a GPS-coordinate in WGS84 that I would like to transform to a map-projection coordinate in SWEREF99 TM using PROJ.4 in Java or Proj4js in JavaScript. Its hard to find documentation for PROJ.4 and how to use it. If you have a good link, please…
Jonas
  • 121,568
  • 97
  • 310
  • 388
8
votes
1 answer

Convert X,Y pixel to Longitude and Latitude

I have an image 8640x11520 pixels from a part of the map in real scale. I need convert my x, y point to coordinate, anyone has an idea to find out it?? var mapWidth = 8640; var mapHeight = 11520; var mapLatitudeStart = 28.349768989955244; var…
Andre Goncalves
  • 149
  • 2
  • 7
7
votes
5 answers

How does getAltitude() of Android GPS Location Works

HI I tried to implement a simple GPS tracker. Therefore is used lm = (LocationManager) getSystemService(Context.LOCATION_SERVICE); lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 1000, 0, this); Then i used the public void…
RoflcoptrException
  • 51,941
  • 35
  • 152
  • 200
6
votes
3 answers

WGS84 Geoid Height Altitude Offset for external GPS data on IOS

For an application I'm writing we are interfacing IOS devices with an external sensor which outputs GPS data over a local wifi network. This data comes across in a "raw" format with respect to altitude. In general all GPS altitude needs to have a…
Jeef
  • 26,861
  • 21
  • 78
  • 156
6
votes
1 answer

Converting LLA to XYZ

Can you help me to convert lla to xyz coordnates. I am using earthRadius = 6378.137; var x = earthRadius * Math.cos(lat)*Math.cos(lon); var y = earthRadius * Math.cos(lat)*Math.sin(lon); var z = earthRadius * Math.sin(lat); this method to convert…
mcelik
  • 1,073
  • 2
  • 12
  • 22
6
votes
3 answers

Distance using WGS84-ellipsoid

Consider points P1 (60°N, 20°E, 0) and P2 (60°N, 22°E, 0) on the surface of the Earth What is the shortest distance between the points P1 and P2, when the shape of the Earth is modeled using WGS-84 ellipsoid?
Daniele Peruzzini
  • 101
  • 1
  • 1
  • 4
5
votes
3 answers

If You Have A GeoTiff, Would It Be Possible To Transform A Lat/Lon Point To An X,Y Using The GeoTransform?

I'm using the GDAL library. Currently, I can take in an upper left point and an upper right point and chip an image out of the original. What I'd like to do now, is take in two WKT points and convert to X,Y coordinatees to do the same thing. I…
avtoader
  • 63
  • 1
  • 8
5
votes
2 answers

convert wgs 84 to lat/long

Hi I am having a little trouble figuring out how to convert between types of coordinates. I have a list of coordinate sets with the following description "Coordinates are always in the WGS84 system. All coordinates a represented as integer values…
Kenneth Brodersen
  • 955
  • 2
  • 9
  • 13
5
votes
2 answers

Why is boost::geometry geographic Vincenty distance inaccurate around the Equator?

I require a function to calculate the distance between a pair of WGS 84 positions to a high degree of accuracy and I was planning to use the geographic functions from boost geometry. The boost geometry Design Rational states: There is the Andoyer…
kenba
  • 4,303
  • 1
  • 23
  • 40
5
votes
1 answer

Convert Lambert conformal conic projection to wgs84 in r

I have Lambert conformal conic projection x,y information. I need the WGS84 coordinate. But I don't know what is lcc exactly. I have provided the lcc information below. Is there a way to convert lcc to WGS84 in r? example lcc x,y : xy <-…
Rokmc1050
  • 463
  • 1
  • 6
  • 16
5
votes
2 answers

OpenLayers after call setCenter, map is still on 0,0 position

I tried to set map center by method setCenter, but still not working. Map is not moving. I tried to used transform from projection to map projection and without successful. Here is part of code. Thanks.