[OSM-dev] tile issue (was: Re: convert tool)
Dominik Spies
kontakt at dspies.de
Wed Jun 18 21:40:31 BST 2008
Richard Duivenvoorde wrote:
> on debian it's in the package 'imagemagick', don't know the footprint of
> that package though. But it has a lot of dependencies (with X11) etc etc.
hm, same thing. about 100MB on disk storage.
Jon Burgess wrote:
> view.save(tile_uri,'png256')
works fine!
I'll use this for now.
Another issue I ran into is really odd:
There are large areas without anything on the tiles, and the area is
somehow moved to northeast (what explains the empty areas, because there
is no data for them).
Also, a tile e.g. http://10.10.11.102/tiles/12/2193/1413.png shows part
of motorway A92 near Plattling. When I requets this tile from
openstreetmap (http://a.tile.openstreetmap.org/12/2193/1413.png) I shows
another area, ~ 25km northwest.
What could be the reason for that? Thats what I did:
I downloaded a certain area with:
http://api.openstreetmap.org/api/0.5/map?bbox=12.322,48.471,12.981,48.796
I transfered it into pgsql (psql 8.2.7) with svn version of osm2pgsql.
worked fine:
postgres at vmub804:/home/dosp/osm2pgsql/osm2pgsql$ osm2pgsql -d osm
../../lkdgf.osm
osm2pgsql SVN version 0.08-20071112 $Rev: 4842 $
Setting up table: planet_osm_point
Setting up table: planet_osm_line
Setting up table: planet_osm_polygon
Setting up table: planet_osm_roads
Reading in file: ../../lkdgf.osm
Processing: Node(14k) Way(0k) Relation(0k)
Writing way(0k)
Node stats: total(14485), max(271047776)
Way stats: total(788), max(24942067)
Relation stats: total(21), max(17457)
Then I setup mapnik (svn checkout
http://svn.openstreetmap.org/applications/rendering/mapnik
) by editing the set-mapnik.., source.. and finally editing
generate_tiles.py to:
bbox = (12.322,48.471,12.981,48.796)
render_tiles(bbox, mapfile, tile_dir, 10, 15, "DGF-Lan")
all other render_tiles commented out.
More information about the dev
mailing list