Re: [gdal-dev] Re: PHP bindings

2011-03-02 Thread Jeff McKenna
On Sunday, February 06, 2011 14:50:34 Mike Leahy wrote: > Hello List, > > Does anyone have an idea if there is any likelihood for a revival of php > bindings for GDAL/OGR. I know if these were available, I'd be making use > of them...although, I have no experience creating/maintaining S

Re: [gdal-dev] Re: PHP bindings

2011-03-01 Thread Mike Leahy
be accounted for in some way through the php typemaps. Regards, Mike > Date: Tue, 1 Mar 2011 19:59:48 +0100 > From: Even Rouault > Subject: Re: [gdal-dev] Re: PHP bindings > To: gdal-dev@lists.osgeo.org, mgle...@alumni.uwaterloo.ca > Message-ID: <201103011959.48700.even.roua...

Re: [gdal-dev] Re: PHP bindings

2011-03-01 Thread Even Rouault
Mike, > Hello again, > > I think I stumbled upon the part that was tripping up the methods I was > using with the php_osr.so library. Posted at http://pastebin.com/SXKKfe6v > is a patch that should work on both 1.8.0, and the trunk svn. It adds the > missing CSL typemap, and corrects the OGRErr

Re: [gdal-dev] Re: PHP bindings

2011-02-28 Thread Mike Leahy
Hello again, I think I stumbled upon the part that was tripping up the methods I was using with the php_osr.so library. Posted at http://pastebin.com/SXKKfe6v is a patch that should work on both 1.8.0, and the trunk svn. It adds the missing CSL typemap, and corrects the OGRErr related typemap

Re: [gdal-dev] Re: PHP bindings

2011-02-24 Thread Mike Leahy
Hello all, To keep this topic somewhat alive, I might note that I can identify that php_osr.so works partially in some ways, but not how I would expect compared with the same bindings in other languages. I also found that at least one typemap was needed in typemaps_php.i, which I determined by

Re: [gdal-dev] Re: PHP bindings

2011-02-09 Thread Mike Leahy
Hi Even, It looks like adding '-L../../.libs -lgdal' did the trick to ensure that the libraries are linked. E.g.,: swig -Wall -I../include -I../include/php -I../include/php/docs \ -I/scratch2/gdal/gdal-1.8.0 -c++ -php -o osr_wrap.cpp ../include/osr.i g++ -L../../.libs -lgdal -I../../port -I.

Re: [gdal-dev] Re: PHP bindings

2011-02-09 Thread Even Rouault
Le mercredi 09 février 2011 08:47:25, Mike Leahy a écrit : > Hi Tamas, > > Thanks for the feedback. I've tried what you suggested, regenerating the > swig bindings, and setting the LD_LIBRARY_PATH...though the outcome seems > to be the same. Here's my output from manually building php_gdal.so, f

Re: [gdal-dev] Re: PHP bindings

2011-02-08 Thread Mike Leahy
Hi Tamas, Thanks for the feedback. I've tried what you suggested, regenerating the swig bindings, and setting the LD_LIBRARY_PATH...though the outcome seems to be the same. Here's my output from manually building php_gdal.so, from within the swig/php source directory: ===

Re: [gdal-dev] Re: PHP bindings

2011-02-08 Thread Tamas Szekeres
Mike, Actually the PHP bindings are not maintained at all, so any improvements in this topic would be welcomed. You might also want to regenerate the bindings with SWIG since the committed version may be outdated. You should also make sure the corresponding gdal core is available load (proably by