LL2UTM and UTM2LL

버전 1.9.0.0 (7.09 KB) 작성자: François Beauducel
Latitude/longitude to and from UTM coordinates precise and vectorized conversion.
다운로드 수: 9.7K
업데이트 날짜: 2019/5/29

라이선스 보기

UTM2LL converts Universal Transverse Mercator (UTM) East/North coordinates to latitude/longitude.
LL2UTM converts latitude/longitude coordinates to UTM.
Both functions are using precise formula (millimeter precision), possible user-defined datum (WGS84 is the default), and are all vectorized (no loop in the code). It means that huge matrix of points, like an entire DEM grid, can be converted very fast.
Example (needs readhgt.m author's function):
X = readhgt(36:38,12:15,'merge','crop',[36.5,38.5,12.2,16],'plot');
[lon,lat] = meshgrid(X.lon,X.lat);
[x,y,zone] = ll2utm(lat,lon); % do the job!
z = double(X.z); z(z==-32768 | z<0) = NaN;
figure
pcolor(x,y,z); shading flat; hold on
contour(x,y,z,[0,0],'w')
hold off; axis equal; axis tight
xlabel('East (m)'); ylabel('North (m)')
title(sprintf('Sicily - UTM zone %d WGS84',zone))
loads SRTM full resolution DEM of Sicily in lat/lon (a 2400x4500 grid), converts it to UTM and plots the result with pcolor and contour. To make a regular UTM grid, you may interpolate x and y with griddata function.

See "doc ll2utm" and "doc utm2ll" for syntax and help.

인용 양식

François Beauducel (2024). LL2UTM and UTM2LL (https://www.mathworks.com/matlabcentral/fileexchange/45699-ll2utm-and-utm2ll), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2013b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Geometric Geodesy에 대해 자세히 알아보기
도움

받음: utm2deg

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.9.0.0

- utm2ll: fix an issue when input arguments are matrices
- ll2utm: fix an issue when ZONE is vector/matrix but LAT is scalar
- improves input arguments checking

1.8.0.1

repack

1.8.0.0

ll2utm : adds a check for latitude values input argument

1.7.0.0

packaging problem.

1.6.0.0

Following the comment of Frederic Christen (thanks!), ZONE input argument can be scalar, vector or matrix in both ll2utm and utm2ll. Bug corrected for negative ZONE multiple outputs in southern hemisphere.

1.5.0.0

LL2UTM: adds possibility to force the UTM zone (thanks to Mathieu's suggestion).

1.4.0.0

- adds single output argument (ll2utm and utm2ll)
- adds single input argument (ll2utm)

1.3.0.0

minor update.

1.2.0.0

adds an example of ll2utm use.

1.1.0.0

minor update of description.

1.0.0.0