-
Notifications
You must be signed in to change notification settings - Fork 4
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
How to generate vector tiles from RAWR tiles ? #25
Comments
You can use the Hope that helps! |
Thanks, I was able to generate vector tile using |
Yes, generating a single tile from a RAWR tile can be very slow, especially for RAWR tiles with lots of data in them. If you want to generate a small number of individual tiles, or generate tiles on-demand, then I'd recommend not using RAWR tiles and using the database directly. The reason for this is that RAWR tiles were designed to be plain data and are not indexed by the PostgreSQL has already paid this Generally, when we use RAWR tiles it's for large-scale batch generation and we group jobs by the RAWR tile they're part of, so we can amortize the indexing cost over many tiles (85 per z10 RAWR tile in our current configuration). This means we can run all those jobs concurrently without overloading the (small cluster of) PostgreSQL databases. |
Triaged some of this into the wiki, please followup with additional questions. |
Thanks for the detailed explanation. For the next step, how do i run the process so that tiles that are part of a single rawr tile are generated together, sharing the indexing cost ? Here's what i tried: I used the enqueue-tiles-of-interest-pyramids command to create a queue (of type file). The queue seemed to contain tile coordinates in a hierarchical manner (according to their zoom level). I copied one such group into a file tile_queue_file_group.txt and used it as a queue. Then i ran the process command with use-rawr-tiles set to However, it seems each tile is taking large amount of time to be generated where i was expecting, starting from the second tile, generation time would be low. |
That sounds like it should work, but there's a couple of things which might be complicating the process.
The queueing system in If it's still slow, you could try putting a breakpoint or print statement on the RAWR tile index generating code to check if it's being called multiple times. Hope that helps! |
Successfully batch generated vector tiles from rawr tiles with reasonable run time. I had the issue you mentioned in 1. |
I was able to generate RAWR tiles by running
rawr-process
intilequeue
repository. However, i am not sure how to use these RAWR tiles to generate vector tiles. Do i use code from this repository, or is there any example available showing how to do that?The text was updated successfully, but these errors were encountered: