[geos-devel] initGEOS/finishGEOS and multiple subsystems

Mateusz Loskot mateusz at loskot.net
Fri Jun 30 16:30:21 EDT 2006

strk at refractions.net wrote:
> With GEOS-3.0.0 initGEOS/finishGEOS do not instantiate/delete
> a GeometryFactory anymore. Rather the default GeometryFactory
> is used. This should fix the problem.

What about backport to 2.2.x with ref-counted proposal?
Such changes could would not affect existing code.

I'd like to repeat that in general, global factory should be replaced
with shared object (e.g. managed by shared_ptr from Boost or our own
home-made shared smart pointer).
static factory can cause problems too:

Mateusz Loskot

More information about the geos-devel mailing list