[geos-devel] GEOS-3.6.0 released

Sandro Santilli strk at kbt.io
Wed Oct 26 01:04:50 PDT 2016

On Tue, Oct 25, 2016 at 09:23:12PM +0200, Sebastiaan Couwenberg wrote:
> On 10/25/2016 06:07 PM, Sandro Santilli wrote:
> >   - C++ API changes:
> >     - Automatic memory management for GeometryFactory objects
> This change seems to cause the build failures for OSSIM, osmium &
> osm2pgsql with GEOS 3.6.0. All three builds fail with these errors:
>  'geos::geom::GeometryFactory::GeometryFactory()' is protected within
> this context
>  'virtual geos::geom::GeometryFactory::~GeometryFactory()' is protected
> within this context
> What is the proper way to support GeometryFactory for both GEOS 3.5.0
> and 3.6.0?

I guess C++ API users should make a wrapper to construct and destroy
GeometryFactories. For 3.6+ construction uses a factory, and
destruction is automatic.

Those tools should really consider switching to the C-API instead,
which was introduced for the exact purpose of keeping it stable.


More information about the geos-devel mailing list