How to overlay a shape file onto a wind density contour plot
이전 댓글 표시

Hi,
I am having problems overlaying a shape file of Northern Ireland onto a wind density colour contour map that I have generated within the latitude and longitude of Northern Ireland.
I have attached the wind density contour map
If any one could help me with this, would be much appreciated.
Thanks
답변 (1개)
Chad Greene
2015년 3월 5일
For a single landmass,
S = shaperead('filename.shp','usegeocoords',true);
plot(S.Lon,S.Lat)
If the shapefile contains multiple landmasses, loop the plot line from 1 to N.
댓글 수: 4
EL
2015년 3월 6일
Chad Greene
2015년 3월 8일
What do you mean whenyou say the plot command isn't accepted? Is there an error message?
Nabeel
2015년 3월 9일
same case is with me i want to over lay shape file on a surf image which i have produced by following code
base=surf(LON,LAT,ETOPO2); shading interp; axis equal, view(0,90);
i use the hold on command for surf and than try to plot shape file but it is not displayed on surf image (topographic)
Chad Greene
2015년 3월 9일
The plot command is placing lines at z=0. So presumably, the lines are plotted below the z values of your topographic surface. Use
plot3(S.Lon,S.Lat,max(ETOPO2(:))+ones(size(S.Lon)))
카테고리
도움말 센터 및 File Exchange에서 Map Display에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!