[geos-devel] Swig Update and questions

Charlie Savage cfis at savagexi.com
Sun Jun 25 22:40:33 EDT 2006


Okay,

 > I'd highly appreciate a combined effort on the binding.
 > I think the best would be SWIG/CAPI, bearing with SWIG version
 > found on debian stable.

I've got the SWIG bindings working with the C API.  I did it by 
"faking" classes like in GDAL.  I also implemented a simple geometry 
hierarchy of point, line, etc. based on the geometry type id.  Its seems 
to work well.

As far as the SWIG version, my guess (and based on a quick google 
search) is that Debian stable is using an ancient version.  We really 
want to stick with the latest SWIG (1.3.29) version because of two big 
reasons:

*  it means the majority of the SWIG interface files can be used for 
Python and Ruby.  It also means if someone like Ari wanted to add in a 
Perl binding it wouldn't be too hard.

* older versions of Ruby SWIG could not handle giving up ownership of 
objects (like when passing a coordinate sequence to a geometry 
constructor) which is a must have for GEOS.

Note that GDAL is also using SWIG 1.3.29.

Sean / Hobu - If you send me the API exposed by your custom bindings I 
can align the SWIG bindings with them as much as possible.

Strk - Guidance would be appreciated on my emails about threading and 
error messages and the various fixes/proposed changes to the C API.

What needs to be done:

*  A couple more hours of implementation

*  A few days of tests - I see the new test suite for the C++ api, I 
just plan on porting it to Ruby (great work Mateusz)

* Probably a day more of messing around with the build scripts

I plan on doing this stuff during the course of this week.

Thanks,

Charlie

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3237 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.osgeo.org/pipermail/geos-devel/attachments/20060625/d73cd109/smime.bin


More information about the geos-devel mailing list