[Gdal-dev] PHP Bindings... (resent)

Andrew Larcombe andrew at andrewlarcombe.co.uk
Tue Mar 28 09:56:27 EST 2006


Andrew Larcombe wrote:
> Frank Warmerdam wrote:
>> My understanding is that the SWIG based PHP bindings for GDAL/OGR are
>> incomplete and unsupported at this time.  Unless you are a developer 
>> willing
>> to put substantial effort into them, I would discourage their use.
>>
>> There are also some hand crafted PHP bindings for just OGR developed by
>> DM Solutions for a client of theirs.  I don't have too much familiarity
>> with it, but you can find it at:
>>
>>   http://dl.maptools.org/dl/php_ogr/
> 
> Frank,
> 
> Thanks for that. I'll investigate both avenues and report back.

As promised, a brief update for the archive:

The DM Solututions php_ogr extension works really well, although it only 
contains the functionality found in the ogr_api.h. This is great for 
reading and writing of data sources, AFAICT it is not possible to do 
arbitrary coordinate transformations of geometries.

In order to do this I'll either have to port the necessary functionality 
from ogr_srs_api.h, or find an alternative projection library that can 
be used within PHP, possibly PROJ.4?


Regards,

Andrew Larcombe
andrew at andrewlarcombe.co.uk



More information about the Gdal-dev mailing list