[Tilesathome] Use of client for offline rendering
Andreas Titz
erddaten at fahrrad.streckenfun.de
Sun Feb 14 12:25:00 GMT 2010
Jens Müller wrote:
> Forgive me if this is not totally the right place, but I think it's
> possible to re-use a lot of T at H work here.
>
> I'd like to render as specific z12 tile from a local .osm file (to
> support in mapping an area from scratch. I don't want only the .svg, but
> also tiles as .png.
>
> This should be exactly what tilesGen.pl xy does, without the download of
> from the database and without packing and uploading the tiles.
>
> Any hints of what to adapt?
A few days ago I posted a patch to the T at H-client on talk-de in the
thread "Re: Osmarenders eingebaute pattern anpassen".
With that patch the client uses a hard-coded local datafile. But I
think it should be possible to modify the patch for variable filenames.
> And one totally off-topic question: It should be possible to display
> locally stored tiles in a Openlayers HTML page, with JS and HTML and
> tiles all local, right?
I'm just rendering tiles with a special style for offline usage. :-)
I configured the client to upload to a directory. And I didn't enter username
and password to avoid uploading to the osm-servers by accident.
I display the tiles with pymap (which in in the svn [1]), but I extended
that script a little bit, so that it can handle the T at H-tilesets (zip-files)
directly.
HTH, Andreas
[1] http://trac.openstreetmap.org/browser/applications/viewer/pymap
More information about the Tilesathome
mailing list