[mapserver-users] Display raster image
Rahkonen Jukka
Jukka.Rahkonen at mmmtike.fi
Mon Sep 19 20:48:47 PDT 2011
Hi,
Usually this means that everything is OK but you are somehow asking image from an area that is not covered by your image. Tell us
- the EXTENT in your mapfile
- the PROJECTION block of the mapfile at MAP level
- the request you are using for getting the image
Add DEBUG 5 into your mapfile and you will get useful information into log file that is defined with MS_ERRORFILE
It is good to use projection block for all the layers too. In your case it looks like is should be
PROJECTION
"init=epsg:4326"
END
-Jukka Rahkonen-
Matt McClelland wrote:
> Hi
> I am wanting to display a geotiff for map shading, but it is not displaying
> I have this as the first layer entry in the .map file
> LAYER
NAME "hillshade"
DATA "/var/www/osm/hill/S34E151.tif"
TYPE RASTER
STATUS ON
END
> and even when I generate a map with just the hillshade layer (in the area of the tif) there is no hill shading
> If I change the file name to something silly, I get an error saying the file can not be found, but as is there is no > error message. With just the hillshade layer on I just get a white image back.
> Any hints on how I might solve this???
Running # gdalinfo S34E151.tif
give me this
-------------------
Driver: GTiff/GeoTIFF
Files: S34E151.tif
Size is 1201, 1201
Coordinate System is:
GEOGCS["WGS 84",
DATUM["WGS_1984",
SPHEROID["WGS 84",6378137,298.257223563,
AUTHORITY["EPSG","7030"]],
AUTHORITY["EPSG","6326"]],
PRIMEM["Greenwich",0],
UNIT["degree",0.0174532925199433],
AUTHORITY["EPSG","4326"]]
Origin = (150.999583333333334,-32.999583333333334)
Pixel Size = (0.000833333333333,-0.000833333333333)
Metadata:
AREA_OR_POINT=Area
Image Structure Metadata:
INTERLEAVE=BAND
Corner Coordinates:
Upper Left ( 150.9995833, -32.9995833) (150d59'58.50"E, 32d59'58.50"S)
Lower Left ( 150.9995833, -34.0004167) (150d59'58.50"E, 34d 0' 1.50"S)
Upper Right ( 152.0004167, -32.9995833) (152d 0' 1.50"E, 32d59'58.50"S)
Lower Right ( 152.0004167, -34.0004167) (152d 0' 1.50"E, 34d 0' 1.50"S)
Center ( 151.5000000, -33.5000000) (151d30' 0.00"E, 33d30' 0.00"S)
Band 1 Block=1201x6 Type=Byte, ColorInterp=Gray
NoData Value=0
------------------
Matt :)
More information about the MapServer-users
mailing list