Must I change the geoid using UTM projection?
2 次查看(过去 30 天)
显示 更早的评论
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:
<http://www.mathworks.com/support/solutions/en/data/1-5Q9JAC/index.html?product=MG&solution=1-5Q9JAC>
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
0 个评论
采纳的回答
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.)
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!