toddkarin / global-land-mask

Check whether a lat/lon point is on land for any point on earth
MIT License
106 stars 16 forks source link

Coordinates in land accused of being in the ocean #5

Open BrunoLemosCoutinho opened 3 years ago

BrunoLemosCoutinho commented 3 years ago

This coordinates (lat: -3.730884, lon: -38.457926) were accused of being in the ocean https://www.google.com/maps/place/3°43'51.2"S+38°27'28.5"W/@-3.7308889,-38.4601054,17z/data=!3m1!4b1!4m5!3m4!1s0x0:0x0!8m2!3d-3.730884!4d-38.457926?hl=pt

lat = -3.730884 lon = -38.457926 is_on_land = globe.is_land(lat, lon) is_in_ocean = globe.is_ocean(lat, lon) print(f"is_on_land: {is_on_land}") print(f"is_in_ocean: {is_in_ocean}")

Results: is_on_land: False is_in_ocean: True global_land_mask