Export QGIS Colormap to Mapserver format (6.4+) Click MapserverExport button Specify colormap (e.g. "Greens") Specify minimum pixel value Specify maximum pixel value Specify if colormap should be inverted Click OK and copy styling to your mapfile