[mapserver-users] geotiff 48bit with mapserver 7 wms

David david at impstyle.com
Thu Apr 13 08:03:34 PDT 2017


Hi Steve,

thank you very much for your help. The Mapserver is serving the tiles 
with the correct RGB values now. The problem is, that it is serving 8 
bit per band and not 16 bit.
I need the 16bit because i want to use the wms as a base layer for some 
further processing with qgis or another gis client. So no problem 
regarding browsers for me.

I will take a look and change the data type to float32 for the tiff 
files. At least this is an supported OUTPUTFORMAT for mapserver.
Any suggestions on this matter are highly appreciated.

Cheers,
David

------ Original Message ------
From: mapserver-users-request at lists.osgeo.org
To: mapserver-users at lists.osgeo.org
Sent: 4/12/2017 4:00:02 PM
Subject: mapserver-users Digest, Vol 111, Issue 5

>Send mapserver-users mailing list submissions to
>  mapserver-users at lists.osgeo.org
>
>To subscribe or unsubscribe via the World Wide Web, visit
>  https://lists.osgeo.org/mailman/listinfo/mapserver-users
>or, via email, send a message with subject or body 'help' to
>  mapserver-users-request at lists.osgeo.org
>
>You can reach the person managing the list at
>  mapserver-users-owner at lists.osgeo.org
>
>When replying, please edit your Subject line so it is more specific
>than "Re: Contents of mapserver-users digest..."
>
>
>Today's Topics:
>
>    1. geotiff 48bit with mapserver 7 wms (David)
>    2. Re: geotiff 48bit with mapserver 7 wms (Stephen Woodbridge)
>
>
>----------------------------------------------------------------------
>
>Message: 1
>Date: Wed, 12 Apr 2017 00:22:12 +0000
>From: David <david at impstyle.com>
>To: mapserver-users at lists.osgeo.org
>Subject: [mapserver-users] geotiff 48bit with mapserver 7 wms
>Message-ID: <em5ce0e1b3-00b1-463e-8ad8-90100518d131 at laptop-dfriedrich>
>Content-Type: text/plain; charset="utf-8"; Format="flowed"
>
>Hi there,
>
>iam having some trouble to serve 48 bit geotiff images with a mapserver
>7 wms. I created to layers for speed purposes with scale limiters. The
>lowres layer is served well and looks good, it is 24bit geotiff
>data(8bit per channel). But if the layer changes to the highres, 48bit
>geotiff data(16bit per channel), the data is shown wrong.
>I searched for some hints regarding a similar issue but could not find
>something.
>
>This is a screenshot of the loaded highres layer. It does not matter if
>i load a bbox inside the browser, qgis or another wms client. The
>highres data looks always the same.
>
>image loaded from highres layer:
>http://imgur.com/a/B65cp
>
>the mapfile:
>https://pastebin.com/4G2DZErZ
>
>the gdalinfo for one 16bit 3-band tile:
>https://pastebin.com/kfS0BjmE
>
>Best Regards,
>David
>-------------- next part --------------
>An HTML attachment was scrubbed...
>URL: 
><http://lists.osgeo.org/pipermail/mapserver-users/attachments/20170412/2cded6b6/attachment-0001.html>
>
>------------------------------
>
>Message: 2
>Date: Tue, 11 Apr 2017 21:25:01 -0400
>From: Stephen Woodbridge <woodbri at swoodbridge.com>
>To: mapserver-users at lists.osgeo.org
>Subject: Re: [mapserver-users] geotiff 48bit with mapserver 7 wms
>Message-ID: <a7bc734d-f7b9-32f3-5ce0-6a71aab4ead4 at swoodbridge.com>
>Content-Type: text/plain; charset=utf-8; format=flowed
>
>Read this:
>http://mapserver.org/input/raster.html
>
>You need to add to your highres layer
>
>PROCESSING "SCALE=AUTO"
>
>Or per band scaling. I done thing most browsers know what to do with 16
>bits per channel.
>
>-Steve W
>
>On 4/11/2017 8:22 PM, David wrote:
>>  Hi there,
>>
>>  iam having some trouble to serve 48 bit geotiff images with a 
>>mapserver
>>  7 wms. I created to layers for speed purposes with scale limiters. 
>>The
>>  lowres layer is served well and looks good, it is 24bit geotiff
>>  data(8bit per channel). But if the layer changes to the highres, 
>>48bit
>>  geotiff data(16bit per channel), the data is shown wrong.
>>  I searched for some hints regarding a similar issue but could not 
>>find
>>  something.
>>
>>  This is a screenshot of the loaded highres layer. It does not matter 
>>if
>>  i load a bbox inside the browser, qgis or another wms client. The
>>  highres data looks always the same.
>>
>>  image loaded from highres layer:
>>  http://imgur.com/a/B65cp
>>
>>  the mapfile:
>>  https://pastebin.com/4G2DZErZ
>>
>>  the gdalinfo for one 16bit 3-band tile:
>>  https://pastebin.com/kfS0BjmE
>>
>>  Best Regards,
>>  David
>>
>>
>>  _______________________________________________
>>  mapserver-users mailing list
>>  mapserver-users at lists.osgeo.org
>>  https://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>
>
>---
>This email has been checked for viruses by Avast antivirus software.
>https://www.avast.com/antivirus
>
>
>
>------------------------------
>
>Subject: Digest Footer
>
>_______________________________________________
>mapserver-users mailing list
>mapserver-users at lists.osgeo.org
>https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>------------------------------
>
>End of mapserver-users Digest, Vol 111, Issue 5
>***********************************************


More information about the mapserver-users mailing list