# How do I know where the ocean is?

**URL:** <https://community.cesium.com/t/how-do-i-know-where-the-ocean-is/27682>\
**Category:** Cesium for Unity\
**Created:** [October 30, 2023, 1:15am UTC](https://community.cesium.com/t/how-do-i-know-where-the-ocean-is/27682 "2023-10-30T01:15:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Better-ing-s](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/better-ing-s/32/20038_2.png) [@Better-ing-s](https://community.cesium.com/u/Better-ing-s)\
**Post date:** [October 30, 2023, 1:15am UTC](https://community.cesium.com/t/how-do-i-know-where-the-ocean-is/27682/1 "2023-10-30T01:15:44Z")

</div>

I need to generate an object after converting longitude and latitude to Unity coordinates, but I need to know if my current position is an ocean

---

<div class="post-metadata">

**Author:** ![Kevin\_Ring](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/kevin_ring/32/2003_2.png) [@Kevin\_Ring](https://community.cesium.com/u/Kevin_Ring)\
**Post date:** [November 2, 2023, 10:32pm UTC](https://community.cesium.com/t/how-do-i-know-where-the-ocean-is/27682/2 "2023-11-02T22:32:57Z")

</div>

If you’re using Cesium World Terrain, it has a water mask that could theoretically provide this information, but there’s no API available to access it easily. If you’re using another tileset, there’s probably no information about water/non-water at all. In either case, you might be better off using some external data and custom code to make this determination.
