Easiest way to check if the point is on the land or on sea?
18 次查看(过去 30 天)
显示 更早的评论
I have a grid of points with coordinates and I need to select only points on the land.
I can load coastlines, then split contours with NaN inside (2 of them) into separated ones, then convert each contour to alphaShape, and then apply inShape to each point and alphaShape, but maybe there is simpler way?
Thanks
0 个评论
采纳的回答
David Hill
2023-3-7
编辑:David Hill
2023-3-7
Do you have the mapping toolbox? Use https://www.mathworks.com/matlabcentral/fileexchange/48661-landmask If so it is as simple as:
landmask(lat,lon);
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Computational Geometry 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!