GeoSpace
A lightweight Python library for geospatial processing based on GDAL.
GeoSpace provides practical tools for raster and vector processing, including zonal statistics, reprojection, resampling, mosaicking, clipping, rasterization, and optional Google Earth Engine workflows.
Installation
uv add geospace
GeoSpace uses gdal-wheel as its GDAL dependency, so GDAL does not need to be compiled as part of GeoSpace.
import geospace
from osgeo import gdal
Example
import geospace as gs
rasters = ["precipitation.tif", "temperature.tif"]
basins = "basins.shp"
stats = gs.reduce(rasters, basins)
print(stats)
Features
- High-performance zonal statistics
- Raster reprojection, resampling, mosaicking, clipping, and nodata filling
- Raster and vector conversion
- Shapefile projection, filtering, buffering, and rasterization
- Coordinate and spatial calculations
- Optional Google Earth Engine integration
Optional dependencies
Google Earth Engine support:
uv add "geospace[gee]"
Mask-related features:
uv add "geospace[mask]"
Development
git clone https://github.com/xiejx5/geospace.git
cd geospace
uv sync
GeoSpace is a pure-Python package. GDAL wheels are built and published separately by gdal-wheel.
Metadata
Release files for geospace 0.6.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| geospace-0.6.2.tar.gz | 27.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| geospace-0.6.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 62.5 kB
Release files / geospace-0.6.2.tar.gz
| Download URL | geospace-0.6.2.tar.gz |
|---|---|
| Size | 27.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4fc79f14e8e706a8fa52b6c6e006eb9973a33faf39665c8037535935ef57b536
|
|
BLAKE2b-256 checksum How to use checksums |
590fbe9bca7989430b1173494337bff84dd984477d978e3d24551710bfafd382
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / geospace-0.6.2-py3-none-any.whl
| Download URL | geospace-0.6.2-py3-none-any.whl |
|---|---|
| Size | 35.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
01f5aafea9b30be28d008aa9ea0b148eeb33d36f0fdd151c09e981f9b41b36cd
|
|
BLAKE2b-256 checksum How to use checksums |
c3c1cf34bc31b51fdd2f1c72ec95dd8fab11abb71922d1413b47dce8fa69faa1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|