[Tilecache] ImageLayer and ArcXML errors in trunk - was Caching a raster saved on the local disk

Simone Gadenz simone.gadenz at jrc.it
Wed May 7 08:37:46 EDT 2008


Hi all,

I managed to have the local image tiled.

This is the working configuration for me: 

[etland]
type=ImageLayer
filebounds=0,0,7924,7781
bbox = 0,0,7924,7781
file=C:/MapData/TestLargeRaster/prova.jpg

I received the warning message: 

C:\Python25\lib\site-packages\PIL\Image.py:1702: DeprecationWarning: integer
arg
ument expected, got float
  return Image()._new(core.new(mode, size))

but tiling worked.

I was using the geographic extent instead of using the pixel image size.

Still have problems with the ArcXML.

Simone



-----Original Message-----
From: tilecache-bounces at openlayers.org
[mailto:tilecache-bounces at openlayers.org] On Behalf Of Simone Gadenz
Sent: martedì 6 maggio 2008 17.24
To: 'Fredrik Lundh'
Cc: tilecache at openlayers.org
Subject: Re: [Tilecache] ImageLayer and ArcXML errors in trunk - was Caching
a raster saved on the local disk

256 x 256



-----Original Message-----
From: fredrik.lundh at gmail.com [mailto:fredrik.lundh at gmail.com] On Behalf Of
Fredrik Lundh
Sent: martedì 6 maggio 2008 16.17
To: Simone Gadenz
Cc: tilecache at openlayers.org
Subject: Re: [Tilecache] ImageLayer and ArcXML errors in trunk - was Caching
a raster saved on the local disk

>     return self.renderTile(tile)
>   File "C:\Inetpub\wwwroot\ts\TileCache\TileCache\Layers\Image.py", line
51,
>  in
>  renderTile
>     sub = self.image.transform(crop_size, PILImage.EXTENT, (min_x, min_y,
>  max_x,
>   max_y))
>   File "C:\Python25\lib\site-packages\PIL\Image.py", line 1570, in
transform
>     im = new(self.mode, size, None)
>   File "C:\Python25\lib\site-packages\PIL\Image.py", line 1702, in new
>     return Image()._new(core.new(mode, size))
>  MemoryError

this means that the process doesn't have enough memory to hold the tile.

what tile size are you using?

</F>

_______________________________________________
Tilecache mailing list
Tilecache at openlayers.org
http://openlayers.org/mailman/listinfo/tilecache




More information about the Tilecache mailing list