Effacer les filtres
Effacer les filtres

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

151 vues (au cours des 30 derniers jours)
surendra choudhary
surendra choudhary le 12 Fév 2019
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 commentaire
MS Gull
MS Gull le 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

Connectez-vous pour commenter.

Réponse acceptée

KSSV
KSSV le 6 Juin 2022
Modifié(e) : MathWorks Support Team le 6 Juin 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.

Plus de réponses (0)

Tags

Aucun tag saisi pour le moment.

Community Treasure Hunt

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

Start Hunting!

Translated by