CascadesCarnivoreProject / Carnassial

Carnassial: Simplifying Remote Camera Data
Other
3 stars 0 forks source link

data: support datetime ordering of selected images #126

Closed twest820 closed 8 years ago

twest820 commented 8 years ago

Currently the image data table is always populated in the order rows are returned from the database, which is equivalent to ORDER BY Id. This is useful in that images are kept in the order they were added to the database in, which provides a certain historical record and a natural tendency to group files in batches which are chronologically ordered both internally (due to camera file naming conventions) and from batch to batch (because files). However, it's unhelpful when reviewing the encounter history of camera arrays as all images from one camera's service are shown, the next camera from the same service, and so on. This makes it difficult to see how a critter appeared in the array as the images from that detection are scattered well apart.

In 2.1.0.5 this is trivially addressed with an ORDER BY DateTime. Best workaround with current bits is a custom filter selecting only the day the detection occurred on. But this quickly becomes a hassle to apply as it scales poorly with the number of detections.

It is likely desirable to also make the DateTime column a secondary key.

saulgreenberg commented 8 years ago

We could add a sort menu that contains what we think are the useful sort choices. The sort would be applied only to the files in the current filter. Possible candidates could be:

A possible issue with sorting by date/time using an array of cameras is that it assumes that the cameras are synchronized.