[gdal-dev] New PHP bindings - php5-gdal

Jean-François Gigand jf at geonef.fr
Tue Aug 9 17:25:07 EDT 2011


Hi Thomas,

I actually noticed that initiative 2 days ago by searching the ML,
posts dated from around March.
If I had seen them on that time, I would have shared my code earlier.

I never used SWIG. When I wondered in last December if I should
leverage SWIG or write a C++ PHP extension, I chose the latter when I
noticed that the PHP SWIG bindings in GDAL were very old. I was also
encouraged when I noticed that for MapServer, the PHP MapScript
extension is written in core C, although they use SWIG for some other
languages like Python.

Mike Leahy, have you got anything working with the SWIG bindings?
Since you know SWIG, what do you think about this choice?


Jean-François Gigand - Geonef
Paris, France - http://geonef.fr/



2011/8/9 Tamas Szekeres <szekerest at gmail.com>:
>
>
> 2011/8/9 Jean-François Gigand <jf at geonef.fr>
>>
>> I decided to write this library when I got limited at using OGR/PHP
>> (segfault crash) and noticed the latter has not been maintained for
>> years.
>> After trying to compile the SWIG bindings with no success, I thought a
>> good robust C++ code would be the best deal for providing OOP
>> interfaces to PHP.
>>
>
>
> Hi Jean,
>
> I just wanted to mention, there have been some efforts recently by Mike
> Leahy to resurrect the php bindings, the corresponding ticket can be found
> here:
> http://trac.osgeo.org/gdal/ticket/3984
>
> However I'm not sure about the current status of this work and how the
> bindings work with the attached patches. Do you have experiences?
>
> Best regards,
>
> Tamas
>
>
>


More information about the gdal-dev mailing list