[OSM-dev] Problem with Postgresql / Mapnik / SRTM Contours
Dane Springmeyer
blake at hailmail.net
Sun Nov 23 17:55:36 GMT 2008
Keith,
Generating an image with nik2img.py using the -v (verbose) flag might
help debug further:
http://code.google.com/p/mapnik-utils/wiki/Nik2Img
To install just do $ easy_install nik2img
Dane
On Nov 23, 2008, at 8:47 AM, Keith Sharp wrote:
> 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.
>
>
> _______________________________________________
> dev mailing list
> dev at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/dev
More information about the dev
mailing list