Hi Jeroen, I'm not 100% sure that the underlying pure java imageio-ext TIFF reader (the core lib providing TIFFs I/O in GeoServer) is supporting half precision float number (so what GDAL reports as a Float32 datatype with only 16 bits being used). ... Ok. After having investigated a bit on the topic I think that the 16 bits Float has been defined to support the HALF data type used by OpenEXR file format, as TIFF Technical Note 3 so it's not part of the official TIFF 6.0 specification.
Taking a deeper look at the current TIFF Reader java code I see that the parts parsing the SampleFormat TAG (ID 339) and BitsPerSample (ID 258) are not supporting this specific new use case. So I would say that the current version of GeoServer is not supporting this file format. You may want to open a JIRA in GeoServer (and a ticket in imageio-ext <https://github.com/geosolutions-it/imageio-ext> project, too) to report that. Code contributions or funding to get it implemented would be more than welcomed, though. Hope this helps. Regards, Daniele On Tue, Mar 10, 2020 at 3:11 PM Jeroen van Gent <[email protected]> wrote: > Dear group, > > I have generate some 'half-precision' floating point GeoTiffs that I want > to server in GeoServer (v2.15.2). I also apply an SLD color style. > > However, when requesting the GeoTiff layer wthrough WMS I get wrong colors > (tiles take the color of the maximum value in the color range). If a create > the files as 32 bit, all goes fine. > > Can GeoServer handle 16 bit float GeoTiffs? > > Here is a gdalinfo example: > > Driver: GTiff/GeoTIFF > Files: 5p_tropomi_so2vcd_epsg3857_20200304_res0.01.tiff > Size is 36084, 36124 > Coordinate System is: > PROJCS["WGS 84 / Pseudo-Mercator", > GEOGCS["WGS 84", > DATUM["WGS_1984", > SPHEROID["WGS 84",6378137,298.257223563, > AUTHORITY["EPSG","7030"]], > AUTHORITY["EPSG","6326"]], > PRIMEM["Greenwich",0, > AUTHORITY["EPSG","8901"]], > UNIT["degree",0.0174532925199433, > AUTHORITY["EPSG","9122"]], > AUTHORITY["EPSG","4326"]], > PROJECTION["Mercator_1SP"], > PARAMETER["central_meridian",0], > PARAMETER["scale_factor",1], > PARAMETER["false_easting",0], > PARAMETER["false_northing",0], > UNIT["metre",1, > AUTHORITY["EPSG","9001"]], > AXIS["X",EAST], > AXIS["Y",NORTH], > EXTENSION["PROJ4","+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 > +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs"], > AUTHORITY["EPSG","3857"]] > Origin = (-20026376.390000000596046,20048966.100000001490116) > Pixel Size = (1110.000000000000000,-1110.000000000000000) > Metadata: > AREA_OR_POINT=Area > Image Structure Metadata: > COMPRESSION=DEFLATE > INTERLEAVE=BAND > Corner Coordinates: > Upper Left (-20026376.390,20048966.100) (179d54' 0.00"W, 85d 3'36.00"N) > Lower Left (-20026376.390,-20048673.900) (179d54' 0.00"W, 85d 3'35.19"S) > Upper Right (20026863.610,20048966.100) (179d54'15.76"E, 85d 3'36.00"N) > Lower Right (20026863.610,-20048673.900) (179d54'15.76"E, 85d 3'35.19"S) > Center ( 243.610, 146.100) ( 0d 0' 7.88"E, 0d 0' 4.72"N) > Band 1 Block=256x256 Type=Float32, ColorInterp=Gray > NoData Value=-999 > Overviews: 18042x18062, 9021x9031, 4511x4516, 2256x2258, 1128x1129, > 564x565, 282x283 > Image Structure Metadata: > NBITS=16 > > > Thank you. > > > > > > _______________________________________________ > Geoserver-users mailing list > > Please make sure you read the following two resources before posting to > this list: > - Earning your support instead of buying it, but Ian Turton: > http://www.ianturton.com/talks/foss4g.html#/ > - The GeoServer user list posting guidelines: > http://geoserver.org/comm/userlist-guidelines.html > > If you want to request a feature or an improvement, also see this: > https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer > > > [email protected] > https://lists.sourceforge.net/lists/listinfo/geoserver-users > -- Regards, Daniele Romagnoli == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Daniele Romagnoli Senior Software Engineer GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 1660272 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.
_______________________________________________ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
