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

17 Ansichten (letzte 30 Tage)
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

Akzeptierte Antwort

David Hill
David Hill am 7 Mär. 2023
Bearbeitet: David Hill am 7 Mär. 2023
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);

Weitere Antworten (0)

Kategorien

Mehr zu Computational Geometry finden Sie in Help Center und File Exchange

Produkte


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by