Tilecache with OL + Sublayers (sublayers) = Bad transparency mask

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

Tilecache with OL + Sublayers (sublayers) = Bad transparency mask

Paul james
Hello all!

I have a Mapserver WMS + Openlayers application, using Geoext sublayers:
- LAYER1
   - SUBLAYER11
   - SUBLAYER12
-LAYER2
   SUBLAYER21
...


But when I try to turn on two or more layer´s sublayers, i got the error:

An error occurred: Could not combine images: Is it possible that some layers are not 8-bit transparent images?

(Error was: bad transparency mask) File "C:\inetpub\wwwroot\Openlayer\
TileCache\Service.py", line 323, in cgiHandler format, image = service.dispatchRequest( params, path_info, req_method, host ) File "C:\inetpub\wwwroot\Openlayer\TileCache\Service.py", line 234, in dispatchRequest raise Exception("Could not combine images: Is it possible that some layers are not \n8-bit transparent images? \n(Error was: %s)" % E)

Cache miss: -180.0,-90.0,0.0,90.0, Tile: x: 0, y: 0, z: 0, time: 0.828000068665 Cache miss: -180.0,-90.0,0.0,90.0, Tile: x: 0, y: 0, z: 0, time: 0.135999917984


Any idea?

Thanks



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

Re: Tilecache with OL + Sublayers (sublayers) = Bad transparency mask

Ivan Mincik
On Mon, Apr 12, 2010 at 2:16 PM, Paul james <[hidden email]> wrote:

> Hello all!
>
> I have a Mapserver WMS + Openlayers application, using Geoext sublayers:
> - LAYER1
>    - SUBLAYER11
>    - SUBLAYER12
> -LAYER2
>    SUBLAYER21
> ...
>
>
> But when I try to turn on two or more layer´s sublayers, i got the error:
>
> An error occurred: Could not combine images: Is it possible that some layers
> are not 8-bit transparent images?
>
> (Error was: bad transparency mask) File "C:\inetpub\wwwroot\Openlayer\
> TileCache\Service.py", line 323, in cgiHandler format, image =
> service.dispatchRequest( params, path_info, req_method, host ) File
> "C:\inetpub\wwwroot\Openlayer\TileCache\Service.py", line 234, in
> dispatchRequest raise Exception("Could not combine images: Is it possible
> that some layers are not \n8-bit transparent images? \n(Error was: %s)" % E)
>
> Cache miss: -180.0,-90.0,0.0,90.0, Tile: x: 0, y: 0, z: 0, time:
> 0.828000068665 Cache miss: -180.0,-90.0,0.0,90.0, Tile: x: 0, y: 0, z: 0,
> time: 0.135999917984

Can You paste Your OUTPUTFORMAT  configuration for these layers ?
_______________________________________________
Tilecache mailing list
[hidden email]
http://openlayers.org/mailman/listinfo/tilecache
Reply | Threaded
Open this post in threaded view
|

Re: Tilecache with OL + Sublayers (sublayers) = Bad transparency mask

Paul james
Hi...

OUTPUTFORMAT
        NAME aggpng24
        DRIVER AGG/PNG
        MIMETYPE "image/png"
        IMAGEMODE RGB
        EXTENSION "png"
    END

Thanks

On Mon, Apr 12, 2010 at 9:53 AM, Ivan Mincik <[hidden email]> wrote:
On Mon, Apr 12, 2010 at 2:16 PM, Paul james <[hidden email]> wrote:
> Hello all!
>
> I have a Mapserver WMS + Openlayers application, using Geoext sublayers:
> - LAYER1
>    - SUBLAYER11
>    - SUBLAYER12
> -LAYER2
>    SUBLAYER21
> ...
>
>
> But when I try to turn on two or more layer´s sublayers, i got the error:
>
> An error occurred: Could not combine images: Is it possible that some layers
> are not 8-bit transparent images?
>
> (Error was: bad transparency mask) File "C:\inetpub\wwwroot\Openlayer\
> TileCache\Service.py", line 323, in cgiHandler format, image =
> service.dispatchRequest( params, path_info, req_method, host ) File
> "C:\inetpub\wwwroot\Openlayer\TileCache\Service.py", line 234, in
> dispatchRequest raise Exception("Could not combine images: Is it possible
> that some layers are not \n8-bit transparent images? \n(Error was: %s)" % E)
>
> Cache miss: -180.0,-90.0,0.0,90.0, Tile: x: 0, y: 0, z: 0, time:
> 0.828000068665 Cache miss: -180.0,-90.0,0.0,90.0, Tile: x: 0, y: 0, z: 0,
> time: 0.135999917984

Can You paste Your OUTPUTFORMAT  configuration for these layers ?


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

Re: Tilecache with OL + Sublayers (sublayers) = Bad transparency mask

Ivan Mincik
On Mon, Apr 12, 2010 at 2:56 PM, Paul james <[hidden email]> wrote:

> Hi...
>
> OUTPUTFORMAT
>         NAME aggpng24
>         DRIVER AGG/PNG
>         MIMETYPE "image/png"
>         IMAGEMODE RGB
>         EXTENSION "png"
>     END
>

Sorry, please post also Your tilecache configuration?

But,  if You want to have transparent images You should have to change
"IMAGEMODE RGB" to "IMAGEMODE RGBA",  add TRANSPARENT TRUE on MAP
level
and also FORMATOPTION "INTERLACE=OFF" can be set for sure on
OUTPUTFORMAT as well.

In tilecache.cfg You should have  "url=http://your_url&transparent=true"
_______________________________________________
Tilecache mailing list
[hidden email]
http://openlayers.org/mailman/listinfo/tilecache
Reply | Threaded
Open this post in threaded view
|

Re: Tilecache with OL + Sublayers (sublayers) = Bad transparency mask

Paul james
Ivan,
Your suggestion worked !!
Thanks

Paul

On Mon, Apr 12, 2010 at 10:06 AM, Ivan Mincik <[hidden email]> wrote:
On Mon, Apr 12, 2010 at 2:56 PM, Paul james <[hidden email]> wrote:
> Hi...
>
> OUTPUTFORMAT
>         NAME aggpng24
>         DRIVER AGG/PNG
>         MIMETYPE "image/png"
>         IMAGEMODE RGB
>         EXTENSION "png"
>     END
>

Sorry, please post also Your tilecache configuration?

But,  if You want to have transparent images You should have to change
"IMAGEMODE RGB" to "IMAGEMODE RGBA",  add TRANSPARENT TRUE on MAP
level
and also FORMATOPTION "INTERLACE=OFF" can be set for sure on
OUTPUTFORMAT as well.

In tilecache.cfg You should have  "url=http://your_url&transparent=true"
_______________________________________________
Tilecache mailing list
[hidden email]
http://openlayers.org/mailman/listinfo/tilecache


_______________________________________________
Tilecache mailing list
[hidden email]
http://openlayers.org/mailman/listinfo/tilecache