[Tilecache] problem with transparency of cached tiles
Bart van den Eijnden (OSGIS)
bartvde at osgis.nl
Mon Jul 30 09:35:39 EDT 2007
I believe you need to add transparent=true to your url:
url=http://10.48.1.76:8080/geoserver/wms?transparent=true&
Best regards,
Bart
--
Bart van den Eijnden
OSGIS, Open Source GIS
http://www.osgis.nl
--------- Oorspronkelijk bericht --------
Van: David Herbert <darb1 at bas.ac.uk>
Naar: tilecache at openlayers.org <tilecache at openlayers.org>
Onderwerp: [Tilecache] problem with transparency of cached tiles
Datum: 30/07/07 11:22
> Hello,
>
> I am having a few problems getting transparent PNG images to be output
> when using Tilecache 1.9rc3. For example, I have a topography layer
> defined thus in tilecache.cfg:
>
> [Topography]
> type=WMSLayer
> url=http://10.48.1.76:8080/geoserver/wms
> layers=sggis:contour_poly
> extension=png
> bbox=-82000,7800,80000,116000
> maxResolution=200.370370
> srs=EPSG:2007056
>
> This results in a URL like e.g:
>
>
http://10.48.1.76/tilecache/tilecache.cgi?LAYERS=Topography&STYLES=sggis_contour&FORMAT=image%2Fpng&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A2007056&BBOX=20589.62944%2C7800%2C71884.44416%2C59094.81472&WIDTH=256&HEIGHT=256
>
> which appears to be calling the backend Geoserver WMS with
> TRANSPARENT=true. However, the resulting image I get is NOT
> transparent. Calling the backend Geoserver directly thus:
>
>
http://10.48.1.76:8080/geoserver/wms/GetMap/?LAYERS=sggis%3Acontour_poly&STYLES=sggis_contour&FORMAT=image%2Fpng&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A2007056&BBOX=20589.62944%2C7800%2C71884.44416%2C59094.81472&WIDTH=256&HEIGHT=256
>
> results in a transparent PNG as expected. Is this a bug, or have I
> missed a vital parameter in tilecache.cfg?
>
> Thanks for any help,
>
> David Herbert
> British Antarctic Survey.
>
>
> --
> This message (and any attachments) is for the recipient only. NERC is
subject
> to the Freedom of Information Act 2000 and the contents of this email and
any
> reply you make may be disclosed by NERC unless it is exempt from release
under
> the Act. Any material supplied to NERC may be stored in an electronic
> records management system.
>
> _______________________________________________
> Tilecache mailing list
> Tilecache at openlayers.org
> http://openlayers.org/mailman/listinfo/tilecache
>
>
More information about the Tilecache
mailing list