I published a geotiff which is 16 bit, but I get a 8 bit png by GetMap request.
Why? Or where should I set?
This transmission is intended for the named addressee(s) only and may contain confidential, sensitive or personal information and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.
···
Hi,
You can change the putput format using “format=”. See: http://docs.geoserver.org/stable/en/user/services/wms/outputformats.html for a list of formats including non-8bit PNG’s.
Cheers,
Jonathan
On 9 June 2014 08:38, fanxing926 <fanxing926@anonymised.com> wrote:
I published a geotiff which is 16 bit, but I get a 8 bit png by GetMap request.
Why? Or where should I set?
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://www.hpccsystems.com
Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Hi,
Please keep this on-list so others may try and help too.
Some testing shows that for me at least, single band rasters are generally returned as 8bit affairs. 3band rasters are returned as 24bits.
Beyond that I don’t know what’s going on, maybe someone else does.
Cheers,
Jonathan
This transmission is intended for the named addressee(s) only and may contain confidential, sensitive or personal information and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.
···
On 10 June 2014 05:03, fanxing926 <fanxing926@anonymised.com> wrote:
I set the "format" "image/png", but get the result is 8bit png
At 2014-06-09 08:22:58, “Jonathan Moules” <jonathanmoules@anonymised.com> wrote:
This transmission is intended for the named addressee(s) only and may contain confidential, sensitive or personal information and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.
Hi,
You can change the putput format using “format=”. See: http://docs.geoserver.org/stable/en/user/services/wms/outputformats.html for a list of formats including non-8bit PNG’s.
Cheers,
Jonathan
On 9 June 2014 08:38, fanxing926 <fanxing926@anonymised.com> wrote:
I published a geotiff which is 16 bit, but I get a 8 bit png by GetMap request.
Why? Or where should I set?
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://www.hpccsystems.com
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
On Mon, Jun 9, 2014 at 9:38 AM, fanxing926 <fanxing926@anonymised.com> wrote:
I published a geotiff which is 16 bit, but I get a 8 bit png by GetMap
request.
Why? Or where should I set?
Hmm... PNG officially supports 16 bit gray images, but not sure if GeoServer
can output them.
Is your TIFF a 16 bit gray one?
If so, you might want to open a request for improvement on
http://jira.codehaus.org/browse/GEOS
Cheers
Andrea
--
GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 for more information.
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------
Ciao,
when you make a getmap request asking for a PNG, GeoServer tries to
perform a rendering of the input data.
A 16 bits geotiff (grayscale) is turned into an 8 bit PNG by applying
a rescale operation on the dynamic.
If you want to get access to the original data you need to use the WCS
protocol, if you insist with WMS you'll always get a rendered version
of your data.
You might want to experiment with the rastesymbolizer support to turn
number in to colors. See
http://docs.geoserver.org/latest/en/user/styling/sld-reference/rastersymbolizer.html
Regards,
Simone Giannecchini
GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 for more information.
Ing. Simone Giannecchini
@simogeo
Founder/Director
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 333 8128928
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------
On Mon, Jun 9, 2014 at 9:38 AM, fanxing926 <fanxing926@anonymised.com> wrote:
I published a geotiff which is 16 bit, but I get a 8 bit png by GetMap
request.
Why? Or where should I set?------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://www.hpccsystems.com
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users