[Mapserver-users] Raster Legend Icons etc.
Emilio Mayorga
emiliom at u.washington.edu
Mon Jan 19 10:54:17 PST 2004
I believe this is a bug or limitation in Mapserver. I sent a message to
the list about the exact same issue a month ago. This is the last
message from the thread:
http://lists.gis.umn.edu/pipermail/mapserver-users/2003-December/009077.html
I think I ended up filing a bug in bugzilla. I just tried searching
bugzilla for bugs filed by me, but I'm not too familiar with bugzilla,
so I wasn't successful. Oh well.
I gave up and ended up converting my 24big image to an indexed 8bit image.
Good luck!
-Emilio
Message: 15
Date: Mon, 19 Jan 2004 07:53:26 -0700
From: "Jason M. Nielsen" <jnielsen at aero-graphics.com>
To: Pericles Nacionales <nacional at cbs.umn.edu>
Cc: Mapserver List <mapserver-users at lists.gis.umn.edu>
Subject: Re: [Mapserver-users] Raster Legend Icons etc.
Quoting Pericles Nacionales <nacional at cbs.umn.edu>:
>> Try this:
>>
>> Replace your CLASS object:
>> CLASS
>> NAME 'Utah County Top Raster'
>> SYMBOL 'symbols/raster01.png'
>> END
>>
>> with this:
>> CLASS
>> NAME 'Utah County Top Raster'
>> STYLE
>> KEYIMAGE 'symbols/raster01.png'
>> END
>> END
>>
>> Good luck!
>>
>> -Perry N.
>>
>>
>> On Fri, 16 Jan 2004, Jason M. Nielsen wrote:
>>
>
>>> > Im trying to create a legend icon for when my raster layers are on.
>>> >
>>> > LAYER
>>> > NAME top10c0
>>> > TYPE raster
>>> > STATUS OFF
>>> > CLASS
>>> > NAME 'Utah County Top Raster'
>>> > SYMBOL 'symbols/raster01.png'
>>> > END
>>> > DATA "top10c0.jpg"
>>> > OFFSITE 255 255 255
>>> > PROCESSING "BANDS=1,2,3"
>>> > END
>>> >
>>> > This will work only if I comment out the PROCESSING line. In
which case
>> it
>>> > prints the name and a white icon and my image layer is in black
and white.
>
>> If I
>>> > do not I get the following error:
>>> > msDrawMap(): Image handling error. Failed to draw layer named
'top10c0'.
>>> > drawGDAL(): Unable to access file. Attempt to classify 24bit
image, this
>
>> is
>
>>> > unsupported.
>>> >
>>> > Now if I do something like:
>>> >
>>> > LAYER
>>> > NAME tiletop10c0
>>> > STATUS OFF
>>> > TILEINDEX top10c0.shp
>>> > TILEITEM Location
>>> > TYPE RASTER
>>> > CLASS
>>> > NAME 'Utah County Top Raster'
>>> > SYMBOL 'symbols/raster01.png'
>>> > END
>>> > END
>>> >
>>> > The icon shows up perfectly etc. But I also dont have an image
drawn. Im
>>> > assuming I dont have the tiling deal setup properly.
>>> >
>>> > So basically the question is how do I get this icon to print with
the text>> in
>
>>> > the legend but still have my 24bit color raster layer display?
>>> >
>>> > Thanks.
loadStyle(): Unknown identifier. Parsing error near (KEYIMAGE):(line 121)
More information about the MapServer-users
mailing list