Yes, I use the 'image/png".

See this example:http://imgur.com/a/wrgnq

Since the data source is not a regular rectangle or squre. So even it is
transparent outside the bbox of the image, the edge inside the bbox with
not data is still rendered as white.

On Wed, Mar 1, 2017 at 2:56 PM, Rahkonen Jukka (MML) <
[email protected]> wrote:

> Hi,
>
>
>
> One question: Do you use png as outputformat? Jpeg can’t be made
> transparent, at least not without tweaking. Probably you use png but you
> did not mention it.
>
>
>
> -Jukka Rahkonen-
>
>
>
> maven apache wrote:
>
> [Geoserver-users] Can not make geotiff transparent in geoserver
>
>
>
> Hi:
>
>
>
> I tried to publish a geotiff using Geoserver 2.9.0, however once get the
> result by wms, I found the edge of the image is white rather than
> transparent.
>
>
>
> This is the original geotiff info: http://imgur.com/a/RH5vR
>
>
>
> Once preview that in geoserver by openlayers, the served image looked like
> this:  http://imgur.com/a/TGdLP Note the white color in the image, that
> should be transparent.
>
>
>
> After googled I found a solution:http://gis.stackexchange.com/questions/
> 41472/setting-transparency-in-an-sld-file-for-a-4-channel-geotiff
>
>
>
> Then I tried the following steps:
>
>
>
> 1 gdal_translate -a_nodata 0 t1.tif t2.tif
>
>
>
> And I got the new geotiff info: http://imgur.com/a/94C4z
>
>
>
> 2 Set the to '000000' when publish the tiff: http://imgur.com/a/z4Bjy
>
>
>
>
>
> However then I preview the new created tiff, I got the error for wms
> request:
>
>
>
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>...
> <ServiceException>
>
>       Error rendering coverage on the fast path
>
> java.lang.IllegalStateException: Unsupported data type.
>
> Unsupported data type.
>
> </ServiceException></ServiceExceptionReport>
>
>
>
>
>
> What's going on? Any way to fix that?
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to