[Tilecache] tilecache with different epsg

Jerry O'Sullivan jeremiahosullivan at gmail.com
Thu Jun 14 08:35:20 EDT 2007


Hi Chris,

That worked great...Thanks very much

Jerry

On 14/06/07, Christopher Schmidt <crschmidt at metacarta.com> wrote:
>
> On Thu, Jun 14, 2007 at 10:49:44AM +0100, Jerry O'Sullivan wrote:
> > Hi,
> >
> > I have downloaded tilecache and got it working through IIS with the
> sample
> > index.html caching data from metacarta.
> >
> > I am trying to use my own geoserver data and I am only getting pink
> tiles.
> > What could the problem be? I can get the tiles fine through regular OL
> but
> > not via Tilecache?
>
> Neither OpenLayers nor TileCache is configured correctly. OpenLayers is
> missing any kind of 'maxResolution' or other resolution-setting option,
> and TileCache is missing maxresolution and bbox.
>
> "The most important thing to do is to ensure that the OpenLayers Layer
> has the same resolutions and bounding box as your TileCache layer. You
> can define the resolutions in OpenLayers via the 'resolutions' option or
> the 'maxResolution' option on the layer. The maxExtent should be defined
> to match the bbox parameter of the TileCache layer."  --
> http://tilecache.org/readme.html
>
> -- Chris
>
> > Tilecache.cfg extract
> > [Ireland]
> > type=WMSLayer
> > url=http://127.0.0.1:8080/geoserver/wms?
> > srs=EPSG:29903
> > layers=topp:Counties_region
> >
> > OpenLayers Code
> > map = new OpenLayers.Map( 'map',{maxExtent: new OpenLayers.Bounds(0, 0,
> > 450000, 450000),units:'meters', projection:"EPSG:29903" } );
> > layer = new OpenLayers.Layer.WMS( "VMap0", "tilecache.cgi?", {layers:
> > 'Ireland', format: 'image/png'}, {projection:"EPSG:29903" } );
> > map.addLayer(layer);
>
> > _______________________________________________
> > Tilecache mailing list
> > Tilecache at openlayers.org
> > http://openlayers.org/mailman/listinfo/tilecache
>
>
> --
> Christopher Schmidt
> MetaCarta
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/tilecache/attachments/20070614/02d2da0a/attachment.html


More information about the Tilecache mailing list