[gdal-dev] How to wrap a C++ library using GDAL in a Python library?
Sean Gillies
sean at mapbox.com
Tue Dec 8 06:28:00 PST 2020
Hi Alex,
I observe more people using pybind11 these days.
https://github.com/pybind/pybind11.
Yours,
On Tue, Dec 8, 2020 at 5:37 AM Alex HighViz <alexhighviz at hotmail.com> wrote:
> Hello,
>
> Could somebody please put me on the right track with the following
> problem?
>
> I have a C++ library that makes use of GDAL for processing raster maps and
> I would like to wrap some of its features into a Python library to make it
> accessible to a wider community.
>
> I would like my library to present functions that take rasters as input
> and produce rasters as outputs. I can modify the C++ side to have the
> functions work on GDALRasterBands, GDALDatasets, or just on filenames. From
> my perspective I'd prefer to write any wrapping / boiler plate in C++ and
> have the Python parts as small as possible.
>
> I know this question has been asked before here, but I don't recall the
> answer and could not find it again. A simple example of "best practice"
> would be ideal.
>
>
> With many thanks, Alex
>
--
Sean Gillies
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20201208/b39022dd/attachment.html>
More information about the gdal-dev
mailing list