Skip to main content

Create/manipulate N-dimensional raster geometries.

Project description

Raster Geometry - Create/manipulate N-dim raster geometric shapes.


This software provides a library for generating or otherwise manipulating N-dimensional raster geometric shapes.

Most of the code is used is used in a number of projects where it is tested against real-life scenarios.

As a result of the code maturity, some of the library components may undergo (eventually heavy) refactoring. While this is not expected, this will be documented. Please file a bug report if you detect an undocumented refactoring.

Releases information are available through NEWS.rst.

For a more comprehensive list of changes see CHANGELOG.rst (automatically generated from the version control system).


The 2D geometrical shapes currently available are:

  • square
  • rectangle
  • rhombus
  • circle
  • ellipse

The 3D geometrical shapes currently available are:

  • cube
  • cuboid
  • rhomboid
  • sphere
  • ellipsoid
  • cylinder

The N-dim geometrical shapes currently available are:

  • cuboid: sum[abs(x_n/a_n)^inf] < 1
  • superellipsoid: sum[abs(x_n/a_n)^k] < 1
  • prism: stack (N-1)-D rendered objects on given axis


Additional may be added in the future.


The recommended way of installing the software is through PyPI:

$ pip install raster_geometry

Alternatively, you can clone the source repository from GitHub:

$ git clone
$ cd raster_geometry
$ pip install -e .

For more details see also INSTALL.rst.


This work is licensed through the terms and conditions of the GPLv3+ See the accompanying LICENSE.rst for more details.


For a complete list of authors please see AUTHORS.rst.

People who have influenced this work are acknowledged in THANKS.rst.

Project details

Download files

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

Files for raster-geometry, version
Filename, size File type Python version Upload date Hashes
Filename, size raster_geometry- (19.9 kB) File type Wheel Python version py2.py3 Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page