Problems with ArcInfo Binary grid...

Frank Warmerdam warmerdam at POBOX.COM
Wed Oct 12 09:31:48 EDT 2005


On 10/12/05, Carlo Calvino <carlo.calvino at email.it> wrote:
> On Tue, 11 Oct 2005 13:53:25 -0400, Frank Warmerdam <warmerdam at POBOX.COM>
> wrote:
>
> >Carlo,
> >
> >What does the "gdalinfo" report of the coverage look like?
> >
> >Best regards,
>
> I run "gdalinfo w001001.adf" and this was the result:
> Driver: AIG/Arc/Info Binary Grid
> Size is 136, 191
> Coordinate System is `'
> Origin = (2769559.195310,4504209.334252)
> Pixel Size = (59.99393750,-59.99393750)
> Corner Coordinates:
> Upper Left  ( 2769559.195, 4504209.334)
> Lower Left  ( 2769559.195, 4492750.492)
> Upper Right ( 2777718.371, 4504209.334)
> Lower Right ( 2777718.371, 4492750.492)
> Center      ( 2773638.783, 4498479.913)
> Band 1 Block=256x4 Type=Int16, ColorInterp=Palette
>   Min=-70.000 Max=3435.000
>   NoData Value=-32768
>   Color Table (RGB with 3436 entries)
>     0: 153,25,0,255
>     1: 153,25,0,255
>     2: 153,25,0,255
>     3: 153,25,0,255
>     4: 153,25,0,255
>     5: 153,25,0,255
>     6: 153,25,0,255
>     7: 153,25,0,255
>     8: 153,25,0,255
>     9: 153,25,0,255
>    10: 153,25,0,255
>    11: 153,25,0,255
>    12: 156,29,0,255
>    13: 156,29,0,255
>    ...
>   3432: 5,5,153,255
>   3433: 5,5,153,255
>   3434: 5,5,153,255
>   3435: 5,5,153,255

Carlo,

The problem here is that MapServer does not support
color tables with more than 256 entries currently.  It will
scale the values (or clip) them to 8bit and then apply the
first 256 color table entries.

I would suggest you create your own CLASSes manually
in the mapfile instead of trying to use the .clr table.

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