4 ms·
Earlier this week I wanted to write a function that takes geographic coordinates and returns whether that coordinate is on land or in water. I might be able to
by heydenberk 12y ago
Earlier this week I wanted to write a function that takes geographic coordinates and returns whether that coordinate is on land or in water. I might be able to use the raster data here to do that.
- bdon 12y agoDepending on the resolution you need, the OpenStreetMap derived world coastline may work better: http://openstreetmapdata.com/data/land-polygons http://openstreetmapdata.com/data/land-polygons
- gissolved 12y agoYou could also use the World Vector Shorelines (http://shoreline.noaa.gov/data/datasheets/wvs.html http://shoreline.noaa.gov/data/datasheets/wvs.html) or if you need lakes, the GSHHG (http://www.ngdc.noaa.gov/mgg/shorelines/gshhs.html http://www.ngdc.noaa.gov/mgg/shorelines/gshhs.html) from NOAA. I recently implemented similar functionality in Python, I haven't open sourced it (yet) but I can share some code if you want.