Thanks for you suggestion.
I tried to translate the geotiff to Byte and then publish that:
http://imgur.com/a/XLPUt
However the result is still the same.
On Thu, Mar 2, 2017 at 1:14 AM, Andrea Aime <[email protected]>
wrote:
> Those are 16 bit tiffs, they cannot be easily used as RGB sources... I'd
> suggest you to reduce them to 8 bits using gdal_translate before publishing
> (see the -scale option).
> Then you should be able to use inputtransparentcolor.
>
> Cheers
> Andrea
>
> On Wed, Mar 1, 2017 at 4:04 AM, maven apache <[email protected]>
> wrote:
>
>> 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.stackexcha
>> nge.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
>>
>>
>
>
> --
> ==
> GeoServer Professional Services from the experts! Visit
> http://goo.gl/it488V for more information.
> ==
>
> Ing. Andrea Aime
> @geowolf
> Technical Lead
>
> GeoSolutions S.A.S.
> Via di Montramito 3/A
> 55054 Massarosa (LU)
> phone: +39 0584 962313 <+39%200584%20962313>
> fax: +39 0584 1660272 <+39%200584%20166%200272>
> mob: +39 339 8844549 <+39%20339%20884%204549>
>
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
>
> *AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*
>
> Le informazioni contenute in questo messaggio di posta elettronica e/o
> nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
> loro utilizzo è consentito esclusivamente al destinatario del messaggio,
> per le finalità indicate nel messaggio stesso. Qualora riceviate questo
> messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
> darcene notizia via e-mail e di procedere alla distruzione del messaggio
> stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
> divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
> utilizzarlo per finalità diverse, costituisce comportamento contrario ai
> principi dettati dal D.Lgs. 196/2003.
>
>
>
> The information in this message and/or attachments, is intended solely for
> the attention and use of the named addressee(s) and may be confidential or
> proprietary in nature or covered by the provisions of privacy act
> (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
> Code).Any use not in accord with its purpose, any disclosure, reproduction,
> copying, distribution, or either dissemination, either whole or partial, is
> strictly forbidden except previous formal approval of the named
> addressee(s). If you are not the intended recipient, please contact
> immediately the sender by telephone, fax or e-mail and delete the
> information in this message that has been received in error. The sender
> does not give any warranty or accept liability as the content, accuracy or
> completeness of sent messages and accepts no responsibility for changes
> made after they were sent or for other risks which arise as a result of
> e-mail transmission, viruses, etc.
>
> -------------------------------------------------------
>
------------------------------------------------------------------------------
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