MODULE = Geo::Geos PACKAGE = Geo::Geos::Prep::GeometryFactory PROTOTYPES: DISABLE BasicPreparedGeometry* prepare(Geometry& g) { auto pg = const_cast(PreparedGeometryFactory::prepare(&g)); RETVAL = static_cast(pg); }