[mapserver-users] Unix and RGB - GRID in mapfile
warmerdam at pobox.com
Thu Mar 18 12:55:59 EDT 2010
On Thu, Mar 18, 2010 at 6:56 AM, Simone Frigerio
<simone.frigerio at univie.ac.at> wrote:
> I need to manage huge file raster inside mapfile. Different kind of
> compression are available and I'm trying different way. Two questions on
> 1) ECW andJPEG200 format are supported if I use win environment.
> Transferring on Unix environment, probably a GDAL new library has to be
> written, because actually it doesn't work. Is it true?
ECW and JPEG2000 support is available on Windows and Linux.
However, they are optional components of the library, and depending
on where you are getting your binaries they may not be included. If
not you may need to rebuild yourself to include them and they do
depend on external libraries.
You can use "gdalinfo --format ecw" to check for a specific
driver or "gdalinfo --formats" to see a list of all supported
drivers in your build.
> 2) trying with GRID format should be interesting, especially for 1 band
> raster like DTM or DEM:
> ex.: LAYER
> NAME "grid"
> TYPE RASTER
> DATA "GRID/1956gridc1/w001001.adf"
> At the end no problem, it's correctly visualize. But I have a lot of RGB
> raster to manage. So I if I convert in grid the result in "data" folder is:
> Inside each folder I find w001001.adf as request to visualize. I use it and
> it works perfectly, but only with one band. How can I manage 3 bands in this
> way, to visualize correctly an RGB raster?
I am not aware of direct support for treating multiple grids
as a single dataset. One workaround is to create a virtual
dataset referencing each of these files as a band. If you
want to pursue that you could review the "virtual file
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