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

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.1
File Size Uploaded
geospace-0.6.1.tar.gz 27.3 kB Details

Built distribution (wheel)

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

Total release size: 62.2 kB

Release files / geospace-0.6.1.tar.gz

Download URL geospace-0.6.1.tar.gz
Size 27.3 kB
Tags Source
SHA-256 checksum
How to use checksums
67ecf4f06885312ba9295cc01316b311bdbef643684c95e9a8dc583f0a6e61c2
BLAKE2b-256 checksum
How to use checksums
fc5f197b99fb80a02fc04f976f298933fcf3126cbc0b56dcd7373a09001bdf36
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.11 {"installer":{"name":"uv","version":"0.12.11","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.1-py3-none-any.whl

Download URL geospace-0.6.1-py3-none-any.whl
Size 34.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a9af08ce3c4f5a3529ca51f9c99671b2ad2aed125f5da0fcced18ee6a64ae27c
BLAKE2b-256 checksum
How to use checksums
20879679a4d0adf5f8a2ae52072f88e260b1ac59288d5dab5ff75761f0eb4c54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.11 {"installer":{"name":"uv","version":"0.12.11","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

0.6.3

2 release files

0.6.2

2 release files

This release

0.6.1 This release

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