[geos-devel] Upgrading to geos 3.3.0 broke all our codebase !

Sandro Santilli strk at keybit.net
Fri Jul 8 06:31:37 EDT 2011


On Fri, Jul 08, 2011 at 10:48:56AM +0200, Maxime van Noppen wrote:
> Hi,
> 
> I upgraded to geos-3.3.0 and it broke all our code base. :( The
> offending change was the use of virtual inheritance which broke all
> our static_casts. The « easy » fix is to s/static_cast/dynamic_cast
> everywhere, but that increases the runtime cost...
> 
> I follow (I think) all the mailing lists related (geos-* and
> postgis-*) and don't recall this being discussed. Have I missed
> something ? And if not, what was the rationale behind this change ?

The rationale was: follow JTS.
If you read the mailing lists you should be aware that using
the C++ API is not recommended.
Clients of the C-API are stable since GEOS-2.2.0

Note that using static_cast is generally a bad habit and
should be avoided.

Profiling informations comparing GEOS-3.2 and GEOS-3.3 are welcome.

--strk;

  ()   Free GIS & Flash consultant/developer
  /\   http://strk.keybit.net/services.html


More information about the geos-devel mailing list