Must I change the geoid using UTM projection?

조회 수: 5 (최근 30일)
Javier
Javier 2011년 6월 29일
Hello, I'm working with the UTM projection, I get a kml file from google Earth and I map the geographical coordinates to UTM prjection coordinates, and I think I might have got an accuracy lack,I have used this code according to Matlab mapping toolbox help :
zonaUTM='30S'
utmstruct = defaultm('utm');
utmstruct.zone = zonaUTM;
[ellipsoid,estr] = utmgeoid(zonaUTM);
utmstruct.geoid = ellipsoid;
utmstruct = defaultm(utmstruct);
But after, I have searched in google possible trouble with UTM, and I have found out this link:
And now, I'm bewildered,due to the fact I don't know if I should change the geoid or not. Could anyone help me with?
Thanks,Javier

채택된 답변

Rob Comer
Rob Comer 2011년 6월 30일
In order to work with Google Earth, you should specify the WGS 84 ellipsoid in your code by replacing lines 4 and 5 with:
utmstruct.geoid = almanac('earth','wgs84','meters');
if you are working in meters, or:
utmstruct.geoid = almanac('earth','wgs84','kilometers');
if you are working in kilometers, etc.
UTM was designed in the first half of the 20th century, well before artificial satellites made a global system like WGS 84 possible. So different local datums (and their ellipsoids) were used for UTM in different parts of the world. The purpose of the utmgeoid function is to do a geographic look-up of the standard ellipsoid for a given zone. But now UTM is used with datums like NAD 83 and WGS 84, which did not exist when it was originally defined. The utmgeoid function is not relevant in such cases.
The statement in the solution, "MATLAB’s default reference ellipsoid is International, not WGS 84" is misleading. It really should say something like: "defaultm uses the International ellipsoid for UTM when the ellipsoid and zone unspecified." (The International ellipsoid is the default only in this context.)
  댓글 수: 1
Javier
Javier 2011년 6월 30일
Hi Robert, thank you so much,I can understand,I'm going to change it right now.
thanks again!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by