karimbahgat / Shapy

A lightweight pure-Python version of Shapely for working with geographical shapes.
18 stars 3 forks source link

Documentation for # Shapy

v0.1

Author: Karim Bahgat

Year: 2014

Description:

A lightweight and portable pure-Python version of Shapely for geometry processing.

Introduction:

As the name suggests, Shapy is a pure-Python version of Shapely. It is used for geometrical and geographical problem-solving.

Based on and modelled precisely after Shapely, so should be easy to use by those familiar with Shapely...

Also some functionality that's not available in Shapely.

Dependencies:

Absolutely no dependencies, though it probably won't work on Python3 yet.

Usage:

The package is not yet complete. Currently the supported features are:

Docs are not yet completed, but just follow the shapely usage and names and you should be alright.

There's still a few things left to add, so it would be great if others could contribute some of the remaining functionality.

Functions and Classes

shapy.LineString(...) --> class object

shapy.LinearRing(...) --> class object

shapy.MultiLineString(...) --> class object

shapy.MultiPoint(...) --> class object

shapy.MultiPolygon(...) --> class object

shapy.Point(...) --> class object

shapy.Polygon(...) --> class object

shapy.RunTestSuite(...):

shapy.buffertesting(...):

shapy.distancetesting(...):

shapy.geoj2geom(...):

Takes any object that has the __geo_interface__ attribute and creates and returns a ready-to-use geometry instance.

shapy.typetesting(...):

shapy.uniontesting(...):