[mapserver-users] adding a palette to a greytiff
Alexander Petkov
greenkov at gmail.com
Wed Jul 7 13:52:53 PDT 2010
The first thing that I see is that the EXTENT needs to be corrected in your
map file.
On Wed, Jul 7, 2010 at 2:47 PM, michele pierri <pierm4ci at yahoo.it> wrote:
> This is what I request with a browser.
>
> http://localhost/cgi-bin/mapserv?map=/var/www/sviluppo/workshop-5.4/prova.map&mode=map
>
> Thanks again,
> Michele.
>
> --- *Mer 7/7/10, Alexander Petkov <greenkov at gmail.com>* ha scritto:
>
>
> Da: Alexander Petkov <greenkov at gmail.com>
> Oggetto: Re: [mapserver-users] adding a palette to a greytiff
> A: "michele pierri" <pierm4ci at yahoo.it>
> Cc: mapserver-users at lists.osgeo.org
> Data: Mercoledì 7 luglio 2010, 22:28
>
>
> Can you also include a sample request that gives you a blank map?
>
> On Wed, Jul 7, 2010 at 1:57 PM, michele pierri <pierm4ci at yahoo.it<http://mc/compose?to=pierm4ci@yahoo.it>
> > wrote:
>
>> Hi, thanks for help me.
>>
>> 1. Is your file indeed georeferenced?
>> Yes it is 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.
>> How I have to modify the .map file for add this information? Can you write
>> me an example?
>>
>> 3. Have you got the map file working without the class definitions?
>> I.E get a grayscale map?
>> If I write this file map I have always blank image:
>> 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
>>
>> END
>> END
>>
>> 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.
>> How I can enable it?
>>
>>
>> I have upload the image on another upload web service:
>> http://www.megaupload.com/?d=K8SY5IP3
>> <http://www.megaupload.com/?d=K8SY5IP3>you can try this if you want.
>> Or can you try with a your image?
>>
>> Thanks again.
>> Michele.
>>
>> --- *Mer 7/7/10, Alexander Petkov <greenkov at gmail.com<http://mc/compose?to=greenkov@gmail.com>
>> >* ha scritto:
>>
>>
>> Da: Alexander Petkov <greenkov at gmail.com<http://mc/compose?to=greenkov@gmail.com>
>> >
>> Oggetto: Re: [mapserver-users] adding a palette to a greytiff
>> A: "michele pierri" <pierm4ci at yahoo.it<http://mc/compose?to=pierm4ci@yahoo.it>
>> >
>> Cc: mapserver-users at lists.osgeo.org<http://mc/compose?to=mapserver-users@lists.osgeo.org>
>> Data: Mercoledì 7 luglio 2010, 21:29
>>
>> 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 <pierm4ci at yahoo.it<http://mc/compose?to=pierm4ci@yahoo.it>>
>> 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
>> > mapserver-users at lists.osgeo.org<http://mc/compose?to=mapserver-users@lists.osgeo.org>
>> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
>> >
>>
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100707/c273ef68/attachment.htm>
More information about the MapServer-users
mailing list