Skip to main content

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.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for geospace 0.6.3
File Size Uploaded
geospace-0.6.3.tar.gz 27.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for geospace 0.6.3
File Interpreter ABI Platform
geospace-0.6.3-py3-none-any.whl Python 3 none any Details

Total release size: 62.5 kB

Release files / geospace-0.6.3.tar.gz

Download URL geospace-0.6.3.tar.gz
Size 27.4 kB
Tags Source
SHA-256 checksum
How to use checksums
5468175269e8d1cda1069b72276627db0eb9c943928a1e12eeafb3bdb2398764
BLAKE2b-256 checksum
How to use checksums
24d650c4485c8d308ae1a184e80a73ff5426da1a6bce2a3ed2988ff8736fe567
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.3-py3-none-any.whl

Download URL geospace-0.6.3-py3-none-any.whl
Size 35.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e8441d743f54635f799c8467254497d663d52e3a99021dacbe540ee9c4abf13f
BLAKE2b-256 checksum
How to use checksums
95da51c07286515e687f6f90cdc0858b2d5a378ee541080f31a69b168af16578
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 history Release notifications | RSS feed

This release

0.6.3 This release

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.5.9

2 release files

0.5.8

2 release files

0.5.7

2 release files

0.5.6

2 release files

0.5.5

2 release files

0.5.4

2 release files

0.5.3

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.9

2 release files

0.4.8

2 release files

0.4.7

2 release files

0.4.6

2 release files

0.4.5

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.9

2 release files

0.3.8

2 release files

0.3.7

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.9

2 release files

0.2.8

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page