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

2017-04-25 Thread David

Hi Benjamin,

thank you for your tip. QGIS renders the tiles if a set min/max and 
"stretch to min/max".

I did the test with a smaller data set (200 tiles 130MB each).

My problem now is, with all tiles (~18500) the connection times out, 
even with small bounding boxes like:


http://192.168.3.231/?MAP=/maps/MAP/eowcs2.map&=WCS=1.0.0=GetCoverage=GEOTIFF=test=646021,5524001,648018,5525998=EPSG:32718_CRS=EPSG:32718=4000=4000

(QGIS always uses the full extent as bbox for the query and times out. 
Even zoomed in. *sick*)


The same data set as WMS, with MINSCALEDENOM MAXSCALEDENOM runs very 
smooth.


I did not find very much help regarding performance improvements and 
mapserver. For WMS you find alot.


Cheers,
David

-- Original Message --
From: "Schepers, Benjamin" <schep...@rvr-online.de>
To: "'mapserver-users@lists.osgeo.org'" 
<mapserver-users@lists.osgeo.org>

Sent: 4/19/2017 10:31:36 AM
Subject: Re: [mapserver-users] geotiff 48bit with mapserver 7 wms


Hi David, Hi list,

@David: you said "Well QGIS does show just a black image"

I assume that this is just a layer-specific contrast setting. Maybe 
just play around with stretching (layer properties -> style -> band 
rendering), e.g. set "min" to "0" and "max" to "255" (per each band) 
and then set "contrast enhancement" to "stretch to minmax"


Regards Ben



Mit freundlichen Grüßen
Im Auftrag

Benjamin Schepers


Geodaten, Stadtplanwerk, Luftbilder
Kronprinzenstraße 6
45128 Essen
Fon: +49 201 2069-232
Fax: +49 201 2069-369
schep...@rvr-online.de



Die Regionaldirektorin
Kronprinzenstraße 35
45128 Essen
Zentrale: +49 (0) 201 2069-0
Fax: +49 (0) 201 2069-500
www.metropoleruhr.de

Postfach 10 32 64
45032 Essen

Steuernummer: RVR 112/5797/0116
USt.-ldNr.: DE 173867500

Diese E-Mail koennte vertrauliche und/oder rechtlich geschuetzte 
Informationen enthalten.
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich 
erhalten haben, informieren Sie bitte sofort den Absender und 
vernichten Sie diese Mail.
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail 
sind nicht gestattet.

This e-mail may contain confidential and/or privileged information.
If you are not the intended recipient (or have received this e-mail in 
error) please notify the sender immediately and destroy this e-mail.
Any unauthorised copying, disclosure or distribution of the material in 
this e-mail is strictly forbidden.

-Ursprüngliche Nachricht-
Von: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] 
Im Auftrag von David

Gesendet: Dienstag, 18. April 2017 18:01
An: 'mapserver-users@lists.osgeo.org'
Betreff: Re: [mapserver-users] geotiff 48bit with mapserver 7 wms

So, i did some testing.

The wms is not serving the images with float32 as data type. It shows 
the same issue, false colors.

The wcs is working and serving the float32 data type data.
For my use-case setting the MAXSIZE higher than the tile dimension was 
important.


Well QGIS does show just a black image, but GlobalMapper is loading the 
data.


Just out of curiosity, can somebody explain "WCS_SIZE" "..." to me? Is 
this the size in pixel x y for the complete TILE_INDEX?


David


-- Original Message --From: "David" <da...@impstyle.com>
To: "'mapserver-users@lists.osgeo.org'"
<mapserver-users@lists.osgeo.org>
Sent: 4/18/2017 11:07:04 AM
Subject: Re[2]: [mapserver-users] geotiff 48bit with mapserver 7 wms


Hi Cora,

do you use PROCESSING "SCALE=AUTO" with you LAYER definition?

SCALE[_n]=AUTO or min,max
This directive instructs the GDAL reader to pre-scale the incoming
raster data. It is primarily used to scale 16bit or floating point 
data

to the range 0-255, but can also be used to constrast stretch 8bit
data.

http://mapserver.org/input/raster.html#special-processing-directives

Cheers David


-- Original Message ------
From: "Berger, Cora" <cora.ber...@bezreg-koeln.nrw.de>
To: "'mapserver-users@lists.osgeo.org'"
<mapserver-users@lists.osgeo.org>
Sent: 4/18/2017 10:47:42 AM
Subject: Re: [mapserver-users] geotiff 48bit with mapserver 7 wms


Dear David, Steve, Ben, etc.
I am working with MapServer-WCS. I still have problems defining the
correct output formats. Input to most of our WCS are 8bit Geotiffs.
The MapServer WCS-output is either tiff, png or jpeg with 24bit or
Png;mode=8bit with 8 bit (if no output format is defined). The
png;mode=8bit-format changes the imagecolours, so it isn't really
useful. I can't get a colored 8bit Geotiff as output (a
8bit-definition always results in greyscale images). I tried 
different
output format-definitions, none of them worked. I can define a 
palette

for the png-format, but unfortunately not for any other format.
For our WCS it is important that the output-data looks the same like
th

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

2017-04-20 Thread Berger, Cora
Dear Jukka,
you can find the original input-image of the wcs, an output image without any 
processing and an output image with processing scale=auto here: 
https://www.bscw.nrw.de/pub/bscw.cgi/7035084

Cora 


>-Ursprüngliche Nachricht-
>Von: Rahkonen Jukka (MML) [mailto:jukka.rahko...@maanmittauslaitos.fi]
>Gesendet: Mittwoch, 19. April 2017 22:14
>An: Berger, Cora; 'mapserver-users@lists.osgeo.org'
>Betreff: Re: [mapserver-users] geotiff 48bit with mapserver 7 wms
>
>Hi Cora,
>
>Could you prepare a small sample image and put it somewhere for downloading?
>Or did you already do it in some earlier mail?
>
>-Jukka Rahkonen-
>
>
>Lähettäjä: mapserver-users <mapserver-users-boun...@lists.osgeo.org> käyttäjän
>puolestaBerger, Cora <cora.ber...@bezreg-koeln.nrw.de>
>Lähetetty: 19. huhtikuuta 2017 17:45
>Vastaanottaja: 'mapserver-users@lists.osgeo.org'
>Aihe: Re: [mapserver-users] geotiff 48bit with mapserver 7 wms
>
>Hi David,
>Thanks for your help. I tried PROCESSING "SCALE=AUTO". This method results in
>a red/white image. All the labels in the map are drawn red (originally black). 
>The
>whole topographic information in the background is just white (originally many
>different colors). I tried it with a combination of different 
>outputformat-declarations
>and processings. Unfortunately I didn't get a correct result.
>
>Cheers Cora
>
>
>>Message: 2
>>Date: Tue, 18 Apr 2017 14:07:04 +
>>From: David <da...@impstyle.com>
>>To: "'mapserver-users@lists.osgeo.org'"
>>   <mapserver-users@lists.osgeo.org>
>>Subject: Re: [mapserver-users] geotiff 48bit with mapserver 7 wms
>>Message-ID: <em2654a657-d1b7-4616-b1ae-3b1d6f8122f3@laptop-dfriedrich>
>>Content-Type: text/plain; format=flowed; charset=utf-8
>>
>>Hi Cora,
>>
>>do you use PROCESSING "SCALE=AUTO" with you LAYER definition?
>>
>>SCALE[_n]=AUTO or min,max
>>This directive instructs the GDAL reader to pre-scale the incoming
>>raster data. It is primarily used to scale 16bit or floating point data
>>to the range 0-255, but can also be used to constrast stretch 8bit data.
>>
>>http://mapserver.org/input/raster.html#special-processing-directives
>>
>>Cheers David
>>
>>
>>-- Original Message --
>>From: "Berger, Cora" <cora.ber...@bezreg-koeln.nrw.de>
>>To: "'mapserver-users@lists.osgeo.org'"
>><mapserver-users@lists.osgeo.org>
>>Sent: 4/18/2017 10:47:42 AM
>>Subject: Re: [mapserver-users] geotiff 48bit with mapserver 7 wms
>>
>>>Dear David, Steve, Ben, etc.
>>>I am working with MapServer-WCS. I still have problems defining the
>>>correct output formats. Input to most of our WCS are 8bit Geotiffs. The
>>>MapServer WCS-output is either tiff, png or jpeg with 24bit or
>>>Png;mode=8bit with 8 bit (if no output format is defined). The
>>>png;mode=8bit-format changes the imagecolours, so it isn't really
>>>useful. I can't get a colored 8bit Geotiff as output (a 8bit-definition
>>>always results in greyscale images). I tried different output
>>>format-definitions, none of them worked. I can define a palette for the
>>>png-format, but unfortunately not for any other format.
>>>For our WCS it is important that the output-data looks the same like
>>>the input-data. It seems that at the moment MapServer can't just pass
>>>the input-data through... This might be a GDAL issue...
>>>
>>>So if you find a way to define your wished output-format, please share
>>>it, maybe it helps me, too. Maybe anybody else has an idea?
>>>
>>>Cora
>>>
>>>
>
>___
>mapserver-users mailing list
>mapserver-users@lists.osgeo.org
>https://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

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

2017-04-19 Thread Rahkonen Jukka (MML)
Hi Cora,

Could you prepare a small sample image and put it somewhere for downloading? Or 
did you already do it in some earlier mail?

-Jukka Rahkonen-


Lähettäjä: mapserver-users <mapserver-users-boun...@lists.osgeo.org> käyttäjän  
puolestaBerger, Cora <cora.ber...@bezreg-koeln.nrw.de>
Lähetetty: 19. huhtikuuta 2017 17:45
Vastaanottaja: 'mapserver-users@lists.osgeo.org'
Aihe: Re: [mapserver-users] geotiff 48bit with mapserver 7 wms

Hi David,
Thanks for your help. I tried PROCESSING "SCALE=AUTO". This method results in a 
red/white image. All the labels in the map are drawn red (originally black). 
The whole topographic information in the background is just white (originally 
many different colors). I tried it with a combination of different 
outputformat-declarations and processings. Unfortunately I didn't get a correct 
result.

Cheers Cora


>Message: 2
>Date: Tue, 18 Apr 2017 14:07:04 +
>From: David <da...@impstyle.com>
>To: "'mapserver-users@lists.osgeo.org'"
>   <mapserver-users@lists.osgeo.org>
>Subject: Re: [mapserver-users] geotiff 48bit with mapserver 7 wms
>Message-ID: <em2654a657-d1b7-4616-b1ae-3b1d6f8122f3@laptop-dfriedrich>
>Content-Type: text/plain; format=flowed; charset=utf-8
>
>Hi Cora,
>
>do you use PROCESSING "SCALE=AUTO" with you LAYER definition?
>
>SCALE[_n]=AUTO or min,max
>This directive instructs the GDAL reader to pre-scale the incoming
>raster data. It is primarily used to scale 16bit or floating point data
>to the range 0-255, but can also be used to constrast stretch 8bit data.
>
>http://mapserver.org/input/raster.html#special-processing-directives
>
>Cheers David
>
>
>-- Original Message --
>From: "Berger, Cora" <cora.ber...@bezreg-koeln.nrw.de>
>To: "'mapserver-users@lists.osgeo.org'"
><mapserver-users@lists.osgeo.org>
>Sent: 4/18/2017 10:47:42 AM
>Subject: Re: [mapserver-users] geotiff 48bit with mapserver 7 wms
>
>>Dear David, Steve, Ben, etc.
>>I am working with MapServer-WCS. I still have problems defining the
>>correct output formats. Input to most of our WCS are 8bit Geotiffs. The
>>MapServer WCS-output is either tiff, png or jpeg with 24bit or
>>Png;mode=8bit with 8 bit (if no output format is defined). The
>>png;mode=8bit-format changes the imagecolours, so it isn't really
>>useful. I can't get a colored 8bit Geotiff as output (a 8bit-definition
>>always results in greyscale images). I tried different output
>>format-definitions, none of them worked. I can define a palette for the
>>png-format, but unfortunately not for any other format.
>>For our WCS it is important that the output-data looks the same like
>>the input-data. It seems that at the moment MapServer can't just pass
>>the input-data through... This might be a GDAL issue...
>>
>>So if you find a way to define your wished output-format, please share
>>it, maybe it helps me, too. Maybe anybody else has an idea?
>>
>>Cora
>>
>>

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

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

2017-04-19 Thread Berger, Cora
Hi David,
Thanks for your help. I tried PROCESSING "SCALE=AUTO". This method results in a 
red/white image. All the labels in the map are drawn red (originally black). 
The whole topographic information in the background is just white (originally 
many different colors). I tried it with a combination of different 
outputformat-declarations and processings. Unfortunately I didn't get a correct 
result. 

Cheers Cora


>Message: 2
>Date: Tue, 18 Apr 2017 14:07:04 +
>From: David <da...@impstyle.com>
>To: "'mapserver-users@lists.osgeo.org'"
>   <mapserver-users@lists.osgeo.org>
>Subject: Re: [mapserver-users] geotiff 48bit with mapserver 7 wms
>Message-ID: <em2654a657-d1b7-4616-b1ae-3b1d6f8122f3@laptop-dfriedrich>
>Content-Type: text/plain; format=flowed; charset=utf-8
>
>Hi Cora,
>
>do you use PROCESSING "SCALE=AUTO" with you LAYER definition?
>
>SCALE[_n]=AUTO or min,max
>This directive instructs the GDAL reader to pre-scale the incoming
>raster data. It is primarily used to scale 16bit or floating point data
>to the range 0-255, but can also be used to constrast stretch 8bit data.
>
>http://mapserver.org/input/raster.html#special-processing-directives
>
>Cheers David
>
>
>-- Original Message --
>From: "Berger, Cora" <cora.ber...@bezreg-koeln.nrw.de>
>To: "'mapserver-users@lists.osgeo.org'"
><mapserver-users@lists.osgeo.org>
>Sent: 4/18/2017 10:47:42 AM
>Subject: Re: [mapserver-users] geotiff 48bit with mapserver 7 wms
>
>>Dear David, Steve, Ben, etc.
>>I am working with MapServer-WCS. I still have problems defining the
>>correct output formats. Input to most of our WCS are 8bit Geotiffs. The
>>MapServer WCS-output is either tiff, png or jpeg with 24bit or
>>Png;mode=8bit with 8 bit (if no output format is defined). The
>>png;mode=8bit-format changes the imagecolours, so it isn't really
>>useful. I can't get a colored 8bit Geotiff as output (a 8bit-definition
>>always results in greyscale images). I tried different output
>>format-definitions, none of them worked. I can define a palette for the
>>png-format, but unfortunately not for any other format.
>>For our WCS it is important that the output-data looks the same like
>>the input-data. It seems that at the moment MapServer can't just pass
>>the input-data through... This might be a GDAL issue...
>>
>>So if you find a way to define your wished output-format, please share
>>it, maybe it helps me, too. Maybe anybody else has an idea?
>>
>>Cora
>>
>>

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

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

2017-04-19 Thread Schepers, Benjamin
Hi David, Hi list,

@David: you said "Well QGIS does show just a black image"

I assume that this is just a layer-specific contrast setting. Maybe just play 
around with stretching (layer properties -> style -> band rendering), e.g. set 
"min" to "0" and "max" to "255" (per each band) and then set "contrast 
enhancement" to "stretch to minmax"

Regards Ben



Mit freundlichen Grüßen
Im Auftrag

Benjamin Schepers


Geodaten, Stadtplanwerk, Luftbilder
Kronprinzenstraße 6
45128 Essen
Fon: +49 201 2069-232
Fax: +49 201 2069-369
schep...@rvr-online.de



Die Regionaldirektorin
Kronprinzenstraße 35
45128 Essen
Zentrale: +49 (0) 201 2069-0
Fax: +49 (0) 201 2069-500
www.metropoleruhr.de

Postfach 10 32 64
45032 Essen

Steuernummer: RVR 112/5797/0116
USt.-ldNr.: DE 173867500

Diese E-Mail koennte vertrauliche und/oder rechtlich geschuetzte Informationen 
enthalten.
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich 
erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie 
diese Mail.
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail sind nicht 
gestattet.
This e-mail may contain confidential and/or privileged information.
If you are not the intended recipient (or have received this e-mail in error) 
please notify the sender immediately and destroy this e-mail.
Any unauthorised copying, disclosure or distribution of the material in this 
e-mail is strictly forbidden.
-Ursprüngliche Nachricht-
Von: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] Im 
Auftrag von David
Gesendet: Dienstag, 18. April 2017 18:01
An: 'mapserver-users@lists.osgeo.org'
Betreff: Re: [mapserver-users] geotiff 48bit with mapserver 7 wms

So, i did some testing.

The wms is not serving the images with float32 as data type. It shows the same 
issue, false colors.
The wcs is working and serving the float32 data type data.
For my use-case setting the MAXSIZE higher than the tile dimension was 
important.

Well QGIS does show just a black image, but GlobalMapper is loading the data.

Just out of curiosity, can somebody explain "WCS_SIZE" "..." to me? Is this the 
size in pixel x y for the complete TILE_INDEX?

David


-- Original Message --From: "David" <da...@impstyle.com>
To: "'mapserver-users@lists.osgeo.org'" 
<mapserver-users@lists.osgeo.org>
Sent: 4/18/2017 11:07:04 AM
Subject: Re[2]: [mapserver-users] geotiff 48bit with mapserver 7 wms

>Hi Cora,
>
>do you use PROCESSING "SCALE=AUTO" with you LAYER definition?
>
>SCALE[_n]=AUTO or min,max
>This directive instructs the GDAL reader to pre-scale the incoming 
>raster data. It is primarily used to scale 16bit or floating point data 
>to the range 0-255, but can also be used to constrast stretch 8bit 
>data.
>
>http://mapserver.org/input/raster.html#special-processing-directives
>
>Cheers David
>
>
>-- Original Message --
>From: "Berger, Cora" <cora.ber...@bezreg-koeln.nrw.de>
>To: "'mapserver-users@lists.osgeo.org'" 
><mapserver-users@lists.osgeo.org>
>Sent: 4/18/2017 10:47:42 AM
>Subject: Re: [mapserver-users] geotiff 48bit with mapserver 7 wms
>
>>Dear David, Steve, Ben, etc.
>>I am working with MapServer-WCS. I still have problems defining the 
>>correct output formats. Input to most of our WCS are 8bit Geotiffs.
>>The MapServer WCS-output is either tiff, png or jpeg with 24bit or 
>>Png;mode=8bit with 8 bit (if no output format is defined). The 
>>png;mode=8bit-format changes the imagecolours, so it isn't really 
>>useful. I can't get a colored 8bit Geotiff as output (a 
>>8bit-definition always results in greyscale images). I tried different 
>>output format-definitions, none of them worked. I can define a palette 
>>for the png-format, but unfortunately not for any other format.
>>For our WCS it is important that the output-data looks the same like 
>>the input-data. It seems that at the moment MapServer can't just pass 
>>the input-data through... This might be a GDAL issue...
>>
>>So if you find a way to define your wished output-format, please share 
>>it, maybe it helps me, too. Maybe anybody else has an idea?
>>
>>Cora
>>
>>
>>>Message: 1
>>>Date: Mon, 17 Apr 2017 22:14:28 +
>>>From: David <da...@impstyle.com>
>>>To: mapserver-users@lists.osgeo.org
>>>Subject: Re: [mapserver-users] geotiff 48bit with mapserver 7 wms
>>>Message-ID: 
>>><em46e35a97-ef4b-4c1a-83bd-bfc62776fa9c@laptop-dfriedrich>
>>>Content-Type: text/plain; format=flowed; charset=utf-8
>>>
>>>Thank you very much Steve. You helped me to understand the problem!
>&g

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

2017-04-18 Thread David

So, i did some testing.

The wms is not serving the images with float32 as data type. It shows 
the same issue, false colors.

The wcs is working and serving the float32 data type data.
For my use-case setting the MAXSIZE higher than the tile dimension was 
important.


Well QGIS does show just a black image, but GlobalMapper is loading the 
data.


Just out of curiosity, can somebody explain "WCS_SIZE" "..." to me? Is 
this the size in pixel x y for the complete TILE_INDEX?


David


-- Original Message --From: "David" <da...@impstyle.com>
To: "'mapserver-users@lists.osgeo.org'" 
<mapserver-users@lists.osgeo.org>

Sent: 4/18/2017 11:07:04 AM
Subject: Re[2]: [mapserver-users] geotiff 48bit with mapserver 7 wms


Hi Cora,

do you use PROCESSING "SCALE=AUTO" with you LAYER definition?

SCALE[_n]=AUTO or min,max
This directive instructs the GDAL reader to pre-scale the incoming 
raster data. It is primarily used to scale 16bit or floating point data 
to the range 0-255, but can also be used to constrast stretch 8bit 
data.


http://mapserver.org/input/raster.html#special-processing-directives

Cheers David


-- Original Message --
From: "Berger, Cora" <cora.ber...@bezreg-koeln.nrw.de>
To: "'mapserver-users@lists.osgeo.org'" 
<mapserver-users@lists.osgeo.org>

Sent: 4/18/2017 10:47:42 AM
Subject: Re: [mapserver-users] geotiff 48bit with mapserver 7 wms


Dear David, Steve, Ben, etc.
I am working with MapServer-WCS. I still have problems defining the 
correct output formats. Input to most of our WCS are 8bit Geotiffs. 
The MapServer WCS-output is either tiff, png or jpeg with 24bit or 
Png;mode=8bit with 8 bit (if no output format is defined). The 
png;mode=8bit-format changes the imagecolours, so it isn't really 
useful. I can't get a colored 8bit Geotiff as output (a 
8bit-definition always results in greyscale images). I tried different 
output format-definitions, none of them worked. I can define a palette 
for the png-format, but unfortunately not for any other format.
For our WCS it is important that the output-data looks the same like 
the input-data. It seems that at the moment MapServer can't just pass 
the input-data through... This might be a GDAL issue...


So if you find a way to define your wished output-format, please share 
it, maybe it helps me, too. Maybe anybody else has an idea?


Cora



Message: 1
Date: Mon, 17 Apr 2017 22:14:28 +0000
From: David <da...@impstyle.com>
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] geotiff 48bit with mapserver 7 wms
Message-ID: 
<em46e35a97-ef4b-4c1a-83bd-bfc62776fa9c@laptop-dfriedrich>

Content-Type: text/plain; format=flowed; charset=utf-8

Thank you very much Steve. You helped me to understand the problem!

David F.

-- Original Message --
From: "Stephen Woodbridge" <wood...@swoodbridge.com>
To: mapserver-users@lists.osgeo.org
Sent: 4/14/2017 9:54:20 PM
Subject: Re: [mapserver-users] geotiff 48bit with mapserver 7 wms


Yeah, technically a geotiff can be any format, but mapserver only
supports a limit set for band widths.

A new version of Mapcache was just released and it has GDAL support 
in

it  and serves WMS, but I'm not sure if it will do what you want.

Sorry, I'm out of ideas on this.

-Steve W

On 4/14/2017 6:56 PM, David F. wrote:

I did not reply after my latest test, sorry.
I tried all tiff IMAGEMODE for my data set. None gave me 16 bit at 
the

gis client.
As far as I understand gtiff is 8 bit.
The only IMAGEMODE for integer is signed INT16 , which is
unfortunately the only supported integer data type. For RGB data
unsigned integer is the only integer data type that makes sense. 
Just
if i change the IMAGEMODE to FLOAT32 mapserver will serve more than 
8

bit per band.
I think i will give gdal and float32 bit a try nevertheless it will
double the image size.
Maybe someone else has an idea.





On April 14, 2017 1:43:09 PM Stephen Woodbridge
<wood...@swoodbridge.com> wrote:


http://mapserver.org/mapfile/outputformat.html

Why not serve them a GTiff format for qgis?

You can define multiple output formats in the mapfile, and let the
browser use the 8bit png and have qgis request images in gtiff
format.

-Steve

On 4/13/2017 11:03 AM, David wrote:

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-requ...@lists.osgeo.org
T

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

2017-04-18 Thread David

Hi Cora,

do you use PROCESSING "SCALE=AUTO" with you LAYER definition?

SCALE[_n]=AUTO or min,max
This directive instructs the GDAL reader to pre-scale the incoming 
raster data. It is primarily used to scale 16bit or floating point data 
to the range 0-255, but can also be used to constrast stretch 8bit data.


http://mapserver.org/input/raster.html#special-processing-directives

Cheers David


-- Original Message --
From: "Berger, Cora" <cora.ber...@bezreg-koeln.nrw.de>
To: "'mapserver-users@lists.osgeo.org'" 
<mapserver-users@lists.osgeo.org>

Sent: 4/18/2017 10:47:42 AM
Subject: Re: [mapserver-users] geotiff 48bit with mapserver 7 wms


Dear David, Steve, Ben, etc.
I am working with MapServer-WCS. I still have problems defining the 
correct output formats. Input to most of our WCS are 8bit Geotiffs. The 
MapServer WCS-output is either tiff, png or jpeg with 24bit or 
Png;mode=8bit with 8 bit (if no output format is defined). The 
png;mode=8bit-format changes the imagecolours, so it isn't really 
useful. I can't get a colored 8bit Geotiff as output (a 8bit-definition 
always results in greyscale images). I tried different output 
format-definitions, none of them worked. I can define a palette for the 
png-format, but unfortunately not for any other format.
For our WCS it is important that the output-data looks the same like 
the input-data. It seems that at the moment MapServer can't just pass 
the input-data through... This might be a GDAL issue...


So if you find a way to define your wished output-format, please share 
it, maybe it helps me, too. Maybe anybody else has an idea?


Cora



Message: 1
Date: Mon, 17 Apr 2017 22:14:28 +
From: David <da...@impstyle.com>
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] geotiff 48bit with mapserver 7 wms
Message-ID: <em46e35a97-ef4b-4c1a-83bd-bfc62776fa9c@laptop-dfriedrich>
Content-Type: text/plain; format=flowed; charset=utf-8

Thank you very much Steve. You helped me to understand the problem!

David F.

-- Original Message --
From: "Stephen Woodbridge" <wood...@swoodbridge.com>
To: mapserver-users@lists.osgeo.org
Sent: 4/14/2017 9:54:20 PM
Subject: Re: [mapserver-users] geotiff 48bit with mapserver 7 wms


Yeah, technically a geotiff can be any format, but mapserver only
supports a limit set for band widths.

A new version of Mapcache was just released and it has GDAL support 
in

it  and serves WMS, but I'm not sure if it will do what you want.

Sorry, I'm out of ideas on this.

-Steve W

On 4/14/2017 6:56 PM, David F. wrote:

I did not reply after my latest test, sorry.
I tried all tiff IMAGEMODE for my data set. None gave me 16 bit at 
the

gis client.
As far as I understand gtiff is 8 bit.
The only IMAGEMODE for integer is signed INT16 , which is
unfortunately the only supported integer data type. For RGB data
unsigned integer is the only integer data type that makes sense. 
Just
if i change the IMAGEMODE to FLOAT32 mapserver will serve more than 
8

bit per band.
I think i will give gdal and float32 bit a try nevertheless it will
double the image size.
Maybe someone else has an idea.





On April 14, 2017 1:43:09 PM Stephen Woodbridge
<wood...@swoodbridge.com> wrote:


http://mapserver.org/mapfile/outputformat.html

Why not serve them a GTiff format for qgis?

You can define multiple output formats in the mapfile, and let the
browser use the 8bit png and have qgis request images in gtiff
format.

-Steve

On 4/13/2017 11:03 AM, David wrote:

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-requ...@lists.osgeo.org
To: mapserver-users@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@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-requ...@lists.osgeo.org

You can reach the person managing the list at
  mapserver-users-ow...@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)



--

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

2017-04-18 Thread Berger, Cora
Dear David, Steve, Ben, etc.
I am working with MapServer-WCS. I still have problems defining the correct 
output formats. Input to most of our WCS are 8bit Geotiffs. The MapServer 
WCS-output is either tiff, png or jpeg with 24bit or Png;mode=8bit with 8 bit 
(if no output format is defined). The png;mode=8bit-format changes the 
imagecolours, so it isn't really useful. I can't get a colored 8bit Geotiff as 
output (a 8bit-definition always results in greyscale images). I tried 
different output format-definitions, none of them worked. I can define a 
palette for the png-format, but unfortunately not for any other format. 
For our WCS it is important that the output-data looks the same like the 
input-data. It seems that at the moment MapServer can't just pass the 
input-data through... This might be a GDAL issue...

So if you find a way to define your wished output-format, please share it, 
maybe it helps me, too. Maybe anybody else has an idea? 

Cora


>Message: 1
>Date: Mon, 17 Apr 2017 22:14:28 +
>From: David <da...@impstyle.com>
>To: mapserver-users@lists.osgeo.org
>Subject: Re: [mapserver-users] geotiff 48bit with mapserver 7 wms
>Message-ID: <em46e35a97-ef4b-4c1a-83bd-bfc62776fa9c@laptop-dfriedrich>
>Content-Type: text/plain; format=flowed; charset=utf-8
>
>Thank you very much Steve. You helped me to understand the problem!
>
>David F.
>
>-- Original Message --
>From: "Stephen Woodbridge" <wood...@swoodbridge.com>
>To: mapserver-users@lists.osgeo.org
>Sent: 4/14/2017 9:54:20 PM
>Subject: Re: [mapserver-users] geotiff 48bit with mapserver 7 wms
>
>>Yeah, technically a geotiff can be any format, but mapserver only
>>supports a limit set for band widths.
>>
>>A new version of Mapcache was just released and it has GDAL support in
>>it  and serves WMS, but I'm not sure if it will do what you want.
>>
>>Sorry, I'm out of ideas on this.
>>
>>-Steve W
>>
>>On 4/14/2017 6:56 PM, David F. wrote:
>>>I did not reply after my latest test, sorry.
>>>I tried all tiff IMAGEMODE for my data set. None gave me 16 bit at the
>>>gis client.
>>>As far as I understand gtiff is 8 bit.
>>>The only IMAGEMODE for integer is signed INT16 , which is
>>>unfortunately the only supported integer data type. For RGB data
>>>unsigned integer is the only integer data type that makes sense. Just
>>>if i change the IMAGEMODE to FLOAT32 mapserver will serve more than 8
>>>bit per band.
>>>I think i will give gdal and float32 bit a try nevertheless it will
>>>double the image size.
>>>Maybe someone else has an idea.
>>>
>>>
>>>
>>>
>>>
>>>On April 14, 2017 1:43:09 PM Stephen Woodbridge
>>><wood...@swoodbridge.com> wrote:
>>>
>>>>http://mapserver.org/mapfile/outputformat.html
>>>>
>>>>Why not serve them a GTiff format for qgis?
>>>>
>>>>You can define multiple output formats in the mapfile, and let the
>>>>browser use the 8bit png and have qgis request images in gtiff
>>>>format.
>>>>
>>>>-Steve
>>>>
>>>>On 4/13/2017 11:03 AM, David wrote:
>>>>>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-requ...@lists.osgeo.org
>>>>>To: mapserver-users@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@lists.osgeo.org
>>>>>>
>>>>>>To subscribe or unsubscribe via the World Wide Web, visit
>>>>>>  https://lists.osgeo.org/mailman/listinfo/ma

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

2017-04-18 Thread David

Hi Ben,

Thank you for your input.
I did set up a WCS yesterday and found the same issues.
I will change the data type to FLOAT32 and give it a try.

Cheers David

-- Original Message --
From: "Schepers, Benjamin" <schep...@rvr-online.de>
To: "mapserver-users@lists.osgeo.org" <mapserver-users@lists.osgeo.org>
Sent: 4/18/2017 9:12:46 AM
Subject: Re: [mapserver-users] geotiff 48bit with mapserver 7 wms


Hi,

maybe it would the better way to use the WCS-Interface? To be honest, I 
didn't use it that way by myself. But it sounds like that would be an 
proper scenario for WCS (doing some "more" with that data besides the 
classic "viewing").


To configure WCS shouldn't be that hard, I think:
http://mapserver.org/ogc/wcs_format.html
http://mapserver.org/de/ogc/wcs_server.html

Moreover QGIS has built-in WCS-support.

Just an idea...

Regards Ben



-Ursprüngliche Nachricht-
Von: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] 
Im Auftrag von David

Gesendet: Dienstag, 18. April 2017 00:14
An: mapserver-users@lists.osgeo.org
Betreff: Re: [mapserver-users] geotiff 48bit with mapserver 7 wms

Thank you very much Steve. You helped me to understand the problem!

David F.

-- Original Message --
From: "Stephen Woodbridge" <wood...@swoodbridge.com>
To: mapserver-users@lists.osgeo.org
Sent: 4/14/2017 9:54:20 PM
Subject: Re: [mapserver-users] geotiff 48bit with mapserver 7 wms


Yeah, technically a geotiff can be any format, but mapserver only
supports a limit set for band widths.

A new version of Mapcache was just released and it has GDAL support in
it  and serves WMS, but I'm not sure if it will do what you want.

Sorry, I'm out of ideas on this.

-Steve W

On 4/14/2017 6:56 PM, David F. wrote:

I did not reply after my latest test, sorry.
I tried all tiff IMAGEMODE for my data set. None gave me 16 bit at 
the

gis client.
As far as I understand gtiff is 8 bit.
The only IMAGEMODE for integer is signed INT16 , which is
unfortunately the only supported integer data type. For RGB data
unsigned integer is the only integer data type that makes sense. Just
if i change the IMAGEMODE to FLOAT32 mapserver will serve more than 8
bit per band.
I think i will give gdal and float32 bit a try nevertheless it will
double the image size.
Maybe someone else has an idea.





On April 14, 2017 1:43:09 PM Stephen Woodbridge
<wood...@swoodbridge.com> wrote:


http://mapserver.org/mapfile/outputformat.html

Why not serve them a GTiff format for qgis?

You can define multiple output formats in the mapfile, and let the
browser use the 8bit png and have qgis request images in gtiff
format.

-Steve

On 4/13/2017 11:03 AM, David wrote:

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-requ...@lists.osgeo.org
To: mapserver-users@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@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-requ...@lists.osgeo.org

You can reach the person managing the list at
  mapserver-users-ow...@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 +
From: David <da...@impstyle.com>
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] geotiff 48bit with mapserver 7 wms
Message-ID:
<em5ce0e1b3-00b1-463e-8ad8-90100518d131@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 cou

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

2017-04-18 Thread Schepers, Benjamin
Hi,

maybe it would the better way to use the WCS-Interface? To be honest, I didn't 
use it that way by myself. But it sounds like that would be an proper scenario 
for WCS (doing some "more" with that data besides the classic "viewing").

To configure WCS shouldn't be that hard, I think:
http://mapserver.org/ogc/wcs_format.html
http://mapserver.org/de/ogc/wcs_server.html

Moreover QGIS has built-in WCS-support.

Just an idea...

Regards Ben



-Ursprüngliche Nachricht-
Von: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] Im 
Auftrag von David
Gesendet: Dienstag, 18. April 2017 00:14
An: mapserver-users@lists.osgeo.org
Betreff: Re: [mapserver-users] geotiff 48bit with mapserver 7 wms

Thank you very much Steve. You helped me to understand the problem!

David F.

-- Original Message --
From: "Stephen Woodbridge" <wood...@swoodbridge.com>
To: mapserver-users@lists.osgeo.org
Sent: 4/14/2017 9:54:20 PM
Subject: Re: [mapserver-users] geotiff 48bit with mapserver 7 wms

>Yeah, technically a geotiff can be any format, but mapserver only 
>supports a limit set for band widths.
>
>A new version of Mapcache was just released and it has GDAL support in 
>it  and serves WMS, but I'm not sure if it will do what you want.
>
>Sorry, I'm out of ideas on this.
>
>-Steve W
>
>On 4/14/2017 6:56 PM, David F. wrote:
>>I did not reply after my latest test, sorry.
>>I tried all tiff IMAGEMODE for my data set. None gave me 16 bit at the 
>>gis client.
>>As far as I understand gtiff is 8 bit.
>>The only IMAGEMODE for integer is signed INT16 , which is 
>>unfortunately the only supported integer data type. For RGB data 
>>unsigned integer is the only integer data type that makes sense. Just 
>>if i change the IMAGEMODE to FLOAT32 mapserver will serve more than 8 
>>bit per band.
>>I think i will give gdal and float32 bit a try nevertheless it will 
>>double the image size.
>>Maybe someone else has an idea.
>>
>>
>>
>>
>>
>>On April 14, 2017 1:43:09 PM Stephen Woodbridge 
>><wood...@swoodbridge.com> wrote:
>>
>>>http://mapserver.org/mapfile/outputformat.html
>>>
>>>Why not serve them a GTiff format for qgis?
>>>
>>>You can define multiple output formats in the mapfile, and let the 
>>>browser use the 8bit png and have qgis request images in gtiff 
>>>format.
>>>
>>>-Steve
>>>
>>>On 4/13/2017 11:03 AM, David wrote:
>>>>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-requ...@lists.osgeo.org
>>>>To: mapserver-users@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@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-requ...@lists.osgeo.org
>>>>>
>>>>>You can reach the person managing the list at
>>>>>  mapserver-users-ow...@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)
>>>>>
>>>>>
>>>>>---
>>>>>---
>>>>&

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

2017-04-17 Thread David

Thank you very much Steve. You helped me to understand the problem!

David F.

-- Original Message --
From: "Stephen Woodbridge" <wood...@swoodbridge.com>
To: mapserver-users@lists.osgeo.org
Sent: 4/14/2017 9:54:20 PM
Subject: Re: [mapserver-users] geotiff 48bit with mapserver 7 wms

Yeah, technically a geotiff can be any format, but mapserver only 
supports a limit set for band widths.


A new version of Mapcache was just released and it has GDAL support in 
it  and serves WMS, but I'm not sure if it will do what you want.


Sorry, I'm out of ideas on this.

-Steve W

On 4/14/2017 6:56 PM, David F. wrote:

I did not reply after my latest test, sorry.
I tried all tiff IMAGEMODE for my data set. None gave me 16 bit at the 
gis client.

As far as I understand gtiff is 8 bit.
The only IMAGEMODE for integer is signed INT16 , which is 
unfortunately the only supported integer data type. For RGB data 
unsigned integer is the only integer data type that makes sense. Just 
if i change the IMAGEMODE to FLOAT32 mapserver will serve more than 8 
bit per band.
I think i will give gdal and float32 bit a try nevertheless it will 
double the image size.

Maybe someone else has an idea.





On April 14, 2017 1:43:09 PM Stephen Woodbridge 
<wood...@swoodbridge.com> wrote:



http://mapserver.org/mapfile/outputformat.html

Why not serve them a GTiff format for qgis?

You can define multiple output formats in the mapfile, and let the
browser use the 8bit png and have qgis request images in gtiff 
format.


-Steve

On 4/13/2017 11:03 AM, David wrote:

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-requ...@lists.osgeo.org
To: mapserver-users@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@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-requ...@lists.osgeo.org

You can reach the person managing the list at
 mapserver-users-ow...@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 +
From: David <da...@impstyle.com>
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] geotiff 48bit with mapserver 7 wms
Message-ID: 
<em5ce0e1b3-00b1-463e-8ad8-90100518d131@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 <wood...@swoodbridge.com>
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] geotiff 48bit with mapserver 7 wms
Message-ID: <a7bc734d-f7b9-32f3-5ce0-6a71aab4e...@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

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

2017-04-14 Thread Stephen Woodbridge
Yeah, technically a geotiff can be any format, but mapserver only 
supports a limit set for band widths.


A new version of Mapcache was just released and it has GDAL support in 
it  and serves WMS, but I'm not sure if it will do what you want.


Sorry, I'm out of ideas on this.

-Steve W

On 4/14/2017 6:56 PM, David F. wrote:

I did not reply after my latest test, sorry.
I tried all tiff IMAGEMODE for my data set. None gave me 16 bit at the 
gis client.

As far as I understand gtiff is 8 bit.
The only IMAGEMODE for integer is signed INT16 , which is unfortunately 
the only supported integer data type. For RGB data unsigned integer is 
the only integer data type that makes sense. Just if i change the 
IMAGEMODE to FLOAT32 mapserver will serve more than 8 bit per band.
I think i will give gdal and float32 bit a try nevertheless it will 
double the image size.

Maybe someone else has an idea.





On April 14, 2017 1:43:09 PM Stephen Woodbridge 
<wood...@swoodbridge.com> wrote:



http://mapserver.org/mapfile/outputformat.html

Why not serve them a GTiff format for qgis?

You can define multiple output formats in the mapfile, and let the
browser use the 8bit png and have qgis request images in gtiff format.

-Steve

On 4/13/2017 11:03 AM, David wrote:

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-requ...@lists.osgeo.org
To: mapserver-users@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@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-requ...@lists.osgeo.org

You can reach the person managing the list at
 mapserver-users-ow...@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 +
From: David <da...@impstyle.com>
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] geotiff 48bit with mapserver 7 wms
Message-ID: <em5ce0e1b3-00b1-463e-8ad8-90100518d131@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 <wood...@swoodbridge.com>
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] geotiff 48bit with mapserver 7 wms
Message-ID: <a7bc734d-f7b9-32f3-5ce0-6a71aab4e...@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 hi

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

2017-04-14 Thread David F.

I did not reply after my latest test, sorry.
I tried all tiff IMAGEMODE for my data set. None gave me 16 bit at the gis 
client.

As far as I understand gtiff is 8 bit.
The only IMAGEMODE for integer is signed INT16 , which is unfortunately the 
only supported integer data type. For RGB data unsigned integer is the only 
integer data type that makes sense. Just if i change the IMAGEMODE to 
FLOAT32 mapserver will serve more than 8 bit per band.
I think i will give gdal and float32 bit a try nevertheless it will double 
the image size.

Maybe someone else has an idea.





On April 14, 2017 1:43:09 PM Stephen Woodbridge <wood...@swoodbridge.com> 
wrote:



http://mapserver.org/mapfile/outputformat.html

Why not serve them a GTiff format for qgis?

You can define multiple output formats in the mapfile, and let the
browser use the 8bit png and have qgis request images in gtiff format.

-Steve

On 4/13/2017 11:03 AM, David wrote:

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-requ...@lists.osgeo.org
To: mapserver-users@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@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-requ...@lists.osgeo.org

You can reach the person managing the list at
 mapserver-users-ow...@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 +
From: David <da...@impstyle.com>
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] geotiff 48bit with mapserver 7 wms
Message-ID: <em5ce0e1b3-00b1-463e-8ad8-90100518d131@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 <wood...@swoodbridge.com>
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] geotiff 48bit with mapserver 7 wms
Message-ID: <a7bc734d-f7b9-32f3-5ce0-6a71aab4e...@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.

 imag

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

2017-04-14 Thread Stephen Woodbridge

http://mapserver.org/mapfile/outputformat.html

Why not serve them a GTiff format for qgis?

You can define multiple output formats in the mapfile, and let the 
browser use the 8bit png and have qgis request images in gtiff format.


-Steve

On 4/13/2017 11:03 AM, David wrote:

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-requ...@lists.osgeo.org
To: mapserver-users@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@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-requ...@lists.osgeo.org

You can reach the person managing the list at
 mapserver-users-ow...@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 +
From: David <da...@impstyle.com>
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] geotiff 48bit with mapserver 7 wms
Message-ID: <em5ce0e1b3-00b1-463e-8ad8-90100518d131@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 <wood...@swoodbridge.com>
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] geotiff 48bit with mapserver 7 wms
Message-ID: <a7bc734d-f7b9-32f3-5ce0-6a71aab4e...@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@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@li

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

2017-04-13 Thread David

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-requ...@lists.osgeo.org
To: mapserver-users@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@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-requ...@lists.osgeo.org

You can reach the person managing the list at
 mapserver-users-ow...@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 +
From: David <da...@impstyle.com>
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] geotiff 48bit with mapserver 7 wms
Message-ID: <em5ce0e1b3-00b1-463e-8ad8-90100518d131@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 <wood...@swoodbridge.com>
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] geotiff 48bit with mapserver 7 wms
Message-ID: <a7bc734d-f7b9-32f3-5ce0-6a71aab4e...@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@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@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

--

End of mapserver-users Digest, Vol 111, Issue 5
***

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

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

2017-04-11 Thread Stephen Woodbridge

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@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

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

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

2017-04-11 Thread David

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@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users