The first thing that I see is that the EXTENT needs to be corrected in your map file.<br><br><br><div class="gmail_quote">On Wed, Jul 7, 2010 at 2:47 PM, michele pierri <span dir="ltr"><<a href="mailto:pierm4ci@yahoo.it">pierm4ci@yahoo.it</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit;" valign="top">
<div>This is what I request with a browser.</div><a href="http://localhost/cgi-bin/mapserv?map=/var/www/sviluppo/workshop-5.4/prova.map&mode=map" target="_blank">http://localhost/cgi-bin/mapserv?map=/var/www/sviluppo/workshop-5.4/prova.map&mode=map</a><div>
<br></div><div>Thanks again,</div><div><div class="im">Michele.<br><br>--- <b>Mer 7/7/10, Alexander Petkov <i><<a href="mailto:greenkov@gmail.com" target="_blank">greenkov@gmail.com</a>></i></b> ha scritto:<br></div>
<blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><div class="im"><br>Da: Alexander Petkov <<a href="mailto:greenkov@gmail.com" target="_blank">greenkov@gmail.com</a>><br>
Oggetto: Re: [mapserver-users] adding a palette to a greytiff<br>A: "michele pierri" <<a href="mailto:pierm4ci@yahoo.it" target="_blank">pierm4ci@yahoo.it</a>><br>Cc: <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
</div>Data: Mercoledì 7 luglio 2010, 22:28<div><div></div><div class="h5"><br><br><div>Can you also include a sample request that gives you a blank map?<br><br><div class="gmail_quote">On Wed, Jul 7, 2010 at 1:57 PM, michele pierri <span dir="ltr"><<a rel="nofollow" href="http://mc/compose?to=pierm4ci@yahoo.it" target="_blank">pierm4ci@yahoo.it</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit;" valign="top">
<div><div>Hi, thanks for help me.</div><div><br></div></div><div>1. Is your file indeed georeferenced?<br></div>Yes it is georeferenced.<div><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><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><div><div>3. Have you got the map file working without the class definitions?<br>I.E get a grayscale map?<br></div></div><div><div>If I write this file map I have always blank image:</div></div>
<div><div><div>MAP</div><div><span> </span>NAME<span> </span>"prova"</div><div><span>
</span>CONFIG "PROJ_LIB" "/usr/share/proj/"</div><div><span> </span>STATUS ON</div><div><span> </span>SHAPEPATH "./"</div><div><span> </span>SIZE 494 531</div><div>
<span> </span>PROJECTION </div><div><span> </span>"init=epsg:4326"</div><div><span> </span>END</div><div><span> </span>EXTENT -154 -57 26 33</div><div><span> </span>DEBUG 5</div>
<div><span> </span></div><div><span> </span>WEB</div><div><span> </span>IMAGEPATH
"/var/www/sviluppo//workshop-5.4/tmp/"</div><div><span> </span>IMAGEURL "/sviluppo/tmp/"</div><div><span> </span>END</div><div><br></div><div><span> </span>LAYER</div><div>
<span> </span>NAME "tif"</div><div><span> </span>DATA "prova.tif"</div><div><span> </span>STATUS ON</div><div><span> </span>TYPE RASTER</div><div><span> </span>OFFSITE 0 0 0</div>
<div><br></div></div><div><span> </span>END</div><div>END</div></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><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><div><a rel="nofollow" href="http://www.megaupload.com/?d=K8SY5IP3" target="_blank">http://www.megaupload.com/?d=K8SY5IP3</a></div>
<div><a rel="nofollow" href="http://www.megaupload.com/?d=K8SY5IP3" target="_blank"></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><div>
<div><br>--- <b>Mer 7/7/10, Alexander Petkov <i><<a rel="nofollow" href="http://mc/compose?to=greenkov@gmail.com" target="_blank">greenkov@gmail.com</a>></i></b> ha scritto:<br></div><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">
<div><br>Da: Alexander Petkov <<a rel="nofollow" href="http://mc/compose?to=greenkov@gmail.com" target="_blank">greenkov@gmail.com</a>><br>Oggetto: Re: [mapserver-users] adding a palette to a greytiff<br>A: "michele pierri" <<a rel="nofollow" href="http://mc/compose?to=pierm4ci@yahoo.it" target="_blank">pierm4ci@yahoo.it</a>><br>
Cc: <a rel="nofollow" href="http://mc/compose?to=mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>Data: Mercoledì 7 luglio
2010, 21:29<br><br></div><div><div></div><div><div>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 rel="nofollow" href="http://mc/compose?to=pierm4ci@yahoo.it" target="_blank">pierm4ci@yahoo.it</a>> wrote:<br>
><br>> Hi,<br>> I have this image: <a rel="nofollow" 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 rel="nofollow" href="http://mc/compose?to=mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>> <a rel="nofollow" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
><br></div></div></div></blockquote></div></td></tr></tbody></table><br>
</blockquote></div><br>
</div></div></div></blockquote></div></td></tr></tbody></table><br>
</blockquote></div><br>