Skip to main content

Some functions from CGAL for GIS, it does not aim to become full CGAL bindings. The interface is modeled after shapely.

Project description

fourmy

Fourmy is a minimalistic library to access some CGAL functions from python.

The aim of the library is to be compatible with shapely and to offer functions that are not there.

usage

from shapely.geometry import Polygon, Point
from fourmy import tessellate

t = tessellate(Polygon([(0,0), (1,0), (1,1), (0,1)]))
print(t.wkt)

install

Fourmy depends on the c++ library CGAL and the python module shapely which sould be installed on your system before running setup script.

python setup.py build
sudo python setup.py install

history

The necessity arose for contrained triangulation of polygons for wich several libs exists in python, but none was found robust enough for our use case.

Project details


Download files

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

Source Distribution

fourmy-0.0.5.tar.gz (16.2 kB view hashes)

Uploaded Source

Built Distribution

fourmy-0.0.5-cp310-cp310-manylinux_2_35_x86_64.whl (1.7 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.35+ x86-64

Supported by

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