🌍 MapMiner
MapMiner is a geospatial and model-centric tool designed to efficiently download, process, and analyze geospatial data and metadata from various sources. It leverages powerful Python libraries like Selenium, Dask, Numba, and Xarray to provide high-performance data handling and integrates state-of-the-art models for advanced geospatial AI and visualization.
🛠 Installation
Base installation:
pip install mapminer
Full installation (includes OCR + Chrome support):
pip install "mapminer[all]"
🚀 Key Features
- 🌐 Selenium: Automated web interactions for metadata extraction.
- ⚙️ Dask: Distributed computing to manage large datasets.
- 🚀 Numba: JIT compilation for accelerating numerical computations.
- 📊 Xarray: Multi-dimensional array data handling for seamless integration.
📚 Supported Datasets
MapMiner supports a variety of geospatial datasets across multiple categories:
| Category | Datasets |
|---|---|
| 🌍 Satellite | Sentinel-2, Sentinel-1, MODIS, Landsat |
| 🚁 Aerial | NAIP |
| 🗺️ Basemap | Google, ESRI |
| 📍 Vectors | Google Building Footprint, OSM |
| 🏔️ DEM (Digital Elevation Model) | Copernicus DEM 30m, ALOS DEM |
| 🌍 LULC (Land Use Land Cover) | ESRI LULC |
| 🌾 Crop Layer | CDL Crop Mask |
| 🕒 Real-Time | Google Maps Real-Time Traffic |
🧠 Supported Models
MapMiner provides pre-integrated state-of-the-art vision models for geospatial AI:
| Model | Use Cases |
|---|---|
| 🔥 DINOv3 | Feature extraction, classification, segmentation, detection backbones |
| 🌀 NAFNet | Denoising, deblurring, super-resolution, temporal consistency |
| ⏳ ConvLSTM | Crop forecasting, temporal fusion (Sentinel-1/2), sequence modeling |
| 💎 SAM3 | Prompt-based instance segmentation, fast zero-shot object extraction |
🤖 Models
1️⃣ DINOv3 Model
You can import DINOv3 directly for feature extraction or downstream tasks:
from mapminer.models import DINOv3
model = DINOv3(pretrained=True)
x = normalize(input_tensor)
output = model(x)
2️⃣ NAFNet Model
Use NAFNet for denoising, enhancement, or temporal SR tasks:
from mapminer.models import NAFNet
model = NAFNet(in_channels=12, dim=32)
output = model(input_tensor)
3️⃣ SAM3 Model
Use SAM3 for prompt-based instance segmentation on high-resolution geospatial imagery:
from mapminer.models import SAM3
sam3 = SAM3()
df = sam3.inference(ds,text='building', exemplars=None)
⛏️ Miners
1️⃣ GoogleBaseMapMiner
from mapminer.miners import GoogleBaseMapMiner
miner = GoogleBaseMapMiner()
ds = miner.fetch(lat=40.748817, lon=-73.985428, radius=500)
2️⃣ CDLMiner
from mapminer.miners import CDLMiner
miner = CDLMiner()
ds = miner.fetch(lon=-95.665, lat=39.8283, radius=10000, daterange="2024-01-01/2024-01-10")
3️⃣ GoogleBuildingMiner
from mapminer.miners import GoogleBuildingMiner
miner = GoogleBuildingMiner()
ds = miner.fetch(lat=34.052235, lon=-118.243683, radius=1000)
🖼 Visualizing the Data
You can easily visualize the data fetched using hvplot:
import hvplot.xarray
ds.hvplot.image(title=f"Captured on {ds.attrs['metadata']['date']['value']}")
📦 Dependencies
MapMiner relies on several Python libraries:
- Selenium: For automated browser control.
- Dask: For distributed computing and handling large data.
- Numba: For accelerating numerical operations.
- Xarray: For handling multi-dimensional array data.
- EasyOCR: For extracting text from images.
- HvPlot: For visualizing xarray data.
🛠 Contributing
Contributions are welcome! Fork the repository and submit pull requests. Include tests for any new features or bug fixes.
Metadata
Release files for mapminer 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mapminer-0.2.0.tar.gz | 49.3 kB | Without provenance | Details for mapminer-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mapminer-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for mapminer-0.2.0-py3-none-any.whl |
Total release size: 111.1 kB
Release files / mapminer-0.2.0.tar.gz
| Download URL | mapminer-0.2.0.tar.gz |
|---|---|
| Size | 49.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
54a394a701f5b7f787fb436521bbf529651ba18dda32d7f555b830c11f8c2feb
|
|
BLAKE2b-256 checksum How to use checksums |
b19f9c4c18dd5d1c460fcbb1e136791d47497c90fd2e19866e72eb00bc4fb72f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.1
|
Release files / mapminer-0.2.0-py3-none-any.whl
| Download URL | mapminer-0.2.0-py3-none-any.whl |
|---|---|
| Size | 61.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
97ddcf1e6545cbba95edf24dbe94c084225e020d0ec8ac88ecc1bff60ce281b9
|
|
BLAKE2b-256 checksum How to use checksums |
c97193b9b89e419f6f2e46c6715ef868a9cf96e2971a1057b4d9ee7f4e135097
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.1
|
Security for mapminer 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.