[OSM-dev] mod_tile prerender program
Samir Faci (Dev)
dev at esamir.com
Wed Dec 8 15:09:19 GMT 2010
If you want to just prerender, render_list is pretty simple to use.
I usually do something like this:
render_list -v --all -n 20 --socket=/var/run/renderd/renderd.sock
--min-zoom=0 --max-zoom=13
with -n being the number of cores you have.
render_expired usually takes a list of tiles you want to render.
ie. echo "10/1002/649" | render_expired -v -n 20
--socket=/var/run/renderd/renderd.sock --map=default --min-zoom=10
--max-zoom=13 --delete-from=10
you can use omsosis to download a change set and process it via
osm2pgsql. You can use osm2pgsql to generate a list of expired tiles.
Have a look at this: http://wiki.openstreetmap.org/wiki/Tile_expire_methods
its a lot less time consuming to only rerender the tiles that have
changed. Z10-15 are pretty CPU and time intensive in my experience..
z0-9 can be rendered in a few hours depending on your hardware.
just my 2 cents.
--
Samir
On Wed, Dec 8, 2010 at 3:41 AM, Frederik Ramm <frederik at remote.org> wrote:
> Hi,
>
> On 12/08/10 09:39, Peter Körner wrote:
>>>
>>> I'd like to pre-render the zooms 0 to 14 or 15 and render on-demand the
>>> higher zooms.
>>
>> Are you using tirex? It comes with a very handy tool called
>> "tirex-batch" which can do a lot of pre-rendering and expiring stuff
>> -- probably also what you want.
>
> I also recommend tirex-batch because you can simply give it a bbox and say
> "everything in that area from z0 to z10". However there's a program included
> with mod_tile/renderd called "render_list" which can be used for
> pre-rendering also; it can read individual tile coords from a list but
> accepts an x/y tile range on the command line as well.
>
> Bye
> Frederik
>
> _______________________________________________
> dev mailing list
> dev at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/dev
>
--
--
Samir Faci
*insert title*
fortune | cowsay -f /usr/share/cows/tux.cow
More information about the dev
mailing list