<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Ok,<div>Thank you,</div><div>Michele.<br><br>--- <b>Gio 8/7/10, Lime, Steve D (DNR) <i><Steve.Lime@state.mn.us></i></b> ha scritto:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>Da: Lime, Steve D (DNR) <Steve.Lime@state.mn.us><br>Oggetto: RE: [mapserver-users] adding a palette to a greytiff<br>A: "michele pierri" <pierm4ci@yahoo.it>, "Alexander Petkov" <greenkov@gmail.com>, "mapserver-users@lists.osgeo.org" <mapserver-users@lists.osgeo.org><br>Data: Giovedì 8 luglio 2010, 03:45<br><br><div class="plainMail">I guess I'd recommend moving to the OL website and looking at their examples. They've done a WONDERFUL job of providing examples that<br>cover most typical (and a number of atypical) use cases- including basic
 MapServer.<br><br>Steve<br>________________________________________<br>From: <a ymailto="mailto:mapserver-users-bounces@lists.osgeo.org" href="/mc/compose?to=mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a> [<a ymailto="mailto:mapserver-users-bounces@lists.osgeo.org" href="/mc/compose?to=mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>] On Behalf Of michele pierri [<a ymailto="mailto:pierm4ci@yahoo.it" href="/mc/compose?to=pierm4ci@yahoo.it">pierm4ci@yahoo.it</a>]<br>Sent: Wednesday, July 07, 2010 5:02 PM<br>To: Lime, Steve D (DNR); Alexander Petkov; <a ymailto="mailto:mapserver-users@lists.osgeo.org" href="/mc/compose?to=mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>Subject: RE: [mapserver-users] adding a palette to a greytiff<br><br>Thank you!<br>Now it works. Here there is my output example results: <a
 href="http://img413.imageshack.us/img413/7964/mapserv.gif" target="_blank">http://img413.imageshack.us/img413/7964/mapserv.gif</a><br><br>Now can I put this image on a background map? For example on openlayers map?<br><br>Thanks again,<br>Michele.<br><br><br>--- Mer 7/7/10, Lime, Steve D (DNR) <<a ymailto="mailto:Steve.Lime@state.mn.us" href="/mc/compose?to=Steve.Lime@state.mn.us">Steve.Lime@state.mn.us</a>> ha scritto:<br><br>Da: Lime, Steve D (DNR) <<a ymailto="mailto:Steve.Lime@state.mn.us" href="/mc/compose?to=Steve.Lime@state.mn.us">Steve.Lime@state.mn.us</a>><br>Oggetto: RE: [mapserver-users] adding a palette to a greytiff<br>A: "michele pierri" <<a ymailto="mailto:pierm4ci@yahoo.it" href="/mc/compose?to=pierm4ci@yahoo.it">pierm4ci@yahoo.it</a>>, "Alexander Petkov" <<a ymailto="mailto:greenkov@gmail.com" href="/mc/compose?to=greenkov@gmail.com">greenkov@gmail.com</a>>, "<a ymailto="mailto:mapserver-users@lists.osgeo.org"
 href="/mc/compose?to=mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>" <<a ymailto="mailto:mapserver-users@lists.osgeo.org" href="/mc/compose?to=mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>><br>Data: Mercoledì 7 luglio 2010, 23:41<br><br>The layer needs to be turned on. By default with the CGI all layers are turned off unless they are "STATUS DEFAULT". To fix, either:<br><br>  1) set the layer "tif" status to DEFAULT or<br>  2) change your call to the CGI to something like:  <a href="http://localhost/cgi-bin/mapserv?map=/var/www/sviluppo/workshop-5.4/prova.map&mode=map&layer=tif" target="_blank">http://localhost/cgi-bin/mapserv?map=/var/www/sviluppo/workshop-5.4/prova.map&mode=map&layer=tif</a><br><br>Steve<br><br>________________________________________<br>From: <a ymailto="mailto:mapserver-users-bounces@lists.osgeo.org"
 href="/mc/compose?to=mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a></mc/compose?to=<a ymailto="mailto:mapserver-users-bounces@lists.osgeo.org" href="/mc/compose?to=mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>> [<a ymailto="mailto:mapserver-users-bounces@lists.osgeo.org" href="/mc/compose?to=mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a></mc/compose?to=<a ymailto="mailto:mapserver-users-bounces@lists.osgeo.org" href="/mc/compose?to=mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>>] On Behalf Of michele pierri [<a ymailto="mailto:pierm4ci@yahoo.it" href="/mc/compose?to=pierm4ci@yahoo.it">pierm4ci@yahoo.it</a></mc/compose?to=<a ymailto="mailto:pierm4ci@yahoo.it" href="/mc/compose?to=pierm4ci@yahoo.it">pierm4ci@yahoo.it</a>>]<br>Sent: Wednesday, July 07, 2010 4:20 PM<br>To: Alexander
 Petkov; <a ymailto="mailto:mapserver-users@lists.osgeo.org" href="/mc/compose?to=mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a></mc/compose?to=<a ymailto="mailto:mapserver-users@lists.osgeo.org" href="/mc/compose?to=mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>><br>Subject: Re: [mapserver-users] adding a palette to a greytiff<br><br>I have added this line in .map file:<br>CONFIG  "MS_ERRORFILE" "/tmp/mapserver.log"<br><br>And this is the output:<br><br>[Wed Jul  7 23:18:21 2010].797918 CGI Request 1 on process 4712<br>[Wed Jul  7 23:18:21 2010].798507 msDrawMap(): Drawing Label Cache, 0.000s<br>[Wed Jul  7 23:18:21 2010].798536 msDrawMap() total time: 0.000s<br>[Wed Jul  7 23:18:21 2010].805594 msSaveImage() total time: 0.007s<br>[Wed Jul  7 23:18:21 2010].805715 mapserv request processing time (loadmap not incl.): 0.008s<br>[Wed Jul  7 23:18:21 2010].805731
 msFreeMap(): freeing map at 0x8dd72a0.<br><br>May be useful?<br>Thanks.<br>--- Mer 7/7/10, michele pierri <<a ymailto="mailto:pierm4ci@yahoo.it" href="/mc/compose?to=pierm4ci@yahoo.it">pierm4ci@yahoo.it</a></mc/compose?to=<a ymailto="mailto:pierm4ci@yahoo.it" href="/mc/compose?to=pierm4ci@yahoo.it">pierm4ci@yahoo.it</a>>> ha scritto:<br><br>Da: michele pierri <<a ymailto="mailto:pierm4ci@yahoo.it" href="/mc/compose?to=pierm4ci@yahoo.it">pierm4ci@yahoo.it</a></mc/compose?to=<a ymailto="mailto:pierm4ci@yahoo.it" href="/mc/compose?to=pierm4ci@yahoo.it">pierm4ci@yahoo.it</a>>><br>Oggetto: Re: [mapserver-users] adding a palette to a greytiff<br>A: "Alexander Petkov" <<a ymailto="mailto:greenkov@gmail.com" href="/mc/compose?to=greenkov@gmail.com">greenkov@gmail.com</a></mc/compose?to=<a ymailto="mailto:greenkov@gmail.com" href="/mc/compose?to=greenkov@gmail.com">greenkov@gmail.com</a>>>, <a
 ymailto="mailto:mapserver-users@lists.osgeo.org" href="/mc/compose?to=mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a></mc/compose?to=<a ymailto="mailto:mapserver-users@lists.osgeo.org" href="/mc/compose?to=mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>><br>Data: Mercoledì 7 luglio 2010, 22:58<br><br>How I have to set EXTENT parameter? What are the correct value?<br>Can you take me an example?<br><br>Thanks a lot.<br>Michele.<br><br>--- Mer 7/7/10, Alexander Petkov <<a ymailto="mailto:greenkov@gmail.com" href="/mc/compose?to=greenkov@gmail.com">greenkov@gmail.com</a></mc/compose?to=<a ymailto="mailto:greenkov@gmail.com" href="/mc/compose?to=greenkov@gmail.com">greenkov@gmail.com</a>>> ha scritto:<br><br>Da: Alexander Petkov <<a ymailto="mailto:greenkov@gmail.com" href="/mc/compose?to=greenkov@gmail.com">greenkov@gmail.com</a></mc/compose?to=<a ymailto="mailto:greenkov@gmail.com"
 href="/mc/compose?to=greenkov@gmail.com">greenkov@gmail.com</a>>><br>Oggetto: Re: [mapserver-users] adding a palette to a greytiff<br>A: "michele pierri" <<a ymailto="mailto:pierm4ci@yahoo.it" href="/mc/compose?to=pierm4ci@yahoo.it">pierm4ci@yahoo.it</a></mc/compose?to=<a ymailto="mailto:pierm4ci@yahoo.it" href="/mc/compose?to=pierm4ci@yahoo.it">pierm4ci@yahoo.it</a>>><br>Cc: <a ymailto="mailto:mapserver-users@lists.osgeo.org" href="/mc/compose?to=mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a></mc/compose?to=<a ymailto="mailto:mapserver-users@lists.osgeo.org" href="/mc/compose?to=mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>><br>Data: Mercoledì 7 luglio 2010, 22:52<br><br>The first thing that I see is that the EXTENT needs to be corrected in your map file.<br><br><br>On Wed, Jul 7, 2010 at 2:47 PM, michele pierri <<a ymailto="mailto:pierm4ci@yahoo.it"
 href="/mc/compose?to=pierm4ci@yahoo.it">pierm4ci@yahoo.it</a></mc/compose?to=<a ymailto="mailto:pierm4ci@yahoo.it" href="/mc/compose?to=pierm4ci@yahoo.it">pierm4ci@yahoo.it</a>>> wrote:<br>This is what I request with a browser.<br><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><br><br>Thanks again,<br>Michele.<br><br>--- Mer 7/7/10, Alexander Petkov <<a ymailto="mailto:greenkov@gmail.com" href="/mc/compose?to=greenkov@gmail.com">greenkov@gmail.com</a></mc/compose?to=<a ymailto="mailto:greenkov@gmail.com" href="/mc/compose?to=greenkov@gmail.com">greenkov@gmail.com</a>>> ha scritto:<br><br>Da: Alexander Petkov <<a ymailto="mailto:greenkov@gmail.com" href="/mc/compose?to=greenkov@gmail.com">greenkov@gmail.com</a></mc/compose?to=<a ymailto="mailto:greenkov@gmail.com"
 href="/mc/compose?to=greenkov@gmail.com">greenkov@gmail.com</a>>><br>Oggetto: Re: [mapserver-users] adding a palette to a greytiff<br>A: "michele pierri" <<a ymailto="mailto:pierm4ci@yahoo.it" href="/mc/compose?to=pierm4ci@yahoo.it">pierm4ci@yahoo.it</a></mc/compose?to=<a ymailto="mailto:pierm4ci@yahoo.it" href="/mc/compose?to=pierm4ci@yahoo.it">pierm4ci@yahoo.it</a>>><br>Cc: <a ymailto="mailto:mapserver-users@lists.osgeo.org" href="/mc/compose?to=mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a></mc/compose?to=<a ymailto="mailto:mapserver-users@lists.osgeo.org" href="/mc/compose?to=mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>><br>Data: Mercoledì 7 luglio 2010, 22:28<br><br><br>Can you also include a sample request that gives you a blank map?<br><br>On Wed, Jul 7, 2010 at 1:57 PM, michele pierri <<a ymailto="mailto:pierm4ci@yahoo.it"
 href="/mc/compose?to=pierm4ci@yahoo.it">pierm4ci@yahoo.it</a></mc/compose?to=<a ymailto="mailto:pierm4ci@yahoo.it" href="/mc/compose?to=pierm4ci@yahoo.it">pierm4ci@yahoo.it</a>><<a href="http://mc/compose?to=pierm4ci@yahoo.it" target="_blank">http://mc/compose?to=pierm4ci@yahoo.it</a>>> wrote:<br>Hi, thanks for help me.<br><br>1. Is your file indeed georeferenced?<br>Yes it is georeferenced.<br><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>How I have to modify the .map file for add this information? Can you write me an example?<br><br>3. Have you got the map file working without the class definitions?<br>I.E get a grayscale map?<br>If I write this file map I have always blank image:<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>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><br>END<br>END<br><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>How I can enable it?<br><br><br>I have upload the image on another upload web service:<br><a href="http://www.megaupload.com/?d=K8SY5IP3" target="_blank">http://www.megaupload.com/?d=K8SY5IP3</a><br><<a href="http://www.megaupload.com/?d=K8SY5IP3" target="_blank">http://www.megaupload.com/?d=K8SY5IP3</a>>you can try this if you want.<br>Or can you try with a your image?<br><br>Thanks again.<br>Michele.<br><br>--- Mer 7/7/10, Alexander Petkov <<a ymailto="mailto:greenkov@gmail.com"
 href="/mc/compose?to=greenkov@gmail.com">greenkov@gmail.com</a></mc/compose?to=<a ymailto="mailto:greenkov@gmail.com" href="/mc/compose?to=greenkov@gmail.com">greenkov@gmail.com</a>><<a href="http://mc/compose?to=greenkov@gmail.com" target="_blank">http://mc/compose?to=greenkov@gmail.com</a>>> ha scritto:<br><br>Da: Alexander Petkov <<a ymailto="mailto:greenkov@gmail.com" href="/mc/compose?to=greenkov@gmail.com">greenkov@gmail.com</a></mc/compose?to=<a ymailto="mailto:greenkov@gmail.com" href="/mc/compose?to=greenkov@gmail.com">greenkov@gmail.com</a>><<a href="http://mc/compose?to=greenkov@gmail.com" target="_blank">http://mc/compose?to=greenkov@gmail.com</a>>><br>Oggetto: Re: [mapserver-users] adding a palette to a greytiff<br>A: "michele pierri" <<a ymailto="mailto:pierm4ci@yahoo.it" href="/mc/compose?to=pierm4ci@yahoo.it">pierm4ci@yahoo.it</a></mc/compose?to=<a ymailto="mailto:pierm4ci@yahoo.it"
 href="/mc/compose?to=pierm4ci@yahoo.it">pierm4ci@yahoo.it</a>><<a href="http://mc/compose?to=pierm4ci@yahoo.it" target="_blank">http://mc/compose?to=pierm4ci@yahoo.it</a>>><br>Cc: <a ymailto="mailto:mapserver-users@lists.osgeo.org" href="/mc/compose?to=mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a></mc/compose?to=<a ymailto="mailto:mapserver-users@lists.osgeo.org" href="/mc/compose?to=mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>><<a href="http://mc/compose?to=mapserver-users@lists.osgeo.org" target="_blank">http://mc/compose?to=mapserver-users@lists.osgeo.org</a>><br>Data: Mercoledì 7 luglio 2010, 21:29<br><br>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></mc/compose?to=<a ymailto="mailto:pierm4ci@yahoo.it" href="/mc/compose?to=pierm4ci@yahoo.it">pierm4ci@yahoo.it</a>><<a href="http://mc/compose?to=pierm4ci@yahoo.it" target="_blank">http://mc/compose?to=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></mc/compose?to=<a
 ymailto="mailto:mapserver-users@lists.osgeo.org" href="/mc/compose?to=mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>><<a href="http://mc/compose?to=mapserver-users@lists.osgeo.org" target="_blank">http://mc/compose?to=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><br><br><br><br><br><br><br><br><br>-----Segue allegato-----<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></mc/compose?to=<a ymailto="mailto:mapserver-users@lists.osgeo.org" href="/mc/compose?to=mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>></mc/compose?to=<a
 ymailto="mailto:mapserver-users@lists.osgeo.org" href="/mc/compose?to=mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a></mc/compose?to=<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><br><br><br></div></blockquote></div></td></tr></table><br>