Skip to content

Instantly share code, notes, and snippets.

@fritzvd
Created December 6, 2012 10:40
Show Gist options
  • Save fritzvd/4223583 to your computer and use it in GitHub Desktop.
Save fritzvd/4223583 to your computer and use it in GitHub Desktop.
Mapfile example
MAP
NAME "whatever"
WEB
IMAGEPATH "/www/"
IMAGEURL "/www/"
METADATA
"wms_title" "whatever"
"wms_enable_request" "*"
"wms_onlineresource" "http://localhost/cgi-bin/mapserv?mapfile=/var/www/thisfile.map&"
"wms_srs" "epsg:28992"
END
END
#FONTSET "/var/maps/fontset.txt"
PROJECTION
"init=epsg:28992" ##required
END
LAYER
NAME "world_poly"
DATA 'shapefile/countries_area.shp'
STATUS ON
TYPE POLYGON
CLASS
NAME 'The World'
STYLE
OUTLINECOLOR 0 0 0
END # STYLE
END # CLASS
END # LAYER
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment