How to view a shape file in matlab
이전 댓글 표시
Hello,
I have a .shp file of the country Ireland.
I read the file into matlab using the code:
S = shaperead('Ireland.shp')
My question is how can I view the map?
I would appreciate it if anybody had the time to show me.
Also, is it possible to overlay GPS data on a file of this type?
Thank you
댓글 수: 1
alessio grechi
2018년 10월 18일
편집: alessio grechi
2018년 10월 18일
ciao. Sei riuscito a far visualizzare la mappa in MatLab?
채택된 답변
추가 답변 (2개)
John
2012년 12월 25일
댓글 수: 5
ax = axesm('MapProjection','mercator','MapLatLimit',[50 55.5],...
'MapLonLimit',[-10.5 -5],'Frame','on')
land = shaperead('landareas', 'UseGeoCoords', true);
geoshow(ax, land, 'FaceColor', [0.5 0.7 0.5])
Please read the documentation about axesm() if you want to tweak the display.
John
2012년 12월 25일
John
2012년 12월 25일
José-Luis
2012년 12월 25일
doc plotm
Harold Steven Buitrago Segura
2022년 4월 29일
Maybe you could use the geolimit function
Clelia Massarino
2018년 9월 20일
0 개 추천
Hello,
I am having problem displaying the Germany map. My final goal is to have one with the elevation or at least different colors to discern different altitudes. I used the same code of you but it starts running endlessly. Any suggestion?
댓글 수: 1
Alessandro Mura
2021년 12월 21일
@Clelia Massarino sei riuscito a cambiare i diversi colori della mappa della Germania? se si ti posso chiedere per favore lo script?
ti ringrazio
카테고리
도움말 센터 및 File Exchange에서 Mapping Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
