Display Arc/INFO Binary Grid does not work correctly?

Wolfgang Qual Wolfgang.Qual at MUENCHEN.DE
Wed May 25 08:29:02 EDT 2005


Hello Tyler,
I was able to assign color definitions to the mapfile by adding this to
the mapfile
"CLASSITEM "[pixel]"
                CLASS
                        EXPRESSION ([pixel]< 1700)
                        COLOR 215 15 215
                END"

However, I wonder, if this is the best way to do it. My problem is that
I do have color definitions in ArcView (avl-legend), but I do not know
how to put this information into the mapfile - is there a way to do it
(something like a color lookup table)?

Thanks again.

Wolfgang

--

Tyler Mitchell schrieb:

> Hi Wolfgang,
> Do you need to keep the data in GRID format?
> I have had coloured tiff images that 'lost' the colours.  Someone introduced me to the pct2rgb.py Python script (part of FWTools) that solved the problem, but I was converting TIFF->TIFF and don't know how (or if) this could work with GRIDs.  It looks to me like the colour info. may be lost already though, since no colours are listed from gdalinfo.  Hmm...I'm beyond my expertise here.
>
> Hope that might help.
> Tyler
>
> ----- Original Message -----
> From: Wolfgang Qual <Wolfgang.Qual at MUENCHEN.DE>
> Date: Tuesday, May 24, 2005 8:54 am
> Subject: [UMN_MAPSERVER-USERS] Display Arc/INFO Binary Grid does not work correctly?
>
>
>>Hello again, list.
>>I just created another map, just to test whether I am able to put
>>Arc/INFO GRIDs on the mapserver. However, all I get is a black picture
>>(colour information seems to be lost)
>>-->
>>http://dream.lrrl.arch.tu-muenchen.de/cgi-
>>bin/M3.cgi?&map=rastertest.dfo.map
>>The mapserver is compiled with gdal-support, gdalinfo on the
>>rasterfileproduces this information:
>>
>>wqual at dream:/data/fis/klima/therm_98/grid> gdalinfo ab82s_grd/
>>Driver: AIG/Arc/Info Binary Grid
>>Size is 6080, 5520
>>Coordinate System is `'
>>Origin = (4449996.875000,5352003.125000)
>>Pixel Size = (6.25000000,-6.25000000)
>>Corner Coordinates:
>>Upper Left  ( 4449996.875, 5352003.125)
>>Lower Left  ( 4449996.875, 5317503.125)
>>Upper Right ( 4487996.875, 5352003.125)
>>Lower Right ( 4487996.875, 5317503.125)
>>Center      ( 4468996.875, 5334753.125)
>>Band 1 Block=256x4 Type=Byte, ColorInterp=Undefined
>>  Min=1.000 Max=30.000
>>  NoData Value=255
>>
>>Is there a way to get the colour-table information into the mapfile?
>>What is the best way to integrate GRID-files into mapserver-maps?
>>Do I
>>need the "info" folder (created by ArcView) on the webserver for
>>displaying the rasterfile correctly?
>>
>>Thanks again.
>>
>>Wolfgang
>>
>>--
>>Wolfgang Qual
>>Landeshauptstadt München
>>Referat für Gesundheit und Umwelt
>>RGU-UW 11
>>Sg. 1 Gesundheits- und Umweltberichterstattung,
>>Energie und Klimaschutz
>>Bayerstr. 28a, 80335 München
>>Tel.: +49 (0)89 233-477 17
>>Fax.: +49 (0)89 233-477 05
>>E-Mail: wolfgang.qual at muenchen.de
>>
>
>

--
Wolfgang Qual
Landeshauptstadt München
Referat für Gesundheit und Umwelt
RGU-UW 11
Sg. 1 Gesundheits- und Umweltberichterstattung,
Energie und Klimaschutz
Bayerstr. 28a, 80335 München
Tel.: +49 (0)89 233-477 17
Fax.: +49 (0)89 233-477 05
E-Mail: wolfgang.qual at muenchen.de



More information about the mapserver-users mailing list