How to overlay a shape file onto a wind density contour plot
3 views (last 30 days)
Show older comments
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
0 Comments
Answers (1)
Chad Greene
on 5 Mar 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 Comments
Nabeel
on 9 Mar 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
on 9 Mar 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)))
See Also
Categories
Find more on Map Display in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!