Add an interface that allows one-by-one access to statistics #1061

tmcw opened this Issue Feb 2, 2012 · 1 comment

2 participants

Mapnik member

Sorry about that, programmatically opened:

Right now the statistics work has an interface like

mapnik::statistics_ptr datasource::get_statistics()

which is exposed in Javascript & Python:


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:

  • How do we tell implementors which statistics are available for which fields - is it via descriptors?
  • Should we use templates to demand specific statistics, instead of arbitary strings?
Mapnik member

please provide more detail.

@tmcw tmcw closed this Feb 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment