<div>I have the following entry in TileCache</div>
<div><font size="2"></font> </div>
<blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
<div><font size="2">[MyImage]<br>type=ImageLayer<br>file=C:\\Inetpub\\wwwroot\\tilecache\\tilecache-1.9\\92B05.png<br>filebounds=-123.974436,48.487998,-123.700692,48.265073</font></div>
<div><font size="2"></font> </div></blockquote>
<div><font size="2">Then in openlayers I have the following:</font></div>
<div><font size="2"></font> </div>
<blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
<div><font size="2">map = new OpenLayers.Map('map');<br>baseLayer = new OpenLayers.Layer.WMS( "VMap0", <br> "tilecache.cgi?", {layers: '2', format: 'image/gif' } );<br> baseLayer.addOptions
({ isBaseLayer : true });<br>map.addLayer(baseLayer);<br> <br>var bounds = new OpenLayers.Bounds(-123.974436,48.487998,-123.700692,48.265073); <br>layer = new OpenLayers.Layer.WMS( "MyImage", <br> "tilecache.cgi
?", <br> {layers: 'MyImage', <br> format: 'image/png',<br> transparent: 'TRUE'},<br> {maxExtent: bounds,<br> visibility: true}); <br>map.addLayer(layer);<br>map.zoomToExtent(bounds);</font>
</div>
<div> </div></blockquote>
<div dir="ltr">The base layer shows up just like it should. The imagelayer does not show up and is full of pink. It will show up if I take the filebounds entry out of the configuration which tells me the path to the image is good but then it does not represent the area it should it represents the default of "-180,-90,180,90". If I take the URL out of the rendered page the error returned is
<h1>CGI Error</h1>The specified CGI application misbehaved by not returning a complete set of HTTP headers.</div>
<div dir="ltr"> </div>
<div dir="ltr">From what I can tell the url is requesting lat/lon coordinates that are out of bounds for this image. Again I think the maxextent should prevent the layer from requesting anything from the service. </div>
<div dir="ltr"> </div>
<div dir="ltr">What am I doing wrong?</div>
<div dir="ltr"> </div>
<div dir="ltr">Thanks,</div>
<div dir="ltr">Linda Rawson</div>
<blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
<div><font size="2"> </font></div></blockquote>