AtlasOfLivingAustralia / layers-service

Spatial layers - this repo for issues/doc only, not code
3 stars 4 forks source link

Generate layer usage stats #112

Open Tasilee opened 5 years ago

Tasilee commented 5 years ago

While we have in theory, a record of some layer usage via logs, it is probably not comprehensive. Ideally, we need to capture all usage of a layer (display only or in Tools). Ideally, I would like to see an additional column added to the CSV/JSON dump at http://spatial.ala.org.au/layers that lists the number of times each layer has been used - from a convenient base time.

Usage:

Add to Map | Layer Add to Map | Area | Select area from polygonal layer Add to Map | Area | Gazetteer polygon Add to Map | Area | Environmental envelope Tools | Scatterplot - single Tools | Scatterplot - multiple Tools | Tabulate Tools | Predict Tools | Classify Tools | Phylogenetic diversity

Tasilee commented 5 years ago

Who can tackle this most efficiently? We need these stats ASAP so we can finalize for the layer 'rationalization'.

M-Nicholls commented 4 years ago

data and script provided by Dave

layers_usage.csv.zip

Tasilee commented 4 years ago

Ideally, we need results with at least layer 'display name' in addition to 'id's: looking them up is a pain. Even better, with the two-level classification - so we can sort analyze by categories.

ansell commented 4 years ago

@M-Nicholls @djtfmartin The script doesn't describe how the layer_usage.csv file was generated to be able to regenerate it with the current data.

@Tasilee The script currently includes both the name and the two classifications in the aggregated result set.

M-Nicholls commented 4 years ago

stats from current layers service: 2 months current layer usage stats.zip

Tasilee commented 4 years ago

I now have all the stats for the old SP and two months of the new and I am working through usage with categories

  1. Retain
  2. Remove
  3. Remove from biocache (needs clarification)
  4. Update with new version
  5. Replace with a better layer/suite