[geos-devel] about buffer of self-intersect polygon

2010-12-09 Thread xie_jiong
Hi All, Dose GEOS supports buffer of self-intersected polygon, just like 'POLYGON ((2 2,-2 -2,2 -2,-2 2,2 2))'. I get the wrong polygon result with GEOSBuffer('POLYGON ((2 2,-2 -2,2 -2,-2 2,2 2))',0.5,8). I use newest verion. Thanks. Jiong___

Re: [geos-devel] about buffer of self-intersect polygon

2010-12-09 Thread strk
On Thu, Dec 09, 2010 at 04:59:24PM +0800, xie_jiong wrote: Hi All, Dose GEOS supports buffer of self-intersected polygon, just like 'POLYGON ((2 2,-2 -2,2 -2,-2 2,2 2))'. I get the wrong polygon result with GEOSBuffer('POLYGON ((2 2,-2 -2,2 -2,-2 2,2 2))',0.5,8). I use newest verion.

[geos-devel] Help - Want to merge / join two polygons

2010-12-09 Thread Namrata
Hi, I am exploring GEOS features. I want to know if it is possible to merge or join 2 polygons? And if I have MultiplePolygons and want to merge /join them all, is there any such method in GEOS? Your kind help is appreciated. Thanks, Namrata -- View this message in context:

Re: [geos-devel] Help - Want to merge / join two polygons

2010-12-09 Thread strk
On Thu, Dec 09, 2010 at 03:10:00AM -0800, Namrata wrote: Hi, I am exploring GEOS features. I want to know if it is possible to merge or join 2 polygons? And if I have MultiplePolygons and want to merge /join them all, is there any such method in GEOS? Sure. See the Union operation. For

Re: [geos-devel] Ruby, FFI and ERROR_/NOTICE_MESSAGE

2010-12-09 Thread Sean Gillies
On Wed, Dec 8, 2010 at 10:34 PM, J Smith dark.panda+li...@gmail.com wrote: On Thu, Dec 9, 2010 at 12:09 AM, Charlie Savage c...@savagexi.com wrote: I believe that the crux of the problem may be due to GEOS's error handlers using varargs, which libffi cannot handle in callbacks according to its

Re: [geos-devel] Ruby, FFI and ERROR_/NOTICE_MESSAGE

2010-12-09 Thread J Smith
On Thu, Dec 9, 2010 at 12:32 PM, Sean Gillies sean.gill...@gmail.com wrote: FWIW, here's the GeoDjango approach:  http://code.djangoproject.com/browser/django/trunk/django/contrib/gis/geos/libgeos.py#L53 and the Shapely approach:  

Re: [geos-devel] Ruby, FFI and ERROR_/NOTICE_MESSAGE

2010-12-09 Thread Charlie Savage
Alright, I think it's all good. I posted to the ruby-ffi list and got back a response already and the prognosis is good! See http://groups.google.com/group/ruby-ffi/browse_thread/thread/836d6c772d8088dc , wherein I picked up the science that Mr. Wayne Meissner laid down. Ah, reading his