[geos-devel] initGEOS/finishGEOS and multiple subsystems
strk at refractions.net
strk at refractions.net
Fri Jun 30 16:09:05 EDT 2006
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.
--strk;
On Fri, Jun 30, 2006 at 09:31:31AM -0500, Howard Butler wrote:
> Recently, Steve Lime reconfigured MapServer to use the GEOS C API
> instead of the C++ one. Python Cartographic Library, which builds on
> MapServer and GEOS, among other things, *also* uses the GEOS C
> API. Each subsystem doesn't know when the other is calling
> initGEOS/finishGEOS, and on teardown, this is causing a segfault
> because the geomFactory has already been destroyed.
>
> After some discussion on #gdal with Frank, Norman, and Mateusz, we
> suggest that initGEOS/finishGEOS do some reference counting to ensure
> that geomFactory isn't prematurely destroyed.
>
> Does this seem reasonable?
More information about the geos-devel
mailing list