Re: [geos-devel] PHP Bindings fir Windows 10 with Wamp and PHP 7.x

2019-05-23 Thread Sandro Santilli
On Wed, May 22, 2019 at 03:03:05PM +0200, Tim Balschmiter wrote:
> Hi Community,
> 
> The php-bindings of Sandro (https://git.osgeo.org/gitea/geos/php-geos)
> is working finde on my ubuntu system, but i canĀ“t get it work on Windows
> 10.

Is this the same problem reported on following ticket ?
https://git.osgeo.org/gitea/geos/php-geos/issues/19

> checking whether to enable geos support... yes, shared
> checking for geos-config... yes, shared
> checking for geos-config... no
> configure: error: Cannot find geos_c.h. Please specify correct GEOS
> installation path
> 
> i do not find the place to configure the path for geos_c.h . Maybe you
> can help me.

  $ ./configure  --help | grep geos
--enable-geos Enable geos support
--with-geos-config=DIRUse geos-config

Are you passing --with-geos-config switch ?

> In my opinion a lot of people are interessted in a solution ;-).

If you think this is the same problem reported in issues/19 please
update it as you find more things.

> p.s. i only need it for desktop pc, where i can not change the OS.

Virtual machines are easy nowadays :)

--strk;
___
geos-devel mailing list
geos-devel@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/geos-devel

Re: [geos-devel] PHP bindings Geometry-Intersection update for GEOS 3.5.0

2015-08-04 Thread Sandro Santilli
For the record, I just committed the exposure of clipByRect to PHP,
complete with testcase. If anyone wants to look at what it takes:
https://trac.osgeo.org/geos/changeset/4067

Patrick reclined the invite to pick up maintainance (pity) so
we'd better keep this in-house until someone else steps up.

So far all the C-API exposed methods are also accessible via PHP.
This is still the case with 3.5.0 now.

--strk;

On Fri, Jul 17, 2015 at 06:11:02PM +0200, Sandro Santilli wrote:
 On Fri, Jul 17, 2015 at 12:03:23PM -0400, Paragon Corporation wrote:
  I closed out all the tickets for 3.5.0
  
  And split the remainder of #699 to
  
  Optimize Geometry-Intersection with rectangular argument - add PHP bindings
  
  https://trac.osgeo.org/geos/ticket/734
  
  
  Any PHP folks out there want to tackle this one.  Strk says it should be
  easy.
 
 I'm adding Patrick in Cc, he's a good candidate for picking up PHP
 binding maintainance, due to https://geophp.net/geos.html
 
  If done by Monday we can push it back to 3.5.0 otherwise will need to wait.
 
 Patrick, interested in the role ?
 For the future, I'm ok with splitting the php subdir out of GEOS core
 into its own git repository if you prefer.
 
 --strk;
___
geos-devel mailing list
geos-devel@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/geos-devel


Re: [geos-devel] PHP bindings Geometry-Intersection update for GEOS 3.5.0

2015-07-17 Thread Sandro Santilli
On Fri, Jul 17, 2015 at 12:03:23PM -0400, Paragon Corporation wrote:
 I closed out all the tickets for 3.5.0
 
 And split the remainder of #699 to
 
 Optimize Geometry-Intersection with rectangular argument - add PHP bindings
 
 https://trac.osgeo.org/geos/ticket/734
 
 
 Any PHP folks out there want to tackle this one.  Strk says it should be
 easy.

I'm adding Patrick in Cc, he's a good candidate for picking up PHP
binding maintainance, due to https://geophp.net/geos.html

 If done by Monday we can push it back to 3.5.0 otherwise will need to wait.

Patrick, interested in the role ?
For the future, I'm ok with splitting the php subdir out of GEOS core
into its own git repository if you prefer.

--strk;
___
geos-devel mailing list
geos-devel@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/geos-devel


Re: [geos-devel] PHP bindings

2010-06-18 Thread strk
So, current trunk as a -std=gnu99 added to CFLAGS
when building the PHP bindings and was tested to
work on OpenSUSE 11.1 and Ubuntu 8.10 with gcc-4.3.2
(-std=c99 didn't work on the Ubuntu box).

If anyone feels like testing on other systems these
are the steps:

0: svn up
1: make sure you have php5 dev files
   installed (for debian-based: apt-get install php5-dev)
2: ./autogen.sh  ./configure --enable-php
3: make 
4: make check (bonus)

Bonus step 4 you may want to run under php/ dir only.
If you get lots of errors in step 3 that's likely Zend
interaction with -ansi, which is what I'm trying to
fix in a general way.

--strk;

On Fri, Jun 18, 2010 at 11:26:35AM +0200, strk wrote:
 I've started hand-crafting PHP bindings for the GEOS C-API.
 Currently in the process of merging into trunk for proper
 build scripts.
 
 One obstacle I found is that -ansi, which is added to
 CFLAGS by ./configure, won't accept Zend (PHP engine)
 headers, so that switch must be removed when building
 the PHP module.
 
 Does anyone know how to override the cflags for just
 one dir ? Or ideally, only drop the -ansi switch ?
 
 Here's the relevant annotation from configure.in:
 
   2533mloskot AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -ansi], 
 [dum
 my_cv_ansi], [-ansi], [], [WARNFLAGS=$WARNFLAGS -ansi], [])
 
 --strk; 
 
   ()   Free GIS  Flash consultant/developer
   /\   http://strk.keybit.net/services.html
 ___
 geos-devel mailing list
 geos-devel@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/geos-devel

-- 

  ()   Free GIS  Flash consultant/developer
  /\   http://strk.keybit.net/services.html
___
geos-devel mailing list
geos-devel@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/geos-devel


Re: [geos-devel] PHP bindings

2010-06-18 Thread strk
On Fri, Jun 18, 2010 at 06:41:47PM +0200, strk wrote:
 So, current trunk as a -std=gnu99 added to CFLAGS
 when building the PHP bindings and was tested to
 work on OpenSUSE 11.1 and Ubuntu 8.10 with gcc-4.3.2
 (-std=c99 didn't work on the Ubuntu box).

FYI: also tested successfully on 
Debian 4.0 with:
 gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)]

--strk;

 
 If anyone feels like testing on other systems these
 are the steps:
 
   0: svn up
   1: make sure you have php5 dev files
  installed (for debian-based: apt-get install php5-dev)
   2: ./autogen.sh  ./configure --enable-php
   3: make 
   4: make check (bonus)
 
 Bonus step 4 you may want to run under php/ dir only.
 If you get lots of errors in step 3 that's likely Zend
 interaction with -ansi, which is what I'm trying to
 fix in a general way.
 
 --strk;
 
 On Fri, Jun 18, 2010 at 11:26:35AM +0200, strk wrote:
  I've started hand-crafting PHP bindings for the GEOS C-API.
  Currently in the process of merging into trunk for proper
  build scripts.
  
  One obstacle I found is that -ansi, which is added to
  CFLAGS by ./configure, won't accept Zend (PHP engine)
  headers, so that switch must be removed when building
  the PHP module.
  
  Does anyone know how to override the cflags for just
  one dir ? Or ideally, only drop the -ansi switch ?
  
  Here's the relevant annotation from configure.in:
  
2533mloskot AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -ansi], 
  [dum
  my_cv_ansi], [-ansi], [], [WARNFLAGS=$WARNFLAGS -ansi], [])
  
  --strk; 
  
()   Free GIS  Flash consultant/developer
/\   http://strk.keybit.net/services.html
  ___
  geos-devel mailing list
  geos-devel@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/geos-devel
 
 -- 
 
   ()   Free GIS  Flash consultant/developer
   /\   http://strk.keybit.net/services.html
 ___
 geos-devel mailing list
 geos-devel@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/geos-devel

-- 

  ()   Free GIS  Flash consultant/developer
  /\   http://strk.keybit.net/services.html
___
geos-devel mailing list
geos-devel@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/geos-devel


Re: [geos-devel] PHP bindings

2010-06-18 Thread strk
On Fri, Jun 18, 2010 at 06:53:19PM +0200, strk wrote:
 On Fri, Jun 18, 2010 at 06:41:47PM +0200, strk wrote:
  So, current trunk as a -std=gnu99 added to CFLAGS
  when building the PHP bindings and was tested to
  work on OpenSUSE 11.1 and Ubuntu 8.10 with gcc-4.3.2
  (-std=c99 didn't work on the Ubuntu box).
 
 FYI: also tested successfully on 
 Debian 4.0 with:
  gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)]

Another success on Snow Leopard 10.6.3
with i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5659

--strk;

  ()   Free GIS  Flash consultant/developer
  /\   http://strk.keybit.net/services.html
___
geos-devel mailing list
geos-devel@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/geos-devel


Re: [geos-devel] PHP bindings anyone ?

2010-06-16 Thread Sean Gillies
On Wed, Jun 16, 2010 at 12:57 AM, Robert Coup
robert.c...@koordinates.com wrote:
 On Tue, Jun 15, 2010 at 11:16 PM, strk s...@keybit.net wrote:

 I'm plaing with drupal recently and be wondering
 if the SWIG binding for GEOS are still in use by
 anyone or not.

 In particular, I think Shapely and GeoDjango
 are using a direct interface rather than swig, right ?


 Yep, they both access the C library using the Python ctypes module. AFAIK
 they just wanted to expose clean pythonic interfaces rather than the
 hybrid stuff SWIG produces...

From time to time I hear from some one who is using the SWIG bindings for Ruby.

Are there any libffi (used by ctypes) intefaces for PHP? If so, I'd
recommend giving that a try.

Cheers,

-- 
Sean
___
geos-devel mailing list
geos-devel@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/geos-devel


Re: [geos-devel] PHP bindings anyone ?

2010-06-16 Thread strk
On Wed, Jun 16, 2010 at 09:53:00AM +0200, Sean Gillies wrote:

 Are there any libffi (used by ctypes) intefaces for PHP? If so, I'd
 recommend giving that a try.

Found this: http://pecl.php.net/package/ffi
Last release (0.3-alpha) is from 2004 :!

--strk; 

  ()   Free GIS  Flash consultant/developer
  /\   http://strk.keybit.net/services.html
___
geos-devel mailing list
geos-devel@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/geos-devel


Re: [geos-devel] PHP bindings anyone ?

2010-06-16 Thread Mateusz Loskot

On 16/06/10 09:21, strk wrote:

On Wed, Jun 16, 2010 at 09:53:00AM +0200, Sean Gillies wrote:


Are there any libffi (used by ctypes) intefaces for PHP? If so, I'd
recommend giving that a try.


Found this: http://pecl.php.net/package/ffi
Last release (0.3-alpha) is from 2004 :!


Sandro,

You may find this interesting:

http://wiki.github.com/moriyoshi/boost.php/

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
___
geos-devel mailing list
geos-devel@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/geos-devel


Re: [geos-devel] PHP bindings anyone ?

2010-06-16 Thread Charlie Savage



On 6/16/2010 1:53 AM, Sean Gillies wrote:

On Wed, Jun 16, 2010 at 12:57 AM, Robert Coup
robert.c...@koordinates.com  wrote:

On Tue, Jun 15, 2010 at 11:16 PM, strks...@keybit.net  wrote:


I'm plaing with drupal recently and be wondering
if the SWIG binding for GEOS are still in use by
anyone or not.

Yes, we use the Ruby ones.

Charlie


In particular, I think Shapely and GeoDjango
are using a direct interface rather than swig, right ?



Yep, they both access the C library using the Python ctypes module. AFAIK
they just wanted to expose clean pythonic interfaces rather than the
hybrid stuff SWIG produces...



From time to time I hear from some one who is using the SWIG bindings for Ruby.


Are there any libffi (used by ctypes) intefaces for PHP? If so, I'd
recommend giving that a try.

Cheers,



--
Charlie Savage
http://cfis.savagexi.com
___
geos-devel mailing list
geos-devel@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/geos-devel


Re: [geos-devel] PHP bindings anyone ?

2010-06-15 Thread Robert Coup
On Tue, Jun 15, 2010 at 11:16 PM, strk s...@keybit.net wrote:

 I'm plaing with drupal recently and be wondering
 if the SWIG binding for GEOS are still in use by
 anyone or not.

 In particular, I think Shapely and GeoDjango
 are using a direct interface rather than swig, right ?



Yep, they both access the C library using the Python ctypes module. AFAIK
they just wanted to expose clean pythonic interfaces rather than the
hybrid stuff SWIG produces...

Rob :)
___
geos-devel mailing list
geos-devel@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/geos-devel