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.1.tar.gz (84.9 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for pyspatial-0.1.1.tar.gz
Algorithm Hash digest
SHA256 245c2c8d9c5ad436a01d743b7f1b40067aaa5b998178f52284affb1dd269150b
MD5 490793b13e2cfc489c4716cc73c6544d
BLAKE2b-256 4d4c389f48ccacbc3914e0f3e4cc33848b090a12917b4dfec9fa6622e9425d7c

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 Pingdom Monitoring Sentry Error logging StatusPage Status page