Hi everyone,

My engineer is trying to do rendering up to level 16 but we kind of stuck right 
now. We are pretty new in this application so if any of you could help us on 
this, it would be great help to us. Please refer to below for more detail info.

-------------------------------------------------------------------------
We would like to do rendering OSM up to zoom level 16 using mapnik. Right now, 
we are just focusing on Japanese map only which you can find at 
http://www.openstreetmap.jp/.

We also referred to following link but didn't get the expected result so far.
http://wiki.openstreetmap.org/wiki/Mapnik
http://wiki.openstreetmap.org/wiki/DE:Mapnik

The problem is that we can only render up to zoom level 10, not 16 and at zoom 
level 11, we basically cannot see anything. Even at zoom level 10, we cannot 
see any data such as street name, country name or anything.

Regarding OSM, we imported from following link.
http://downloads.cloudmade.com/asia/japan#downloads_breadcrumbs
*japan.osm.bz2
*japan.osm.coastline.bz2
*japan.osm.highway.bz2

We followed following steps:
1. Install PostgreSQL8.4.5/PostGIS1.5, Python2.6.6, mapnik0.7.1

2. Create database
$ createdb -U postgres -E UTF8 -O mapnik gis

3. Run sql
$ psql -U postgres -d gis -f "C:\Program
Files\PostgreSQL\8.4\share\contrib\postgis-1.5\postgis.sql"
$ psql -U postgres -d gis -f "C:\Program
Files\PostgreSQL\8.4\share\contrib\postgis-1.5\spatial_ref_sys.sql"
$ psql -U postgres -d gis -f "C:\Program
Files\PostgreSQL\8.4\share\contrib\_int.sql"
$ psql -U postgres -d gis -f "C:\Program
Files\PostgreSQL\8.4\share\contrib\hstore.sql"

4. Run osm2pgsql
$ osm2pgsql -c -s -d gis -U postgres -S default.style japan.osm.bz2
$ osm2pgsql -c -s -d gis -U postgres -S default.style japan.osm.highway.bz2
$ osm2pgsql -c -s -d gis -U postgres -S default.style
japan.osm.coastline.bz2
$ osm2pgsql -c -s -d gis -U postgres -S default.style
japan.osm.administrative.bz2

5. world_boundaries(in mac)
$ tar xzf world_boundaries-spherical.tgz
$ tar xjf processed_p.tar.bz2 -C world_boundaries
$ tar xjf shoreline_300.tar.bz2 -C world_boundaries
$ unzip 10m-populated-places.zip -d world_boundaries
$ unzip 110m-admin-0-boundary-lines.zip -d world_boundaries

6. Check out mapnik repository
URL: http://svn.openstreetmap.org/applications/rendering/mapnik

7. Create mapnik setup file
$ generate_xml.py osm.xml out.xml --host localhost --user postgres
--dbname gis --symbols ./symbols/ --world_boundaries ./world_boundaries/
--port 5432 --password ''

8. Using generate_tiles_multiprocess.py, do rendering
$ set HOME=C:\mapnik-0.7.1\svn\
$ set MAPNIK_MAP_FILE=C:\mapnik-0.7.1\svn\out.xml
$ set MAPNIK_TILE_DIR=C:\mapnik-0.7.1\svn\tiles\
$ generate_tiles_multiprocess.py

The portion we changed to for Japanese map
# zoom level=16- describe Japan
bbox = (112.5,22.0,157.5,55.7)
render_tiles(bbox, mapfile, tile_dir, 16, 16 , "Japan")
# zoom level=10- describe Japan
bbox = (112.5,22.0,157.5,55.7)
render_tiles(bbox, mapfile, tile_dir, 10, 10 , "Japan")

Hardware spec:
PC Spec
CPU:Core2 6700 2.66G
RAM:3G
Hard Disk:256G
OS:Windows XP SP3
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to