[Geowanking] c++/python binding wisdom
andrew at andrewlarcombe.co.uk
Thu May 22 14:55:14 PDT 2008
On 22 May 2008, at 16:18, nino at urbanmapping.com wrote:
> Hi all,
> Departing from the recent thrilling discussion, I pose a geogeek
> question: To SWIG or not to SWIG?
> I contribute to the Virtual Terrain Project (VTP,
> www.vterrain.org). The applications are built on GDAL, PROJ.4,
> wxWidgets, and OSG. Each of these has SWIG python bindings or
> similar, with wxPython being key. The ultimate goal: script data
> processing, build python GUIs to interact with the VTP API, and
> embed an interactive interpreter (pyshell/pycrust?) to control the
> scene graph of the 3d visualization tool.
> My initial experiments with swig to wrap a few of the VTP objects
> was pretty painless... so I wonder, was this a honeymoon?
> Hopefully, y'all with experience writing or using swig bindings or
> other c/py framework can weigh in. Rants, gotchas, resources,
> whatever great or token wisdom will be sincerely appreciated.
Can only comment on writing swig bindings for perl and php some boost-
based C++ wot I wrote. Seemed to work pretty well - no scary moments,
horrid memory leaks or noticeable inefficiencies.
Freelance Geospatial, Database & Web Programming
web: http://www.andrewlarcombe.co.uk : http://blog.andrewl.net
email: andrew at andrewlarcombe.co.uk
mob: +44 (7760) 258623
More information about the Geowanking