필터 지우기
필터 지우기

Convertion from latitude,longitude to UTM

조회 수: 123 (최근 30일)
Urmila Datta
Urmila Datta 2022년 8월 23일
답변: Tushar 2023년 9월 7일
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)

답변 (1개)

Tushar
Tushar 2023년 9월 7일
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

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by