Change your tilecache.cfg entry so that the srs is Google Spherical mercator, srs=EPSG:900913, and change your bbox entry to be in 900913 coords, or remove it altogether.<br><br>Roger<br>--<br><br><div class="gmail_quote">
On Wed, Dec 17, 2008 at 7:40 AM, mmmmmm <span dir="ltr"><<a href="mailto:mguraliuc1978@yahoo.com">mguraliuc1978@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Hi Ivan,<br>
<br>
I am facing a similar problem with the one you mentioned you solved.<br>
I have Geoserver serving a shapefile in EPSG:4326.<br>
I am trying to overlay this data on top of google maps.<br>
<br>
I am using OpenLayers and as long as I get the data directly from Geoserver<br>
(with the reproject: true) if is overlayed correctly.<br>
<br>
However when I am trying to get it via TileCache and add it as a new layer<br>
on top of goole layer, only google gets displayed. My data does not.<br>
<br>
If I am requesting only my data from TileCache I can see it. Only when I am<br>
trying to overlay it on top of google it does not. I am sure it is because<br>
google is EPSG:900913 and the data is EPSG:4326, but I am missing the<br>
configuration needed.<br>
<br>
Please post a complete configuration of this scenario.<br>
<br>
My configuration is:<br>
<br>
TileCache<br>
[basic]<br>
type=WMS<br>
layers=topp:line<br>
url=<a href="http://10.10.10.241:8081/geoserver/wms?transparent=trueextension=gifsrs=EPSG:4326bbox=-180.0,-90.0,180.0,90.0" target="_blank">http://10.10.10.241:8081/geoserver/wms?transparent=true<br>
extension=gif<br>
srs=EPSG:4326<br>
bbox=-180.0,-90.0,180.0,90.0</a><br>
<br>
OpenLayers - javascript<br>
var options =<br>
{<br>
projection: new OpenLayers.Projection("EPSG:900913"),<br>
displayProjection: new OpenLayers.Projection("EPSG:4326"),<br>
units: "m",<br>
numZoomLevels: 18,<br>
maxResolution: 156543.0339,<br>
maxExtent: new OpenLayers.Bounds(-20037508,<br>
-20037508,20037508, 20037508.34)<br>
};<br>
<br>
map = new OpenLayers.Map( $('map'), options);<br>
var gmapLayer = new OpenLayers.Layer.Google("GMaps2",{type:<br>
G_HYBRID_MAP,'sphericalMercator': true});<br>
map.addLayer(gmapLayer);<br>
<br>
// THIS DOES NOT SHOW<br>
layer = new OpenLayers.Layer.WMS( "VMap0",<br>
"<a href="http://10.10.10.241/tilecache-2.04/tilecache.py" target="_blank">http://10.10.10.241/tilecache-2.04/tilecache.py</a>?",<br>
{layers: 'basic',reproject: false},<br>
{format: 'image/gif', numZoomLevels: 18} );<br>
<br>
map.addLayer(layer);<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://n2.nabble.com/google-maps-%28900913%29-and-tilecache-with-openlayers-as-the-client-tp1088699p1668416.html" target="_blank">http://n2.nabble.com/google-maps-%28900913%29-and-tilecache-with-openlayers-as-the-client-tp1088699p1668416.html</a><br>
Sent from the TileCache mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
Tilecache mailing list<br>
<a href="mailto:Tilecache@openlayers.org">Tilecache@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/tilecache" target="_blank">http://openlayers.org/mailman/listinfo/tilecache</a><br>
</font></blockquote></div><br>