필터 지우기
필터 지우기

Easiest way to check if the point is on the land or on sea?

조회 수: 21 (최근 30일)
Fyodor Tatarinov
Fyodor Tatarinov 2023년 3월 7일
댓글: Fyodor Tatarinov 2023년 3월 8일
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

채택된 답변

David Hill
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개)

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by