wgs84

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 also point me to a open source Java project :) Some resources found: OpenLayer implementa...

Coordinate Transformation (LL + Elevation to WGS84)

I'm currently working on a 3D visualization project, and I came across an issue that I noticed we've been doing in a hackish way. I'm not too experienced with the WGS84 system itself, and I was wondering if there was a "correct" way to convert a LL point into the WGS coordinate, given a specific value of elevation above the Earth's orbi...

Get map position when WGS-84 lat/lon when upper left and lower right corners' lat/lon are given

Suppose I have a map, for example from openstreetmaps.org. I know the WGS-84 lat/lon of the upper left and lower right corner of the map. How can I find other positions on the map from given WGS-84 lat/lon coordinates? ...

British National Grid Shapefile - convert to WGS84 Lat/Lon

I have a set of ESRI shapefiles which, I'm told, have been written using the British National Grid coordinate system. I need to convert these files to WGS84 lat/lons, for onward conversion to KML files. I'm having trouble doing this as follows: If I open each of the original files in MapInfo Professional telling it that my file has a pr...

Is there a free .NET library to convert OSGB36 to WGS84

I need a .NET tool, preferably a library, that I can use in SSIS to convert Northing/Easting information from Collins Bartholomew (bartholomewmaps.com) into WGS84 with a ssrid of 4326 - to be used in SQL Server (Geography). Edit: In response to an answer given, the script looks interesting; do you think it would be easy to create a c# c...

Wrong coordinate format (wgs84) or am I missing something?

Dummy question here. I'm developing an app that fetches location-aware info. I'm getting location coordinates in following manner: lat=+aaa.bb.cc.dd&lon=+aaa.bb.cc.dd&datum=wgs84 How do I convert those coordinates into standard latitude longitude with single dot. Now it looks as if client is requesting an ip address lookup. ...

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 post it as a comment. The PROJ.4 parameters for SWEREF99 TM is +proj=utm +zone=33 +ellp...

Getting a handle on GIS math, where do I start?

I am in charge of a program that is used to create a set of nodes and paths for consumption by an autonomous ground vehicle. The program keeps track of the locations of all items in its map by indicating the item's position as being x meters north and y meters east of an origin point of 0,0. In the real world, the vehicle knows the loc...

Calculate the distance between a point and a line segment on an ellipsoid (or WGS84 coordinates)?

Hi, I have a line segment AB between two WGS84 coordinates on the earth's surface (or, alternatively, on an ellipsoid), and need to calculate the distance between a point P and the point nearest to P that is on line segment AB. How can I do this? Any help is greatly appreciated. Regards, Jochen ...

PHP Library: Calculate a bounding box for a given lat/lng location

I'm looking for a PHP Library / PHP Script that allows me to calculate an accurate bounding box for a given center point (lat/lon). Using an ellipsoid formula (f.ex. WGS84) would be great. I know, there have to be a library but I'm not able to find one. ...

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 onLocationChanged(Location location) { method to read the altitude of my current location. But i ...

How do I convert a mobile phone GPS to x,y,z with origin at the center of the Earth?

I need to accurately visualize points coming from iPhone (and other) GPS data in 3D. So, what I'd like is to take a WGS84 (right?) point and transform that into an X,Y,Z vector with the origin at the center of the Earth. I Googled for GPS/WGS84 to 3D but I think my search terms are not so great Does someone have a pointer for where to...

Coordinates conversion

Hi, I am working over a small component for a web portal that show polygons over a map, using OpenLayers, Google Maps, and another proprietary source . The user has the points in PSAD56 (UTM) datum and I need to change it to WGS84 in order to use with Google Maps. I have at hand both Oracle 9i without spatial extensions and postgis....