[mapserver-users] adding a palette to a greytiff

michele pierri pierm4ci at yahoo.it
Wed Jul 7 08:44:30 PDT 2010


Hi,
I have this image: http://www.2shared.com/photo/Qu2cyRc2/prova.html
I would visualize it with a colour scaled palette.
I have write this file.map, but I receive only blank page.

MAP
    NAME    "prova"
    CONFIG  "PROJ_LIB" "/usr/share/proj/"
    STATUS ON
    SHAPEPATH "./"
    SIZE 494 531
    PROJECTION 
        "init=epsg:4326"
    END
        EXTENT -154 -57 26 33
    DEBUG 5
    
    WEB    
        IMAGEPATH "/var/www/sviluppo//workshop-5.4/tmp/"
        IMAGEURL "/sviluppo/tmp/"
    END

    LAYER
          NAME "tif"
        DATA "prova.tif"
        STATUS ON
        TYPE RASTER
        OFFSITE 0 0 0
        CLASSITEM "[pixel]"

        CLASS
            EXPRESSION ([pixel] >= 0 AND [pixel] < 10 )
            STYLE
                COLOR 0 255 255
            END
        END

        CLASS
            EXPRESSION ([pixel] >= 10 AND [pixel] < 40)
            STYLE
                COLOR 0 255 0
            END
        END

        CLASS
            EXPRESSION ( [pixel] >= 40 AND [pixel] < 80)
            STYLE  
                COLOR 255 255 0
            END
        END

        CLASS
            EXPRESSION ([pixel] >= 80 AND [pixel] < 120)
            STYLE
                COLOR 255 127 0
            END
        END

        CLASS
            EXPRESSION ([pixel] >= 120 AND [pixel] < 150)
            STYLE
                COLOR 255 0 0
              END
        END

        CLASS
            EXPRESSION ([pixel] >= 150 AND [pixel] < 200)
            STYLE
                COLOR 255 127 255
            END
        END

        CLASS
            EXPRESSION ([pixel] >= 200 AND [pixel]<40)
            STYLE
                COLOR 0 0 0
              END
        END
    END
END


Can anyone help me please? I am sorry but I am a beginner.
Thanks in advance,
Michele.




      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100707/1463d5ae/attachment.htm>


More information about the MapServer-users mailing list