Re: [geos-devel] GEOS FFI Ruby bindings

2010-12-03 Thread strk
On Thu, Dec 02, 2010 at 07:21:06PM -0500, J Smith wrote: Howdy folks. Well, Charlie Savage planted the idea in my mind, so I'm currently in the process of re-writing the GEOS bindings for Ruby in Ruby using FFI. After a hack-fest last night, I've gotten the basics down, and am writing a

Re: [geos-devel] Snapping bug ?

2010-12-03 Thread strk
On Fri, Dec 03, 2010 at 03:23:43PM +0100, strk wrote: On Fri, Dec 03, 2010 at 11:02:35AM +0100, strk wrote: GEOS/JTS in sync (I checked and synched, only additional snapToSelf was missing). So, Martin. After a closer look I found that indeed GEOS wasn't checking for duplicates as JTS

Re: [geos-devel] GEOS FFI Ruby bindings

2010-12-03 Thread J Smith
On Fri, Dec 3, 2010 at 4:58 AM, strk s...@keybit.net wrote: Make sure to use the reentrant interface, worth, for new projects. We may add support for precision models and things like that with its use (contextual settings). You mean use the *_r(handle, ...) functions and whatnot? Yeah, I

Re: [geos-devel] Snapping bug ?

2010-12-03 Thread Martin Davis
Ok, I've tried this in JTS, and I get the same results as you posted for GEOS. POLYGON ((0.5 0, 0.5 0, 1 1, 0 1, 0.5 0)) So yes, duplicate points are not being removed correctly. This isn't a problem in the context in which this code is being used in JTS (polygon overlay), since duplicate