Adding Raster Images as Layers

For Raster Images you would typically use GeoTiffs or include a World file:

  • GeoTiffs are Tiff image files with encoded projection information.
  • A World file is a file that gives the spatial extent and resolution of an associated image (e.g. a file australia.gif might have a World file australia.wld that has details of coordinates and extent). See http://en.wikipedia.org/wiki/World_filefor more information.

MapServer handles both GeoTiffs and World files but for ease of portability (i.e. a single file that includes embedded projection information) GeoTiffs can be made using software such as gdal to convert raster images to GeoTiffs (see http://www.gdal.org/).

The following is an example layer description for a GeoTiff Raster layer:

LAYER
	NAME "Land Sea Topographic"
	TYPE RASTER
	STATUS ON
	PROJECTION
		"proj=latlong"
	END
	DATA "world/topography/globaleb3colshade256.tif"
	METADATA
		"Notes" "The Global Land One-km Base Elevation (GLOBE) Project 
		<a href='http://www.ngdc.noaa.gov/mgg/topo/globe.html'>
		http://www.ngdc.noaa.gov/seg/topo/globe.shtml</a>"
	END
END