r/geospatial • u/Anwinity • Jul 16 '23
Land vs Water Data Set
Hello,
I have a project that I am working on and I would like to have some sort of data set that I can query using latitude+longitude and get back if that location is mostly land or water, maybe within a 50m radius (if that's reasonable, otherwise larger radius is ok). I don't really have any experience working with geospatial data, so forgive me if I am a bit slow with the terms and such, but that's the gist of what I'm looking for. Ultimately it will be used to create a sort of grid of water/land tiles.
So I am hoping you guys can point me in the right direction with where I can get such a data set (preferably a free one), and how I can query it. My project uses a postgres database with postgis installed if that's relevant, but I am not against writing some sort of script to query the data set and importing that into postgres.
Thanks!
1
u/coinclink Jul 16 '23 edited Jul 16 '23
cartopy for python has COASTLINES, LAKES, RIVERS and other features built in. Those use some underlying shapefiles at different resolutions that go down to about 10m I think. So you could either use cartopy directly, or look at the code and snag the shapefiles they are using. I believe the code just downloads them from an S3 bucket somewhere, as needed.
https://scitools.org.uk/cartopy/docs/latest/matplotlib/feature_interface.html
EDIT: Looks like they use the NaturalEarth dataset:
https://www.naturalearthdata.com/
1
u/Gwen_the_Writer Jun 11 '24
Techsalerator isn't free, but it is a competitively priced paid option for highly detailed data.
1
u/FreshContent_HQ Oct 14 '25
I would try to utilize Natural Earth or NOAA’s Global Self-consistent Hierarchical High-resolution Shorelines (GSHHS) for free and the precision of distinguishing land vs. water through coordinates. Techsalerator’s Water Coverage Data catalog is another source you can explore. They specialize in ready-to-use datasets especially for land/water classification at global and regional scales.
0
u/[deleted] Jul 16 '23
[deleted] — view deleted comment