Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3796974
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T13:19:36+00:00 2026-05-19T13:19:36+00:00

I downloaded the Australian OSM extract and moved it into a database called gis

  • 0

I downloaded the Australian OSM extract and moved it into a database called gis using osm2pgsql.

I have changed generate_tiles.py to only generate tiles for 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 I attempt to generate tiles with:
export MAPNIK_MAP_FILE=”osm.xml” && export MAPNIK_TILE_DIR=”/tmp/tilecache/” && ./z0generate_tiles.py

Lots of directories are created in /tmp/tilecache with png tiles. The tiles have state boundaries and country names and there does appear to be highways.
But.. when I navigate to the address:
http://localhost/osm/tilecache-2.11/index.html
I only see countries and states, but no labels and no streets. I figure it is probably a permissions issue with accessing the postgis data. I have gone into psql and issued:
GRANT ALL PRIVILEGES ON DATABASE gis TO PUBLIC

In /etc/tilecache.cfg I 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 would seem that mapnik is not able to communicate with postgis. I have logged into postgres and executed:
GRANT ALL PRIVILEGES ON DATABASE gis TO PUBLIC

I generated the my_osm.xml file with the following:

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

It generated without any errors.

That’s about as far as I can take it. New files are being created when accessed via the web, they just don’t have any road information.
Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T13:19:37+00:00Added an answer on May 19, 2026 at 1:19 pm

    One comment:

    • generate_tiles.py and tilecache are different applications and don’t know about each other. So, your tilecache config will only be read by the tilecache application. But, if tilecache is used with ‘tms_type=google’, like you have done, the cache schemes used by each
      program should match.

    Couple things to check on your missing roads:

    • Sometime problems with old geos libraries can lead to lacking data imported by osm2pgsql, so make sure there are a lot of rows in the plant_osm_line table:

      select count(*) from planet_osm_line;

    • Also, make sure you are running the latest Mapnik version, at least 0.7.0, ideally 0.7.1.

    • Try rendering a few maps with nik2img.py and make sure mapnik does now output any warnings that might be causing this – a common issue can be missing proj4 epsg definitions for EPSG:900913

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

have downloaded Orca to edit an MSI file. I want to remove some banner
I have downloaded a font that looks less than desirable if it is not
The Australian Electoral Commission has free ESRI and MapInfo formate GIS layers of Australian
Downloaded Django, ran install, now I need to setup a database -- And I'm
I downloaded a disk and memory editor called HxD (available at http://mh-nexus.de/en/hxd/ ). I
I downloaded some sample code which includes a database query within the markup code.
I downloaded a Wikipedia dump and I want to convert the wiki format into
I downloaded the mongo_mapper gem and it installed successfully. Now, I am using it
I downloaded Punjab from Github . I also have Python 2.7, Twisted Python 10.2,
I've downloaded AnkhSVN to use for version control. I'm also using Codesion for my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.