[mapserver-dev] RE: MapServer and MultiBand-IMG
steve.lime at dnr.state.mn.us
Fri Nov 8 15:48:01 EST 2002
Personally it seems like a bad idea to use the metadata block as you
suggest. I realize it has an ad hoc nature already. What about defining
a PROCESSING block/parameter where arbitrary, driver specific commands
could be passed?
BTW I'm fine with the BANDS changes...
Data & Applications Manager
500 Lafayette Road
St. Paul, MN 55155
>>> Frank Warmerdam <warmerdam at pobox.com> 11/07/02 08:56AM >>>
Steve Lime wrote:
> Hi Stepan/Oliver: This will be a great addition but I'd like to run
> by Frank Warmerdam first since he's our raster guru and I don't know
> he had something else in mind (or already working in 3.7). I've cc'd
> developers list for feedback.
> Stephen Lime
> Data & Applications Manager
> Minnesota DNR
> 500 Lafayette Road
> St. Paul, MN 55155
>>>>"Stepan Kafka" <stepan.kafka at centrum.cz> 11/05/02 16:56 PM >>>
> Hi Oliver,
> I am sending you my changes in Mapserver source code to enable
> raster bands. Only GDAL formats are supported. Originaly I tried it
> dev. code, I haven't try actual Mapserver version yet!
> In map file the bands are supproted with LAYER COLOR parameter:
> NAME mylyr
> DATA landsat.tif
> COLOR 7 4 2 # the R G B channels
> It would be better to use e.g. BANDS parameter, but I don't know, how
> introduce it.
I like the change, but I would like to go a little further:
o I would like to introduce a BANDS parameter instead of using
o I would like it to support 1, 2, 3 or 4 bands which would be
1: single greyscale or paletted band.
2: as above plus an alpha band.
If there is no problem with this I will incorporate it into 3.7 soon.
In the meantime using the suggested patches in local versions should
Actually, when I think about it, does anyone thing that this sort of
should be done through layer metadata? There are other aspects of
control, like the scaling used for >8bit bands that I would like to
but doing it all via specific keywords seems cumbersome. I had been
of doing it via layer metadata but I wonder if that is an abuse/misuse
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
More information about the mapserver-dev