Must I change the geoid using UTM projection?
3 views (last 30 days)
Show older comments
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 Comments
Accepted Answer
Rob Comer
on 30 Jun 2011
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.)
More Answers (0)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!