Cython is used to build C extensions that provide bindings against GDAL and additional optimizations for performant functions accessible from Python. cdef extern from "gdal_alg.h": int GDALPolygonize( ...