Google Earth Overlay

버전 1.1.0.0 (11.5 KB) 작성자: Cameron Sparr
Overlay a MATLAB figure, .fig file, or image file onto Google Earth.
다운로드 수: 2.5K
업데이트 날짜: 2011/11/17

라이선스 보기

EXPORT_OVERLAY(FILENAME, OUTPUT, RECT)

SYNTAX:
export_overlay(filename, output, [N, S, E, W])
export_overlay(filename, output, [N, S, E, W, R])

INPUT:
filename: must be either:
1. Google Earth supported image file (see below), OR
2. MATLAB format .fig file, OR
3. a figure object handle (use gcf for current figure)

output: .kmz file name (string, relative or full path)

rect: 4 or 5-element vector in the following format:
[north boundary, south bound, east bound, west bound, rotation]

NOTE: If you specify a figure handle or .fig file, it will be exported
as a TRANSPARENT .png file.

GOOGLE EARTH SUPPORTED FORMATS:
.bmp, .dds, .gif, .jpg, .pgm, .png, .ppm, .tga, .tiff, .tif

EXAMPLE 1:
% this will place an overlay of a random plot over Hawaii.
plot(1:1:10, rand(10,1), 'w');
rect = [21.37, 21.36, -157.971, -157.973];
export_overlay(gcf, 'output.kmz', rect);

EXAMPLE 2:
% this will overlay a PNG image over the same location.
% (Assuming 'contour.png' is defined)
rect = [21.37, 21.36, -157.971, -157.973];
export_overlay('contour.png', 'contour.kmz', rect);

EXAMPLE 3:
% you may also use full or relative paths to various images you would
% like to overlay.
rect = [21.37, 21.36, -157.971, -157.973];
file1 = '/home/user/Desktop/contour.png';
file2 = 'figfiles/myfig.fig';
export_overlay(file1, 'contour.kmz', rect);
export_overlay(file2, 'myfig.kmz', rect);

인용 양식

Cameron Sparr (2024). Google Earth Overlay (https://www.mathworks.com/matlabcentral/fileexchange/33699-google-earth-overlay), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2010b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
도움

도움 받은 파일: export_fig

Community Treasure Hunt

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

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

With the help of Oliver Woodford, I simplified the functions required and incorporated the export_fig functions into one file. Also fixed a transparency compatibility issue with the newest MATLAB release.

1.0.0.0