[Tilesathome] render a region

Ævar Arnfjörð Bjarmason avarab at gmail.com
Thu Jan 8 14:19:41 GMT 2009


On Wed, Jan 7, 2009 at 12:38 PM, Ruggero <giurrero at gmail.com> wrote:
> Is it possible to develop the possibility to render an entire (little)
> region with one command? For example:
>
> ./tilesGen.pl region LondonCity
> ./tilesGen.pl region Lombardia
> ./tilesGen.pl region littleregion1
> ...
>
> maybe the name of the region will be defined in a local file (not an
> official file in the svn), and everyone can define their region, for
> example:
>
> == my_region.dat ==
>
> littleregion1: xy 10 20, xy 11 20, xy 12 20, xy 13 20
> littleregion2: xy 30 40, xy 31 40, xy 30 41
> ...
> medium_region: littleregion1, littleregion3
> ============

I've written tools for my own use which approximately this:

http://git.nix.is/?p=avar/tah-avar;a=tree;h=master;hb=master

I use it like this, to render stuff in the city I'm editing I just changed:

time (lwp-request
'http://api.openstreetmap.org/api/0.5/map?bbox=-22.13,63.993,-21.617,64.26'
| perl ../script/osm-to-tilenumbers.pl --zoom 12 --predicate
'abs($sec_ago) < (60**2 * 1)' | perl ../script/tilesGen-monitored.pl
--zoom 12)

Or, to generate a list of tiles:

time (perl -E 'say for map { my ($x,$y) = $_ =~ /(\d+)\D+(\d+)/;
"$x,$y" } @ARGV' 1888/1063/ 1889/1063/ 1888/1064/ 1889/1064/ | perl
../script/tilesGen-monitored.pl --zoom 12)




More information about the Tilesathome mailing list