Ok,
I've converted my lat/lons to spherical mercator coordinates using the functions here:
http://trac.openlayers.org/browser/trunk/openlayers/lib/OpenLayers/Layer/SphericalMercator.js#L80In the tilecache.cfg file,
bbox=-10.93, 51.26, -5.21, 55.56
becomes
bbox=-1216722.0342011,6667414.2157046,-579974.54695222,7471318.1244976
I also changed the javascript.
Now I keep getting all these error messages associated with each tile image:
An error occurred: Current x value -903635.966401 is too far from tile corner x -900122.445725
An error occurred: Current x value -981907.483351 is too far from tile corner x -978393.962675
An error occurred: Current x value -864500.207926 is too far from tile corner x -860986.687250
etc.
It seems to me there's some sort of rounding error going on. Can't for the life of me figure out what's going on here.
Anyone have any tips?
Thanks in advance,
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,