필터 지우기
필터 지우기

Plotting a Map on App Designer

조회 수: 36 (최근 30일)
Yasmine Abdennadher
Yasmine Abdennadher 2023년 3월 2일
답변: Cameron 2023년 3월 2일
Hi,
I have a '.shp' file that I am trying to read in using readgeotable then plotting on a map. I have been able to this on a regular figure (shown bellow), but I am having trouble figuring out how to do it on App Designer. Does anyone have any tips?
% Print out the main map (street)
geolimits([41 50],[-122.95 -110])
geobasemap streets
hold on
% Read in ARCGIS data and print on top of street map
GT = readgeotable('BPA_TransmissionLines.shp'); %the .shp file holds line locations
geoplot(GT,'-r','linewidth',1.5)

답변 (1개)

Cameron
Cameron 2023년 3월 2일
You need to put your geoaxes() in a Panel component. It will not work with the UIAxes.
gx = geoaxes(app.Panel);
geolimits(gx,[41 50],[-122.95 -110])
geobasemap(gx,"streets")

카테고리

Help CenterFile Exchange에서 Geographic Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by