[Tilecache] tilecache-mapnik
Don Martin
donm at alaska.net
Sat Aug 16 21:46:27 EDT 2008
I’ve got a windows 2003 IIS6 box which appears to be setup adequately to
support tilecache.
Mapnik renders images from OSM data in a postgis/postgressql database
independently (ie: render_image.py)
If I run index.html with:
map = new OpenLayers.Map( $('map'), {'maxResolution': 360/512});
layer = new OpenLayers.Layer.WMS( "VMap0",
"tilecache.py?", {layers: 'basic', format: 'image/png' } );
map.addLayer(layer);
map.addControl(new OpenLayers.Control.Permalink());
if (!map.getCenter()) map.zoomToMaxExtent();
[basic]
type=WMSLayer
url=http://labs.metacarta.com/wms/vmap0
extension=png
the image is rendered and saved to the cache folder OK.
If it attempt a mapnik rendering however:
map = new OpenLayers.Map( $('map'), {
maxResolution: 156543.0339/4,
maxExtent: new
OpenLayers.Bounds(-16697000,8610000,-16667000,8640000),
numZoomLevels: 18,
projection: 'EPSG:900913',
'units':'m'});
var layerMapnik = new OpenLayers.Layer.WMS( "dispatch",
"tilecache.py?", {layers: 'osm-merc', format: 'image/png' } );
map.addLayer(layerMapnik);
map.zoomToMaxExtent();
[osm-merc]
type=MapnikLayer
mapfile=C:\mapnik\osm.xml
bbox=-16697000,8610000,-16667000,8640000
resolutions=156543.033900000,78271.516950000,39135.758475000,19567.879237500,9783.939618750,4891.969809375,2445.984904688,1222.992452344,611.496226172,305.748113086,152.874056543,76.437028271,38.218514136,19.109257068,9.554628534,4.777314267,2.388657133,1.194328567,0.59716428337097171575,0.298582142
srs=EPSG:900913
metaTile=yes
metaBuffer=40
the folders are created in the cache but no image is rendered or written to
the cache folders.
Would appreciate some feedback on where I’m going astray.
--
View this message in context: http://www.nabble.com/tilecache-mapnik-tp19016808p19016808.html
Sent from the TileCache mailing list archive at Nabble.com.
More information about the Tilecache
mailing list