SFCGAL#
Downloads#
Download this project as a .zip file Download this project as a tar.gz file
About#
SFCGAL is a C++ wrapper library around CGAL with the aim of supporting ISO 19107:2013 and OGC Simple Features Access 1.2 for 3D operations.
SFCGAL provides standard compliant geometry types and operations. PostGIS uses the C API, to expose some SFCGAL's functions in spatial databases (cf. PostGIS manual).
PySFCGAL is a Python wrapper for SFCGAL, enabling seamless use of the library’s 3D geometric functions and operations directly within Python scripts or applications. It is accessible on the Python Package Index (PyPI) (cf. PySFCGAL manual).
Supported Geometry Types#
Geometry coordinates have an exact rational number representation and can be either 2D or 3D. Among supported geometry types are:
- Points
- LineStrings
- Polygons
- TriangulatedSurfaces
- PolyhedralSurfaces
- GeometryCollections
- Solids
Supported Operations#
Supported operations include:
- WKT reading and writing with exact rational number representation for coordinates
- Intersection operations and predicates
- Convex hull computation
- Tessellation
- Extrusion
- Area and distance computation
- Minkowski sums
- Contour offsets
- Straight skeleton generations
License#
SFCGAL is distributed under the terms of the GNU Lesser General Public License 2+.
Warning
Note that the main dependency for SFCGAL is the CGAL library, and SFCGAL uses CGAL modules that are licensed under GPLv3+. Whenever you compile and distribute SFCGAL with the GPL-licensed version of CGAL, the entire packaged result is automatically considered to be under GPL version 3 or later, due to the GPL’s “viral” property.
If you link and distribute SFCGAL with another software package, make sure you fully understand the implications and verify any legal and technical requirements implied by the license.