# Fichier .map pour afficher un raster avec MapServer # Copier-coller la ligne suivante dans un navigateur pour tester ce fichier: # http://localhost/cgi-bin/mapserv.exe?map=C:/OSGeo4W/apache/htdocs/exo2/mapserver/carte3.map&layer=spot_vgt&mode=map MAP IMAGETYPE png # Type de l'image. Souvent PNG ou JPEG. SIZE 2000 2000 # Taille du fichier image à créer avec MapServer. Peut importe. EXTENT -3300000 3300000 6000000 12000000 # L'etendue doit etre donnee en metres dans le systeme de coordonnees choisi SHAPEPATH "./data" # Les donnes geographiques (shp, rasters, ...) sont dans le dossier 'data' PROJECTION # Systeme de projection de la carte. Important! "init=epsg:3857" END WEB METADATA "wms_title" "carte" "wms_srs" "EPSG:3857" "wms_onlineresource" "http://localhost/cgi-bin/mapserv.exe?map=C:/OSGeo4W/apache/htdocs/exo2/mapserver/carte3.map&" "wms_format" "image/png" "wms_enable_request" "GetMap" END END LAYER # Raster layer NAME spot_vgt DATA spot_vgt_Europe.tif STATUS ON TYPE RASTER METADATA "wms_title" "spot_vgt" END PROJECTION "init=epsg:3857" # Put the EPSG code of the coordinate system of the raster data! END OFFSITE 0 0 0 END END