[Tilesathome] less inkscape runs

spaetz osm at sspaeth.de
Fri Aug 22 09:50:19 BST 2008


On Thu, Aug 21, 2008 at 09:19:26PM +0200, Alfons Andorfer wrote:
> Yes, it really _is_!

Good to know.
 
>  > Worthwhile exploring?

> I've called it "osm2tiles.pl" and you can get it if you want. (I already 
> sent it to Frederik, but didn't hear back from him yet)

Frederik sent it to me, that's how I got the idea. SO credits for this go really to you :-)
 
> In my script this error is 0 ("zero") because I also changed the 
> projection formula (from orp.pl) slightly.

I would be very much interested in an improved project to orp that enabled us to simply cut the resulting svg in equal stripes (and tiles). The same change would be needed for xslt osmarender though, to keep them on par. Is there an isolated diff that does this for orp? This change would be useful on its own already.
 
> My "osm2tiles.pl" script does the following if you want to render one tile:
> - it reads the osm file and generates the internal data (no change to 
> orp.pl"
> - it loops from z12 to z17 and generates a SVG for every zoom level
> - it produces _one_ PNG for every zoomlevel (256*256px for z12, 
> 512*512px for z13, 1024*1024px for z14,..., 8192*8192px for z17)
> - it chops these BIG PNGs to 256*256px tiles

Well, I certainly don't want to modify orp.pl to directly produce png files, but if orp did the projection so that inkscape simply needs to render 1 svg to a png for each zoomlevel and tilesGen.pl could take that png and chop it up. That would be great.

spaetz




More information about the Tilesathome mailing list