gis - Tilecache failing to generate tiles using Mapnik -


i downloaded australian osm extract , moved database called gis using osm2pgsql.

i have changed generate_tiles.py generate tiles australia:

bbox = (-180.0,-90.0, 180.0,90.0)  render_tiles(bbox, mapfile, tile_dir, 0, 5, "world")  minzoom = 10 maxzoom = 16 bbox = (101.1,-6.9,165.5,-45.9) render_tiles(bbox, mapfile, tile_dir, minzoom, maxzoom) 

when attempt generate tiles with: export mapnik_map_file="osm.xml" && export mapnik_tile_dir="/tmp/tilecache/" && ./z0generate_tiles.py

lots of directories created in /tmp/tilecache png tiles. tiles have state boundaries , country names , there appear highways. but.. when navigate address: http://localhost/osm/tilecache-2.11/index.html see countries , states, no labels , no streets. figure permissions issue accessing postgis data. have gone psql , issued: grant privileges on database gis public

in /etc/tilecache.cfg have:

[cache] type=disk base=/tmp/tilecache [osm] type=mapnik mapfile=/home/(my user_name)/bin/mapnik/my_osm.xml spherical_mercator=true tms_type=google metatile=yes [basic] type=wms url=http://labs.metacarta.com/wms/vmap0 extension=png 

it seem mapnik not able communicate postgis. have logged postgres , executed: grant privileges on database gis public

i generated my_osm.xml file following:

./generate_xml.py osm.xml my_osm.xml --dbname gis --user (uname) --password (pword) --accept-none 

it generated without errors.

that's far can take it. new files being created when accessed via web, don't have road information. ideas?

one comment:

  • generate_tiles.py , tilecache different applications , don't know each other. so, tilecache config read tilecache application. but, if tilecache used 'tms_type=google', have done, cache schemes used each program should match.

couple things check on missing roads:

  • sometime problems old geos libraries can lead lacking data imported osm2pgsql, make sure there lot of rows in plant_osm_line table:

    select count(*) planet_osm_line;

  • also, make sure running latest mapnik version, @ least 0.7.0, ideally 0.7.1.

  • try rendering few maps nik2img.py , make sure mapnik output warnings might causing - common issue can missing proj4 epsg definitions epsg:900913


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -