« Return to Thread: generate_tiles.py problem

Re: generate_tiles.py problem

by Eamorr () :: Rate this Message:

Reply to Author | View in Thread

Here's my javascript:
 
var options ={
        maxResolution: "auto",
        maxExtent: new OpenLayers.Bounds(-10.93, 51.26, -5.21, 55.56),
        minResolution: "auto",
        resolutions:[156543.03390000001, 78271.516950000005, 39135.758475000002, 19567.879237500001, 9783.9396187500006, 4891.9698093750003, 2445.9849046875001, 1222.9924523437501, 611.49622617187504, 305.74811308593752, 152.87405654296876, 76.43702827148438, 38.21851413574219, 19.109257067871095, 9.5546285339355475, 4.7773142669677737, 2.3886571334838869, 1.1943285667419434, 0.59716428337097172, 0.29858214168548586],
        numZoomLevels: 16,
        spherical_mercator: true
};
               
map = new OpenLayers.Map( $('map'), options);
layer = new OpenLayers.Layer.WMS( "VMap0","tilecache.cgi?",
{
        layers: 'osm',
        format: 'image/png',
});
map.addLayer(layer);


And here's my tilecache.cfg:

[osm]
type=Mapnik
mapfile=/home/eamorr/maps/mapnik/osm.xml
spherical_mercator=true
tms_type=google
metatile=yes
bbox=-10.93, 51.26, -5.21, 55.56
resolutions=156543.03390000001, 78271.516950000005, 39135.758475000002, 19567.879237500001,9783.9396187500006, 4891.9698093750003, 2445.9849046875001, 1222.9924523437501,611.49622617187504, 305.74811308593752, 152.87405654296876, 76.43702827148438, 38.21851413574219, 19.109257067871095, 9.5546285339355475, 4.7773142669677737, 2.3886571334838869, 1.1943285667419434, 0.59716428337097172, 0.29858214168548586




The map shows up, but zoomed in very close. On zooming out, I can eventually see 'Ireland' showing up on the map, but I can't move the map around and it seems to be stuck in the same position. I feel I'm very close to getting this map server working, it's just I'm completely stumped.

And help is much appreciated.

Thanks,



Eamorr wrote:
Greetings,

I've installed PostGreSQL and PostGIS and sucessfully loaded Ireland (ireland.osm) into the database.

I've tried doing the following:

source set-mapnik-env
./customize-mapnik-map > $MAPNIK_MAP_FILE
./generate_tiles.py

(I've edited set-mapnik-env and generate_tiles as appropriate)

The problem is, when I run 'generate_tiles.py' - nothing happens! No error messages, nothing, it just quits after a split-second.

I'm completely stumped and have no idea what to do now.

Could anyone give me any suggestions?

Many thanks,

 « Return to Thread: generate_tiles.py problem