[Tilecache] Ok, past resolution issues (I think) but now a new weird error...

Steve Lime Steve.Lime at dnr.state.mn.us
Mon Nov 5 11:49:16 EST 2007


Ok folks, getting closer I hope. I just switched from using a WMS layer to a TileCache layer in hopes
of getting around not having any of my MapServer layers configured for WMS.

The cache def looks like:

[compass]
metaTile=true
type=MapServerLayer
# pick any layer, doesn't matter, they all are "STATUS DEFAULT"
layers=bdry_statepy2
mapfile=/usr/local/www/docs_maps/compass/compass.map
levels=10
srs=EPSG:29615
bbox=-85116.713669,4866147.799283,998616.034449,5408014.173342
maxResolution=2116.665524

and in openlayers:

       var map, layer;

        function init(){
            map = new OpenLayers.Map( $('map'), {maxExtent: new OpenLayers.Bounds(-85116.713669,4866147.799283,998616.034449,5408014.173342),
                                                 maxResolution: 2116.665524, units: 'm', projection:'EPSG:26915'} );
            layer = new OpenLayers.Layer.TileCache( "compass-tilecache", "http://maps.dnr.state.mn.us/tilecache/tilecache.cgi", "compass");
            map.addLayer(layer);
            if (!map.getCenter()) map.zoomToMaxExtent();
        }

but now any tiles result in this error:

  An error occurred: The requested layer (00) does not exist. Available layers are: 
 * compass

No clue what that's telling me. Ideas?

Steve




More information about the Tilecache mailing list