[Mapserver-users] Raster Legend Icons etc.

Jason M. Nielsen jnielsen at aero-graphics.com
Mon Jan 19 06:53:26 PST 2004


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.
> >
> > -------------------------------------------------
> > This mail sent through IMP: http://horde.org/imp/
> > _______________________________________________
> > Mapserver-users mailing list
> > Mapserver-users at lists.gis.umn.edu
> > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> >
> 

loadStyle(): Unknown identifier. Parsing error near (KEYIMAGE):(line 121) 


-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/



More information about the MapServer-users mailing list