[mapserver-users] grayscale shaded relief in mapserver

Guillaume Sueur guillaume.sueur at neogeo-online.net
Mon Apr 21 12:50:38 PDT 2008


I've done a tileindex, and when I set the layer to polygon and data to 
my tileindex shape, it displays well. So I think it's not a 
georeferencing problem.

Does anything could render as null (transparent or white, depending of 
outputformat) some raster layer without any error ?

Thanks

Guillaume

Jeff McKenna a écrit :
> my thoughts:
> 
> - make a tiny version of your mapfile with only that one problem layer
> - remove all projection objects
> - post this small mapfile and your shp2img output (with the -map_debug 
> switch) to this email list
> 
> 
> -jeff
> 
> 
> 
> 
> On 21-Apr-08, at 12:34 PM, Guillaume Sueur wrote:
> 
>> the main projection is the same. Extents are ok, the tif being much 
>> wider than the rest of the dataset. I'm explicitly calling it, and it 
>> returns a white image. shp2img on this specific layer does the same.
>> The raster values range from 0 to 255, but on my particuliar mapping 
>> zone, the are few differences between pixel values. I'm using GIF 
>> PC256 for output.
>>
>>
>> Fawcett, David a écrit :
>>> Have you ruled out a problem with projection or extent?  I was hoping 
>>> to see the top of the map file too, to see what the output 
>>> projection, extent, and units lines looked like.  Also, are you 
>>> calling the layer name explicitly in the cgi request?  If not, try 
>>> setting the layer status to DEFAULT for testing purposes.
>>> David.
>>> -----Original Message-----
>>> From: mapserver-users-bounces at lists.osgeo.org 
>>> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of 
>>> Guillaume Sueur
>>> Sent: Monday, April 21, 2008 11:17 AM
>>> To: Fawcett, David; mapserver-users at lists.osgeo.org
>>> Subject: Re: [mapserver-users] grayscale shaded relief in mapserver
>>> the TIF goes with a .TAB and its georeferencing informations. It 
>>> looks ok with Qgis.
>>> The mapfile is straight-forward :
>>>  LAYER
>>>      DATA "uploaded/AUbwV8_32.TIF"
>>>      NAME "shaded"
>>>      PROCESSING "COLOR_MATCH_THRESHOLD=3"
>>>      PROJECTION
>>>        "init=epsg:27563"
>>>      END
>>>      STATUS ON
>>>      TYPE RASTER
>>>      UNITS METERS
>>> END
>>> Thanks for your interest,
>>> Guillaume
>>> Fawcett, David a écrit :
>>>> Have you stripped out all of the projection, etc.  and just tried to 
>>>> output the image?
>>>>
>>>> What does your map file look like?
>>>>
>>>> David.
>>>>
>>>> -----Original Message-----
>>>> From: mapserver-users-bounces at lists.osgeo.org
>>>> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of 
>>>> Guillaume Sueur
>>>> Sent: Monday, April 21, 2008 3:48 AM
>>>> To: mapserver-users at lists.osgeo.org
>>>> Subject: [mapserver-users] grayscale shaded relief in mapserver
>>>>
>>>>
>>>> Hi list,
>>>>
>>>> I've got a grayscale TIF showing shaded relief which I can't manage to
>>>> display properly with mapserver. The image is just white. gdalinfo 
>>>> gives
>>>> : Band 1 Block=4367x1 Type=Byte, ColorInterp=Gray I assume the 
>>>> georef is
>>>> ok. I tried few things like resampling it to 32 colors, or 
>>>> "PROCESSING "COLOR_MATCH_THRESHOLD=3" as I've found in mails 
>>>> archives, but without any luck.
>>>>
>>>> Any clue ?
>>>>
>>>> Thanks
>>>>
>>> _______________________________________________
>>> mapserver-users mailing list
>>> mapserver-users at lists.osgeo.org 
>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>>
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 






More information about the MapServer-users mailing list