Skip to main content

# Overview

pyspatial is python package to provide data structures on top of gdal/ogr. It’s core use cases have been around simplifying geospatial data science workflows in Python. The 3 core data stuctures are:

  • VectorLayer: a collection of geometries with pandas like manipulation. Each geometry is an osgeo.ogr.Geometry object. For an object reference see [http://gdal.org/python/].

  • RasterDataset: an abstraction of a spatial raster (both tiled on untiled) to support querying of pixels that intersect with shapes.

  • RasterBand: a numpy array representation of a raster with spatial metadata (in memory only, no tiled support).

pyspatial makes it easy to read, analyze, query, and visualize spatial data in both vector and raster form. It brings the familiarity of pandas to working with vector data, and provides querying capability similar to PostGIS for both vector and raster data. Since it uses GDAL for much of the computations, the performance is quite good. Based on the authors’ experience, the performance has been significantly better than PostGIS, and orders of magnitude faster than similar libraries in R.

# Examples

http://nbviewer.jupyter.org/github/granularag/pyspatial/tree/master/examples/

# Development

  • Python code: pip install -e /path/to/pyspatial

  • Cython code: python setup.py build_ext –inplace

  • Tests: nosetests -v

# Contributors

  • Aman Thakral (Lead, github: aman-thakral)

  • Josh Daniel (github: joshdaniel)

  • Chris Seifert (github: caseifert)

  • Ron Potok (github: rpotok)

  • Sandra Guteg (github: guetgs)

  • Emma Fuller (github: emfuller)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyspatial-0.1.2.tar.gz (85.0 kB view details)

Uploaded Source

File details

Details for the file pyspatial-0.1.2.tar.gz.

File metadata

  • Download URL: pyspatial-0.1.2.tar.gz
  • Upload date:
  • Size: 85.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyspatial-0.1.2.tar.gz
Algorithm Hash digest
SHA256 fbcec18df8d43d870e42a56f83e6286542d1bcf63bfa1e4070cb4d5dfd6a9ce6
MD5 79104593850e0179a77b38f111d9236f
BLAKE2b-256 2693adc918fa271de29f14b17de01409a29bbeb54e3ee18578ba999809787726

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page