[mapserver-users] GDAL input formats

Brent Fraser bfraser at geoanalytic.com
Thu Jan 6 15:42:08 PST 2011


David,

   I'd recommend converting your floating point images to 24-bit RGB 
images (as long as you can afford the disk space).  You'd have to 
configure mapserver (see SCALE in 
http://mapserver.org/input/raster.html#bit-rgb-rendering) to do this on 
the fly anyway as browsers don't know what to do with floating point 
images.

   You can use gdal_translate to do the conversion (see "-scale" in 
http://www.gdal.org/gdal_translate.html).

Best Regards,
Brent Fraser


On 1/5/2011 2:46 PM, David Hildebrand wrote:
> My question now relates to output.
>
> ===========================
> David V. Hildebrand
> Agriculture Financial Services Corporation
> (403) 782-8239
>
>
> -----Original Message-----
> From: Alexander Petkov [mailto:greenkov at gmail.com]
> Sent: Wednesday, January 05, 2011 2:07 PM
> To: David Hildebrand
> Cc: Rahkonen Jukka; mapserver-users at lists.osgeo.org
> Subject: Re: [mapserver-users] GDAL input formats
>
> Hi David:
>
> If gdal can read your rasters (gdalinfo will work for a quick and easy
> test),  mapserver will too.
>
> Alex
>
> On Wed, Jan 5, 2011 at 1:46 PM, David Hildebrand
> <David.Hildebrand at afsc.ca>  wrote:
>> Thanks, Jukka.  The second part of my question relates to floating point
>> images.  I don't think that MapServer can handle 3-band floating point
>> images because I can't seem to find anything in the documentation and I
>> have tried a couple of things that don't work.  I suppose the best thing
>> would be to convert them to 3-band, 8-bit images.
>>
>>
>> ===========================
>> David V. Hildebrand
>> Agriculture Financial Services Corporation
>> (403) 782-8239
>>
>>
>> -----Original Message-----
>> From: Rahkonen Jukka [mailto:Jukka.Rahkonen at mmmtike.fi]
>> Sent: Wednesday, January 05, 2011 10:07 AM
>> To: David Hildebrand
>> Cc: mapserver-users at lists.osgeo.org
>> Subject: Re: [mapserver-users] GDAL input formats
>>
>> Hi,
>>
>> Have you already read the ENVI part of the following document?
>> http://gdal.org/frmt_various.html#ENVI
>>
>> -Jukka Rahkonen-
>>
>>
>> David Hildebrand wrote:
>>
>>> Frank:
>>> As you are probably aware, ENVI image files are associated with a
>> header
>> file which has a "hdr" extension.  The extension of the actual image
>> file can be anything but the root name of the image file and header file
>> must be the same.  If I specify the HDR file on the DATA line of my map
>> file there may be more than one file in the same workspace which are
>> candidate image files.  If I specify the name of the image file, which
>> can have any or no extension, I don't see how the system can figure out
>> the format.  Is there a particular extension which is assumed by GDAL
>> for the image file?
>>
>>> Thanks.
>>
>> ===========================
>> David V. Hildebrand
>> Agriculture Financial Services Corporation
>> (403) 782-8239
>>
>> -----Original Message-----
>> From: mapserver-users-bounces at lists.osgeo.org
>> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Frank
>> Warmerdam
>> Sent: Tuesday, January 04, 2011 5:33 PM
>> To: mapserver-users at lists.osgeo.org
>> Subject: Re: [mapserver-users] GDAL input formats
>>
>> On 11-01-04 03:14 PM, David Hildebrand wrote:
>>> I'm wondering how to specify a particular GDAL format.  I have some
>>> 3-band floating point images in ENVI format and I would like to retain
>>> that format because I have GDAL support.  Secondly, would it be better
>>> to convert them to GeoTiff files?  Would it also be better to scale
>> them
>>> to, say 16-bit signed integer files?
>> David,
>>
>> I searched back a bit in the archive, but I couldn't find any leadup
>> discussion to the above.  It seems to lack context.
>>
>> So, you have 3band floating point images in ENVI format and you would
>> like to retain that format.  Is there something holding you back?
>>
>> You said you don't know "hjow to specify a particular GDAL format".  Do
>> you mean when you are generating output via GDAL such as with WCS?  Or
>> do you mean how you tell MapServer what format an input file is in?
>> You don't have to tell MapServer (or GDAL) what format a file is in.
>> It figures it out - assuming it is a supported format.
>>
>> Does that help?
>>
>> Best regards,
>> --
>> ---------------------------------------+--------------------------------
>> ------
>> I set the clouds in motion - turn up   | Frank Warmerdam,
>> warmerdam at pobox.com
>> light and sound - activate the windows | http://pobox.com/~warmerdam
>> and watch the world go round - Rush    | Geospatial Programmer for Rent
>>
>> _______________________________________________
>>
>




More information about the MapServer-users mailing list