1 Dec 2010 01:57
Re: GEOS Ruby bindings gem and extensions
J Smith <jay <at> zoocasa.com>
2010-12-01 00:57:55 GMT
2010-12-01 00:57:55 GMT
Hey Charlie. Just to start off with, as I believe you were the original author of the SWIG bindings: thanks for the Ruby library! When we first discovered it we were ecstatic, 'cause the Ruby-based solutions we were looking at at the time were prohibitively slow. Nothing beats native libraries (usually, at least), especially when you're dealing with geometries that have potentially tens of thousands of vertices. On Tue, Nov 30, 2010 at 7:08 PM, Charlie Savage <cfis <at> savagexi.com> wrote: > > Great - I think it would be a good idea to package this code as a gem so its > more easily available to the Ruby community. Will the gem also include the > generated swig file (I'd say it probably should to eliminate the extra > dependency on swig) or have you ported the code to just a straight ruby > extensions? > At the moment I just took the SWIG files and am generating the geos_wrap.cxx file as per the original build, but thinking on it a bit more, it doesn't really seem necessary. One of the potential problems with the SWIG files is that some Ruby constants are filled in at build time rather than run time, and that could become problematic -- if you built the gem against GEOS 3.2.0, for instance, but later upgraded the library itself to GEOS 3.2.2, your Ruby gem would still be reporting the 3.2.0 version numbers as it was built. What I think I'll do is just generate the geos_wrap.cxx file from the SWIG files and use that along with some additions to handle extracting the version numbers from the GEOS library at run time rather than at(Continue reading)
RSS Feed