Easiest way to check if the point is on the land or on sea?
17 ビュー (過去 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!