metaTile doesn't work with tiles of 512 pixels

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

metaTile doesn't work with tiles of 512 pixels

Ehud Shabtai
Hi,

TileCache doesn't seem to work with metaTile=true when I set the tile
size to 512,512.

Here's what I tried:

[basic]
type=WMSLayer
url=http://labs.metacarta.com/wms/vmap0
extension=png
size=512,512
metaTile=true


If I set metaTile to false, it works fine.
metaTile works find for tiles of 256,256.

I'm using the latest OpenLayers code with the following extent and resolutions:

                        maxResolution: .010986328125,
                        maxExtent: new
OpenLayers.Bounds(33.75,28.125,36.5625,33.75),

Any ideas?

Thanks,

--
Ehud Shabtai
http://www.freemap.co.il/map/
_______________________________________________
Tilecache mailing list
[hidden email]
http://openlayers.org/mailman/listinfo/tilecache
Reply | Threaded
Open this post in threaded view
|

Re: metaTile doesn't work with tiles of 512 pixels

Christopher Schmidt-2
On Thu, Apr 19, 2007 at 12:57:34AM +0300, Ehud Shabtai wrote:

> Hi,
>
> TileCache doesn't seem to work with metaTile=true when I set the tile
> size to 512,512.
>
> Here's what I tried:
>
> [basic]
> type=WMSLayer
> url=http://labs.metacarta.com/wms/vmap0
> extension=png
> size=512,512
> metaTile=true
>
>
> If I set metaTile to false, it works fine.
> metaTile works find for tiles of 256,256.
>
> I'm using the latest OpenLayers code with the following extent and resolutions:
>
>                         maxResolution: .010986328125,
>                         maxExtent: new
> OpenLayers.Bounds(33.75,28.125,36.5625,33.75),

512 * 5 + 10 * 2 -> 2060

MapServer by default won't render an image bigger than 2048 x 2048.

If you bump the metaSize down to 4,4, it should work... I think :)

Regards,
--
Christopher Schmidt
MetaCarta
_______________________________________________
Tilecache mailing list
[hidden email]
http://openlayers.org/mailman/listinfo/tilecache
Reply | Threaded
Open this post in threaded view
|

Re: metaTile doesn't work with tiles of 512 pixels

Ehud Shabtai
On 4/19/07, Christopher Schmidt <[hidden email]> wrote:

> 512 * 5 + 10 * 2 -> 2060
>
> MapServer by default won't render an image bigger than 2048 x 2048.

That explains the MapServer problem, however my real issue is with a
Mapnik layer. It did seem to generate tiles but placed them with some
offset regarding to their real geographic location.
I'm not sure what's the size limit of a Mapnik image, but lowering the
metaSize to 3,3 makes things better.

Thanks for the help,

--
Ehud Shabtai
http://www.freemap.co.il/map/
_______________________________________________
Tilecache mailing list
[hidden email]
http://openlayers.org/mailman/listinfo/tilecache