I'm trying to write some code that, given a latitude and longitude, will report which ocean (if any) this point is in.
Is there a public resource available that defines the borders of the oceans as a set of lat/long points that I can download?
I'm trying to write some code that, given a latitude and longitude, will report which ocean (if any) this point is in.
Is there a public resource available that defines the borders of the oceans as a set of lat/long points that I can download?
ESRI's Ocean Basemap might be useful for your task:
http://www.arcgis.com/home/item.html?id=6348e67824504fc9a62976434bf0d8d5
Ocean polygons available here:
http://www.naturalearthdata.com/downloads/10m-physical-vectors/
or
http://www.naturalearthdata.com/downloads/50m-physical-vectors/
Different resolutions. You can open the shapefiles in QGis and save as any format you want [assuming you're writing a browser based app].