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
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

Thank you Chad for your response, Much appreciated.
Im afraid this isn't working, the command: plot(S.Lon,S.Lat) is not accepted, even if I had my lat and lon defined. Any other suggestions?
Thanks again
What do you mean whenyou say the plot command isn't accepted? Is there an error message?
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)
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)))

댓글을 달려면 로그인하십시오.

카테고리

질문:

EL
2015년 3월 4일

댓글:

2015년 3월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by