[geos-devel] Bug in GEOS not in JTS
strk
strk at keybit.net
Fri Apr 23 03:00:46 EDT 2004
On Fri, Apr 23, 2004 at 01:01:27AM -0400, Carl Anderson wrote:
>
> the following snip (for PostGIS) always causes a SIGABRT. I am sure
> that it is in GEOS.
>
> select buffer(shape,0) from
> (
> select 'MULTIPOLYGON(((2170000 1350000,
> 2170000 1350176.60928587,2170055.96366235 1350000,2170000 1350000)))'::
> geometry as shape ) as a
> ;
>
> actually any shape that is the left 1/2 of a north up oriented
> rectangle seems to cause the SIGABRT. the error can be triggered by
> buffer(), difference(), intersection(), and symdifference().
>
> buffer(shape,0.00001) does not SIGABRT in the above example.
>
> I tested this and several similar shapes that bomb in PostGIS and they
> validate correct in JTS/JUMP. Even the buffer(0) fcn works in JUMP.
>
> does anyone have a working version of doc/example.cpp against CVS
> that I can use to track this down?
>
> C.
If you comment line 271:
geoms->push_back(create_simple_collection(geoms));
doc/example.cpp will run with some memory leaks and incorrect
results, but without memory faults.
--strk;
>
>
>
> Carl Anderson.
>
> _______________________________________________
> geos-devel mailing list
> geos-devel at geos.refractions.net
> http://geos.refractions.net/mailman/listinfo/geos-devel
More information about the geos-devel
mailing list