global-land-mask
Check whether a lat/lon point in on land or on sea
What it is and what it does
global-land-mask provides a fast lookup function to classify any latitude/longitude point on Earth as land or ocean. It uses a precomputed binary mask derived from the GLOBE elevation dataset, which covers the entire planet at 1 km resolution and is compressed to about 2.5 MB. The package exports two main functions: globe.is_land() and globe.is_ocean(), both of which accept scalar or array inputs for batch queries.
The primary use case is rapid geolocation classification in data pipelines, geospatial analysis, or mapping applications. The documentation indicates significant performance advantages for bulk queries. The package treats lakes as land and acknowledges that resolution is not perfect, but is adequate for many practical purposes.
Use it for:
- Filter geographic datasets to include only land-based or ocean-based points before further processing
- Validate or enrich location data in applications that need to classify user coordinates
- Prepare training data for geospatial analysis by labeling points as land or sea
- Generate visualizations or heatmaps that require fast land/ocean classification across grids
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Determines whether geographic coordinates (latitude/longitude) fall on land or ocean using a compressed global elevation dataset at 1 km resolution.
Yes, if you need fast land/ocean classification and can tolerate that the package is no longer maintained. The permissive MIT license and low install friction make it low-risk to add. However, verify that 1 km resolution and the specific treatment of lakes and coastlines match your accuracy requirements before committing to it in production.
Install
global-land-mask on PyPI
pip
pip install global-land-maskuv
uv add global-land-maskpoetry
poetry add global-land-maskInstalling global-land-mask
Before you install
Low friction installation with no runtime dependencies. Package is abandoned as of 2022 with no recent maintenance, so expect no bug fixes or updates.
License in practice
MIT license permits commercial and private use with minimal restrictions, making it safe to integrate into most projects.
Quickstart
pip install global-land-mask
from global_land_mask import globe
lat, lon = 40, -120
is_on_land = globe.is_land(lat, lon)
print(is_on_land)
Verify before relying
- Whether the precompiled land mask data is included in the wheel or downloaded on first use
- Current accuracy compared to other land/sea datasets or whether 1 km resolution is sufficient for your use case
- Whether numpy is actually required at runtime or only for data generation
Package facts
| License | not declared (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | abandoned — 2,139 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 76,134/month — #14,653 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: global_land_mask-1.0.0-py3-none-any.whl
Tags
More Scientific/Engineering packages
NumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
pandaspandas provides fast, flexible data structures…
permissive · top 100 on PyPI
scipyscipy provides numerical algorithms for…
permissive · top 100 on PyPI
scikit-learnscikit-learn provides a comprehensive Python…
permissive · top 1,000 on PyPI
dilldill extends Python's pickle module to…
permissive · top 1,000 on PyPI
multiprocessMultiprocess is an enhanced fork of Python's…
permissive · top 1,000 on PyPI
haversineCalculates great-circle distances between…
permissive · top 5,000 on PyPI
utideUTide performs tidal analysis and prediction on…
permissive · top 15,000 on PyPI
pyGeoTileConverts between geographic coordinate systems…
permissive · top 15,000 on PyPI
searouteComputes the shortest sea route between two…
permissive · top 15,000 on PyPI
geohash2Encodes latitude/longitude coordinates to…
agpl · top 5,000 on PyPI
tzwhereLooks up the IANA timezone name for a given…
permissive · top 15,000 on PyPI
polylineEncodes and decodes geographic coordinate…
unclear · top 5,000 on PyPI
py-geohex3Converts between geographic coordinates…
permissive · top 15,000 on PyPI
reverse_geocoderReverse Geocoder converts latitude/longitude…
copyleft · top 15,000 on PyPI
timezonefinderLooks up the timezone for any WGS84 coordinate…
unclear · top 5,000 on PyPI