How to convert GPS data (lon,lat) data into X, Y (meters)

161 views (last 30 days)
Hello, I have two columns (F,G) of longitude and latitude data..i want to convert them into X,Y (METERS) so that i can make trajectory by using X and Y. my data looks like this:
  1 Comment
MS Gull
MS Gull on 13 Jan 2020
Hello Surendra,
I am doing a project on driver model, and I have a test data obtained from Vbox for a double lane change maneouvre. I have the latitude and longitude data, but using the below solution given by KSSV, I was unable to find X and Y cordinates in metres. The graph obtained is shown below. Kindly help me with this issue.
untitled.jpg

Sign in to comment.

Accepted Answer

KSSV
KSSV on 6 Jun 2022
Edited: MathWorks Support Team on 6 Jun 2022
First, it appears that the values for latitude-longitude in the table have had some sort of scaling or coding applied and will need to be updated to reside within valid ranges. In general though, there are two ways you can convert from latitude-longitude coordinates to x-y, and more information about your application is necessary to advise on which is preferred:
  • You can use projfwd to convert latitude-longitude coordinates to x and y map coordinates in a projected coordinate reference system (CRS) returned by projcrs. This approach requires you to select a CRS which is appropriate for the region of your data.
  • You can use a 3-D coordinate transformation function like geodetic2enu to convert latitude-longitude-height coordinates to x-y-z coordinates in a local Cartesian coordinate system.

More Answers (0)

Tags

No tags entered yet.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!