[mapserver-users] .img raster color expression
John Morgan
jdmorgan at unca.edu
Sat Jan 21 06:05:19 PST 2012
Hola JC,
I have discovered that your suggest did work. Thanks. However, it wasn't
obvious because my data wasn't showing until I zoomed in far enough into
the map. The front-end application, which is a FLEX viewer, wasn't showing
the colored raster pixels until zoom level 4-5 click of zooming in on the
map. I don't know if this is something I can fix at the .map level. The
projection currently defined for this layer is:
PROJECTION
"proj=aea"
"lat_1=29.5"
"lat_2=45.5"
"lat_0=23"
"lon_0=-96"
"x_0=0"
"y_0=0"
"ellps=GRS80"
"datum=NAD83"
"units=m"
"no_defs"
END
Cheers,
Derek
On Fri, Jan 20, 2012 at 1:01 PM, Fuchs Juan Carlos <jfuch at indec.mecon.gov.ar
> wrote:
> Hi Derek
>
> Try with this for each class you want (just change the expression value and
> the color. Be carefull with upper/lower case ;)
>
> CLASSITEM 'FORESTYPE '
> CLASS #attribute name, without # gives the label name for the reference
> EXPRESSION > 0
> COLOR 214 252 252
> OUTLINECOLOR 0 0 0
> END
>
> Cheers
> JC
> -----Mensaje original-----
> De: jdmorgan [mailto:jdmorgan at unca.edu]
> Enviado el: viernes, 20 de enero de 2012 01:49 p.m.
> Para: mapserver-users at lists.osgeo.org
> Asunto: [mapserver-users] .img raster color expression
>
>
> Hello,
> I originally posted this is dev, but I think it might be more inline with
> the user forum.
> I am working with a .img raster file. It has It has attribute called
> FORESTYPE as I can see it when I open it in a desktop GIS. I would like
> to key off of this value to define specific colors in a .map file.
> However, I cannot seem to get this working. Here is what I have:
>
> CLASS
> NAME "test"
> EXPRESSION ([FORESTYPE]> 0)
> STYLE
> COLOR 255 255 255
> END
> END
>
> Any help would be greatly appreciated.
>
> Thanks,
>
> --
> Derek @ NEMAC
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120121/924c0b99/attachment.htm>
More information about the MapServer-users
mailing list