From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert WGS84 gps coordinates to xyz

I am using a Garmin handheld GPS 76 to determine vehicle speed and travel path. The serial output gives altitude and latitude/longitude in WGS84 coordinates. I need to get the distance between two points to calculate speed. Does anyone know how to perform the conversion between the this coordinate system and an xyz system?
Thanks,
Kevin Gildea
Message 1 of 7
(31,043 Views)
Look on Google for gps rectangular coordinates latitude longitude .

I found the following link that seemps promising:
http://www.ngs.noaa.gov/TOOLS/XYZ/xyz.html
0 Kudos
Message 2 of 7
(31,043 Views)
or post your question on sci.geo.satellite-nav
I have done it for you...

"Jeremy Braden" wrote in message news:506500000005000000041A0100-1042324653000@exchange.ni.com...
> Look on Google for gps rectangular coordinates latitude longitude
0 Kudos
Message 3 of 7
(31,043 Views)
See: http://www.ngs.noaa.gov/TOOLS/XYZ/xyz.html

Conversion from ECEF XYZ to Latitude, Longitude, and Height
http://www.Colorado.EDU/geography/gcraft/notes/datum/gif/xyzllh.gif

Conversion from Latitude, Longitude, and Height to ECEF XYZ.
http://www.Colorado.EDU/geography/gcraft/notes/datum/gif/llhxyz.gif
0 Kudos
Message 4 of 7
(31,043 Views)

old post, but someone may find this solution helpful:

 

http://forums.ni.com/t5/LabVIEW/Problem-create-executable/m-p/286248/highlight/true#M150728

 

 

0 Kudos
Message 5 of 7
(22,978 Views)

yeah you can use these formulas to convert GPS data into xyz coordinates

 

x=R*cos(lat)*cos(lon)

y=R*cos(lat)*sin(lon)

z=R*sin(lat)

        if you want to find change in position subtract previous value from present value

  R=Radius of the earth(6371km),take lattitude and longitude in radians

0 Kudos
Message 6 of 7
(20,251 Views)

No that is for spherical coordinate system. WGS 84 is an oblate spheriod coordinate system. So the equations are incorrect.

0 Kudos
Message 7 of 7
(19,122 Views)