[OSM-dev] Problem with Postgresql / Mapnik / SRTM Contours

Keith Sharp kms at passback.co.uk
Sun Nov 23 16:47:24 GMT 2008


Hello,

I'm trying to build a local slippy map of the UK based on Nick's planet
extract and the SRTM data.  I've managed to get the latest extract
loaded in Postgresql and did some test rendering with the
generate_image.py script from the OSM Mapnik SVN directory.  I was able
to produce the images I expected.

I then moved on to try and add the SRTM data to Postgresql based on the
instructions on:

  http://wiki.openstreetmap.org/wiki/Contours#The_PostGIS_approach

I calculated that for the UK I needed the SRTM tiles in the range:

	N49 to N60
	E000 to E002
	W001 to W011

I downloaded the tiles and applied the script from the Wiki to create
and populate the contours table, which all seemed to work without error.
I then added the Style and Layer sections from the Wiki to my osm.xml
file, updating the database details as needed.

When I run generate_image.py it completes without error and the image
contains the base OSM data I would expect, but no contours.

I'm using Fedora 9 with all packages (including mapnik, gdal,
postgresql, postgis, etc) from Fedora and the latest osm2pgsql and
Mapnik style from OSM SVN.  I've copied my osm.xml, generate_image.py,
and image.png, files to:

  http://www.passback.org.uk/tmp/contours/

Can anyone suggest how I go about debugging this?

Thanks,

Keith.





More information about the dev mailing list