[geos-devel] GEOS 2.2.2 C API + Reference counter

Mateusz Loskot mateusz at loskot.net
Sat Jul 1 08:16:46 EDT 2006


strk at refractions.net wrote:
> Don't we get the same effect by just making sure the global 
> geometryFactory is set to 0 after deletion ?

Yes, in current GEOS 2.2.2 we do.
But the ref-counter is better in case if any other
initialization/deinitialization will be required in init/finishGEOS.
I mean, it's more extensible.

Cheers
-- 
Mateusz Loskot
http://mateusz.loskot.net



More information about the geos-devel mailing list