For some reason I can;t get to the file you posted, so I have a few question.
1. Is your file indeed georeferenced? 2. The style definitions look good, the only thing I see missing are the class names. Not sure if that matters if you don't display a legend. 3. Have you got the map file working without the class definitions? I.E get a grayscale map? 4. Have you attempted to discover what is wrong by looking at the mapserver log? You will need to enable logging in your map file. Alex On Wed, Jul 7, 2010 at 9:44 AM, michele pierri <[email protected]> wrote: > > 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. > > > > _______________________________________________ > mapserver-users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
