Sorry about that, programmatically opened:
Right now the statistics work has an interface like
But in some cases statistics will be expensive (unindexed tables in PostGIS, etc), so there might need to be an interface like
mapnik::value datasource::get_statistics(std::string, std::type)
But this raises a few questions:
please provide more detail.