<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><meta http-equiv="content-type" content="text/html; charset=utf-8"><div>Hi, thanks for help me.</div><div><br></div>1. Is your file indeed georeferenced?<br>Yes it is georeferenced.<div><br></div><div>2. The style definitions look good, the only thing I see missing are<br>the class names. Not sure if that matters if you don't display a<br>legend.</div><div>How I have to modify the .map file for add this information? Can you write me an example?</div><div><br></div><div>3. Have you got the map file working without the class definitions?<br>I.E get a grayscale map?<br></div><div>If I write this file map I have always blank image:</div><div><div>MAP</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>NAME<span class="Apple-tab-span" style="white-space:pre"> </span>"prova"</div><div><span class="Apple-tab-span" style="white-space:pre">
</span>CONFIG "PROJ_LIB" "/usr/share/proj/"</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>STATUS ON</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>SHAPEPATH "./"</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>SIZE 494 531</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>PROJECTION </div><div><span class="Apple-tab-span" style="white-space:pre"> </span>"init=epsg:4326"</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>END</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>EXTENT -154 -57 26 33</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>DEBUG 5</div><div><span class="Apple-tab-span" style="white-space:pre"> </span></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>WEB</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>IMAGEPATH
"/var/www/sviluppo//workshop-5.4/tmp/"</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>IMAGEURL "/sviluppo/tmp/"</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>END</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>LAYER</div><div> <span class="Apple-tab-span" style="white-space:pre"> </span>NAME "tif"</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>DATA "prova.tif"</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>STATUS ON</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>TYPE RASTER</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>OFFSITE 0 0 0</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>END</div><div>END</div></div><div><br></div><div>4. Have you attempted to discover what is wrong by looking at the<br>mapserver log? You will
need to enable logging in your map file.</div><div>How I can enable it?</div><div><br></div><div><br></div><div>I have upload the image on another upload web service:</div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div><a href="http://www.megaupload.com/?d=K8SY5IP3">http://www.megaupload.com/?d=K8SY5IP3</a></div><div><a href="http://www.megaupload.com/?d=K8SY5IP3"></a>you can try this if you want.</div><div>Or can you try with a your image?</div><div><br></div><div>Thanks again.</div><div>Michele.</div><div><br>--- <b>Mer 7/7/10, Alexander Petkov <i><greenkov@gmail.com></i></b> ha scritto:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>Da: Alexander Petkov <greenkov@gmail.com><br>Oggetto: Re: [mapserver-users] adding a palette to a greytiff<br>A: "michele pierri" <pierm4ci@yahoo.it><br>Cc: mapserver-users@lists.osgeo.org<br>Data: Mercoledì 7 luglio
2010, 21:29<br><br><div class="plainMail">For some reason I can;t get to the file you posted, so I have a few question.<br><br>1. Is your file indeed georeferenced?<br>2. The style definitions look good, the only thing I see missing are<br>the class names. Not sure if that matters if you don't display a<br>legend.<br>3. Have you got the map file working without the class definitions?<br>I.E get a grayscale map?<br>4. Have you attempted to discover what is wrong by looking at the<br>mapserver log? You will need to enable logging in your map file.<br><br>Alex<br><br>On Wed, Jul 7, 2010 at 9:44 AM, michele pierri <<a ymailto="mailto:pierm4ci@yahoo.it" href="/mc/compose?to=pierm4ci@yahoo.it">pierm4ci@yahoo.it</a>> wrote:<br>><br>> Hi,<br>> I have this image: <a href="http://www.2shared.com/photo/Qu2cyRc2/prova.html" target="_blank">http://www.2shared.com/photo/Qu2cyRc2/prova.html</a><br>> I would visualize it with a colour scaled
palette.<br>> I have write this file.map, but I receive only blank page.<br>><br>> MAP<br>> NAME "prova"<br>> CONFIG "PROJ_LIB" "/usr/share/proj/"<br>> STATUS ON<br>> SHAPEPATH "./"<br>> SIZE 494 531<br>> PROJECTION<br>> "init=epsg:4326"<br>> END<br>> EXTENT -154 -57 26 33<br>> DEBUG 5<br>><br>> WEB<br>> IMAGEPATH "/var/www/sviluppo//workshop-5.4/tmp/"<br>> IMAGEURL "/sviluppo/tmp/"<br>> END<br>><br>> LAYER<br>> NAME
"tif"<br>> DATA "prova.tif"<br>> STATUS ON<br>> TYPE RASTER<br>> OFFSITE 0 0 0<br>> CLASSITEM "[pixel]"<br>><br>> CLASS<br>> EXPRESSION ([pixel] >= 0 AND [pixel] < 10 )<br>> STYLE<br>> COLOR 0 255 255<br>> END<br>> END<br>><br>> CLASS<br>> EXPRESSION ([pixel] >= 10 AND [pixel] < 40)<br>>
STYLE<br>> COLOR 0 255 0<br>> END<br>> END<br>><br>> CLASS<br>> EXPRESSION ( [pixel] >= 40 AND [pixel] < 80)<br>> STYLE<br>> COLOR 255 255 0<br>> END<br>> END<br>><br>> CLASS<br>> EXPRESSION ([pixel] >= 80 AND [pixel] < 120)<br>> STYLE<br>>
COLOR 255 127 0<br>> END<br>> END<br>><br>> CLASS<br>> EXPRESSION ([pixel] >= 120 AND [pixel] < 150)<br>> STYLE<br>> COLOR 255 0 0<br>> END<br>> END<br>><br>> CLASS<br>> EXPRESSION ([pixel] >= 150 AND [pixel] < 200)<br>> STYLE<br>> COLOR 255 127 255<br>>
END<br>> END<br>><br>> CLASS<br>> EXPRESSION ([pixel] >= 200 AND [pixel]<40)<br>> STYLE<br>> COLOR 0 0 0<br>> END<br>> END<br>> END<br>> END<br>><br>><br>> Can anyone help me please? I am sorry but I am a beginner.<br>> Thanks in advance,<br>> Michele.<br>><br>><br>><br>> _______________________________________________<br>> mapserver-users mailing list<br>> <a ymailto="mailto:mapserver-users@lists.osgeo.org" href="/mc/compose?to=mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>> <a
href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>><br></div></blockquote></div></td></tr></table><br>