Convertion from latitude,longitude to UTM

199 visualizaciones (últimos 30 días)
Urmila Datta
Urmila Datta el 23 de Ag. de 2022
Respondida: Tushar el 7 de Sept. de 2023
I have converted from lat,long to UTM using automatic zone computation and using the forced zone value. Latitude and longitude are the vectors of length 4168.
zone=utmzone(latitude,longitude); % here may be dominating zone
zone=zone(1:end-1);
[X1,Y1,utmZ1] = ll2utm(latitude,longitude);
[X,Y,utmZ]=ll2utm(latitude,longitude,'wgs84',str2double(zone));
They are not giving same results as some points are in two different zones (32 and 31) . I am confused which one is correct. Attaching the two figures( first automatic, second forced)

Respuestas (1)

Tushar
Tushar el 7 de Sept. de 2023
Hi Urmila,
I understand you are facing issue with converting Latitude & Longitude data to UTM. I have a few suggestions for the same:
  • Check out 'deg2utm' on File Exchange. 'deg2utm' function can convert latitude and longitude vectors into UTM coordinates by using forced zone values. By comparing the output of deg2utm with your code, you can determine if your code is producing the correct results.
  • I encourage you to have a look at a similar MATLAB Answer:
There is an accepted answer in that thread that could be helpful in understanding and resolving your issue.
  • Check out the 'Discussions' page on the File Exchange for the function you are using:
The discussions may provide insights, tips, or solutions related to the function and any issues you might be facing.
Attaching the data you are working off of could have helped reproducing the issue at my end.
I hope these suggestions would help you identify the correct output from your code.
Attaching a reference for further assistance: utmzone

Productos


Versión

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by