--- id: global-land-mask version: "1.0.0" license: unclear license_treatment: permissive maintenance: abandoned --- # global-land-mask — Check whether a lat/lon point in on land or on sea License: permissive · Maintenance: abandoned · Downloads: 76.1K/mo ## 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 above — 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 pip install global-land-mask uv add global-land-mask poetry add global-land-mask ## Installing 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: unspecified - Install friction: low - Maintenance: abandoned - Downloads: 76.1K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags lat lon land ocean check, geographic coordinate land sea, global land mask lookup, point on land detection, earth surface classification, latitude longitude land query, geospatial, land-sea-classification [View on SkillFed](https://skillfed.io/packages/global-land-mask) · [View on PyPI](https://pypi.org/project/global-land-mask/)