[geos-devel] getCentroid on empty collection
strk at refractions.net
strk at refractions.net
Thu Dec 30 08:27:56 EST 2004
On Thu, Dec 30, 2004 at 02:21:17PM +0100, strk at refractions.net wrote:
> Calling getCeontrid on an EMPTY GEOMETRY currently returns
> NULL, should it return EMPTY GEOMETRY again instead ?
mm.. The signature does not allow this.
I've just corrected a memory fault happening inside getCentroid()
for those cases and handled NULL returns from XMLTester.cpp.
There are probably other places in where to look for "dangerous"
use of getCeontrid() returns.
--strk;
For standing up against patentability of software,
Thank You, Poland!
Read the intervention: http://kwiki.ffii.org/ConsPolon041221En
Send your thanks: thankyoupoland.info
Read/do more: http://www.noepatents.org/
More information about the geos-devel
mailing list