How to overlay a shape file onto a wind density contour plot
Mostrar comentarios más antiguos

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
Respuestas (1)
Chad Greene
el 5 de Mzo. de 2015
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 comentarios
EL
el 6 de Mzo. de 2015
Chad Greene
el 8 de Mzo. de 2015
What do you mean whenyou say the plot command isn't accepted? Is there an error message?
Nabeel
el 9 de Mzo. de 2015
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
el 9 de Mzo. de 2015
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)))
Categorías
Más información sobre Map Display en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!