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

Order cache by tile names #300

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jonaseberle
Copy link
Contributor

This changes the cache directory layout to give its contents more semantic information.

It creates sub-directories like -48+013/ when cache images are saved.

This allows to see which data has been downloaded for a region. It also enables manual pruning of a region if needed without additional tools to deal with the Slippy tile names.

TODO: It does not move existing files into the new structure yet.

So that's currently just a proposal for a more obvious cache structure.

This changes the cache directory layout to give its contents more
semantic information.

It creates sub-directories like `-48+013/` when cache images are saved.

This allows to see which data has been downloaded for a region.
It also enables manual pruning of a region if needed without additional
tools to deal with the Slippy tile names.

TODO: It does not move existing files into the new structure yet.
@jonaseberle
Copy link
Contributor Author

Or did you have the started work on the http://localhost:5000 map in mind for looking at the cache?
That map could be very interesting in general, maybe even showing the state of images (accessed, downloading, delivered to X-Plane, ...) during flight.

@kubilus1
Copy link
Owner

This is a really interesting idea. I wonder if there is a way to do this but still allow and find the existing set of cache? Or maybe a tool to 'organize' these the first time?

@jonaseberle jonaseberle marked this pull request as draft August 30, 2023 16:19
@jonaseberle
Copy link
Contributor Author

I pull that back and suggest leaving the cache layout as is for now. The current layout is even useful because it allow to directly serve a Slippy Map from it ;)

I think the idea of having a map frontend showing the current state of AutoOrtho and its tiles could be a valuable addition and I think your idea with the web server in AutoOrtho and HTTP + WebSocket is the right way to do it.

Just being able to look at it to understand how X-Plane accesses DDSs and AutoOrtho downloads and delivers would be awesome.

Additionally it could have functions like manually downloading an area (for a given zoom level or zoom level range), pre-caching for a given route (.fms file) or deleting an area from cache.

Finally I'll be able to use my Webdev skills ;)

@kubilus1
Copy link
Owner

kubilus1 commented Aug 30, 2023 via email

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

Successfully merging this pull request may close these issues.

2 participants