Azzera filtri
Azzera filtri

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

25 visualizzazioni (ultimi 30 giorni)
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?

Risposta accettata

David Hill
David Hill il 7 Mar 2023
Modificato: David Hill il 7 Mar 2023
Do you have the mapping toolbox? Use If so it is as simple as:

Più risposte (0)




Community Treasure Hunt

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

Start Hunting!

Translated by