Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Time-lapse support #11

Open
dvdmandt opened this issue Apr 16, 2024 · 0 comments
Open

Feature: Time-lapse support #11

dvdmandt opened this issue Apr 16, 2024 · 0 comments

Comments

@dvdmandt
Copy link
Collaborator

It would be interesting to be able to support history of a particular map/view, at least with timed "snapshots". This would probably be fairly easy to implement for SQL based storage. The idea is that the user would define a limited area, a particular zoom level and an interval.

On init, all tiles in the selected area are copied to a new time-lapse table. After each period, find all tiles in main map that either have no previous entry in the time-lapse table, or where the last updated timestamp is higher than the last seen tile in the time-lapse table and the hash code is different, and insert all such tiles into the time-lapse table with an increased snapshot-id or such.

It should be doable to write a query that does the copying "automatically" (let the DB do it for us), and I think it should be doable to make a query that returns a set of the latest tiles for a specific snapshot. Getting the latest version of a specific tile position for a certain snapshot would definitely be trivial, and perhaps what would be needed anyway depending on how the viewer is implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant