-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
Allow downloading of mbtiles per task #890
Comments
Considering multiple people are generating mbtiles, on the server side it should download all tiles in the project AOI, and then produce the smaller mbtiles for each task. I assume you are having a problem doing this on a local machine, and not the dev server ? |
I have a PR in place to download different formats (mbtiles, pmtiles, sqlite). Proposed Workflow Online:
Offline:
|
There is an inbetween online & offline. I have plenty of memory and storage, so I'd be working online, but not using S3 at all. |
Is this complete? I didn't think so. We need code to split an mbtiles or pmtiles for an entire project into individual task areas. |
@robsavoye suggested we can just run basemapper for the whole aoi, then again for each individual task area. It should used the cached tiles on disk for the task areas, so will be very quick to complete. This is a great idea & saves writing code for pmtile --> mbtile conversion. |
Also, to do this, we need to generate all of the task area mbtiles in one go automatically (when a project is created?) This is probably a good idea anyway, as long as it doesn't take up a large amount of S3 storage space. |
@spwoodcock |
By default, I use ESRI. |
Excellent, thanks @nrjadkry My thoughts are to:
Both can be done as a background task. The advantage of the PMTiles is that it can be streamed when the user is online. The MBTiles can be stored in the S3 and downloaded as needed before going offline. Perhaps: |
We don't want to cache the map tiles under org or project, as we'll get duplication. For the generated mbtiles basemap, that does make send to store them under project id. Not sure if org is needed. |
Yeah we don't want to store the cached tiles - they get discarded afterwards and we only keep the generated tile archives (we should probably add the step to delete the tile output folder from the tmp dir after we have all the tile archives generated 👍) As for the org id, it's probably not necessary, true - we already have the folder structure in place, but could consider changing it in the future (I thought the org id made the bucket root dir a but neater, rather than 100's-1000's of project dirs in one). |
Storage on AWS is approx $0.08/GB, so 300GB of data would cost $288 a year per instance. Make the data global and for multiple providers, then we are talking $1000's spent on storing map tiles. |
@NSUWAL123 I think Sujan has already prepared an api for downloading tiles per task and as per the last discussion, we will be generating tiles using ESRI imagery by default. But we do not have any UI on the frontend side for the users to download the tiles per task. I will suggest a design for the pop-up that includes the download icon and you can proceed ahead. |
I closed #1080 for now. Question
If the answer is, 'no we don't have requests for this', then I think we should close until a future time when (if) we do have requests. Possible Solution
|
Closing this until we find a good reason to implement it. It can always be re-opened if someone discovers that 👍 |
Problem:
The mbtiles are too large and takes up more memory space if I download the entire mbtile of the project area.
Solution:
I want to download only the mbtiles of assigned task
This will save my memory space and easy to load.
The text was updated successfully, but these errors were encountered: