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.

Source Distributions

No source distribution files available for this release. See tutorial on generating distribution archives.

Built Distribution

raster_geometry- (30.6 kB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page