[mapserver-users] Display raster image
Matt McClelland
matt at wildwalks.com
Mon Sep 19 19:28:09 PDT 2011
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 :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110920/3a8105bc/attachment.htm>
More information about the MapServer-users
mailing list