Question

I am still trying to get my server running OpenStreetMap. I have TileCache and Mapnik installed. I have an extract of the U.S. state of Oklahoma imported into my database. I have used OSM Mapnik tools to create an XML stylesheet and I have confirmed that 'generate_image.py' makes a nice map image. I have (at least I believe I have) granted PostGIS access properly. My user has full permissions over all of the tables in the database. When I look in the Apache logs, all I see are notes about cache misses (I used to see database connection issues, but I don't any more). In the Postgres logs, I don't see anything (again, I used to see access denied issues, but I don't anymore). Despite all of this, when I ask TileCache to render a tile from the OSM Mapnik layer, all I get is this image:

Mapnik Rendered Tile

This image shows up no matter where I am on the map or what zoom level I am at. I have TileCache running under CGI and it has a configuration like this:

[osm]
type=Mapnik
mapfile=/var/maps/bin/mapnik/osm.xml
spherical_mercator=true

I am using OpenLayers and my Javascript looks like this:

var map = new OpenLayers.Map("mapdiv");
var vec = new OpenLayers.Layer.TMS("TC", "http://maps.company.com/cgi-bin/tilecache/tilecache.cgi/", {serviceVersion: "1.0.0", layername: "osm", type: "png"});
map.addLayer(vec);

I have been working on this server for two and a half weeks. I have read every blog, forum, or other post I can find. This is my third question today. I am getting desperate. I would really appreciate any help anybody has.

Était-ce utile?

La solution

Can you confirm that you have valid data in postgis? Opening up the data in Quantum GIS is a good way to check.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top