MAP
NAME "WMSServer"
IMAGETYPE PNG
EXTENT -180 -90 180 90
SIZE 600 300
IMAGECOLOR 255 255 255
CONFIG "MS_ERRORFILE" "/ms4w/ms_error.txt"
# SHAPEPATH "data"
FONTSET "etc/fonts.txt"
SYMBOLSET "etc/symbols.sym"
UNITS dd
WEB
TEMPLATE "map_body.html"
IMAGEPATH "C:/ms4w/tmp/ms_tmp/"
IMAGEURL "/ms_tmp/"
# MINSCALEDENOM 1000
# MAXSCALEDENOM 250000
METADATA
"wms_title" "WMSServer"
"wms_onlineresource" "http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/bas.map&"
"wms_enable_request" "*"
"ows_enable_request" "*"
"wms_srs" "EPSG:4326 EPSG:900913"
"wms_feature_info_mime_type" "text/html"
END
END
PROJECTION
"init=epsg:4326"
END
# start
# layer Outline
LAYER
NAME "outline"
TYPE POLYGON
DATA "E:\IOP\GIS\Webgis\shp\RAP\BAS\bas_outline.shp"
HEADER "outline_header.html"
# header html template
TEMPLATE "outline_body.html"
# content html template
FOOTER "outline_footer.html"
# footer html template
METADATA
"wms_title" "outline"
"gml_include_items" "all"
"wms_include_items" "all"
END
STATUS ON
DUMP TRUE
TRANSPARENCY 100
PROJECTION
"init=epsg:4326"
END
CLASS
NAME "outline"
STYLE
OUTLINECOLOR 135 135 135
WIDTH 2
END
END
END
# layer rkt
LAYER
NAME "rkt"
TYPE POLYGON
DATA "E:\IOP\GIS\Webgis\shp\RAP\BAS\bas_rkt.shp"
HEADER "rkt_header.html"
# header html template
TEMPLATE "rkt_body.html"
# content html template
FOOTER "rkt_footer.html"
# footer html template
LABELITEM "Kabupaten"
METADATA
"wms_title" "Kabupaten"
"gml_include_items" "all"
"wms_include_items" "all"
END
STATUS ON
DUMP TRUE
TRANSPARENCY 100
PROJECTION
"init=epsg:4326"
END
CLASS
NAME "Kabupaten"
STYLE
OUTLINECOLOR 0 0 0
WIDTH 2
COLOR 0 0 0
END
LABEL
FONT fritqat-italic
TYPE truetype
SIZE 10
POSITION CC
PARTIALS FALSE
OUTLINECOLOR 255 255 255
COLOR 18 87 139
END
END
END
# layer estate
LAYER
NAME "estate"
TYPE POLYGON
DATA "E:\IOP\GIS\Webgis\shp\RAP\BAS\bas_estate.shp"
HEADER "estate_header.html"
# header html template
TEMPLATE "estate_body.html"
# content html template
FOOTER "estate_footer.html"
# footer html template
LABELITEM "ESTATE"
METADATA
"wms_title" "estate"
"gml_include_items" "all"
"wms_include_items" "all"
END
STATUS ON
DUMP TRUE
TRANSPARENCY 100
PROJECTION
"init=epsg:4326"
END
CLASS
NAME 'estate'
STYLE
OUTLINECOLOR 135 135 135
WIDTH 2
END
LABEL
FONT fritqat-italic
TYPE truetype
SIZE 18
POSITION CC
PARTIALS FALSE
OUTLINECOLOR 255 255 255
COLOR 18 87 139
END
END
END
# layer landuse
LAYER
NAME "landuse"
TYPE POLYGON
DATA "E:\IOP\GIS\Webgis\shp\RAP\BAS\bas_landuse.shp"
HEADER "landuse_header.html"
# header html template
TEMPLATE "landuse_body.html"
# content html template
FOOTER "landuse_footer.html"
# footer html template
METADATA
"wms_title" "landuse"
"gml_include_items" "all"
"wms_include_items" "all"
END
STATUS ON
DUMP TRUE
TRANSPARENCY 100
PROJECTION
"init=epsg:4326"
END
CLASS
NAME "landuse"
TEXT "[ESTATE] [FEATNO]"
# nama label
STYLE
OUTLINECOLOR 135 135 135
END
LABEL
FONT fritqat-italic
TYPE truetype
SIZE 6
POSITION AUTO
PARTIALS FALSE
OUTLINECOLOR 255 255 255
COLOR 18 87 139
END
END
END
# layer sector
LAYER
NAME "sector"
TYPE POINT
DATA "E:\IOP\GIS\Webgis\shp\RAP\BAS\bas_sector.shp"
HEADER "sector_header.html"
# header html template
TEMPLATE "sector_body.html"
# content html template
FOOTER "sector_footer.html"
# footer html template
METADATA
"wms_title" "sector"
"gml_include_items" "all"
"wms_include_items" "all"
END
STATUS ON
DUMP TRUE
TRANSPARENCY 100
PROJECTION
"init=epsg:4326"
END
CLASS
NAME "cities"
STYLE
SYMBOL "circle"
SIZE 12
COLOR 0 0 255
OUTLINECOLOR 0 0 0
END
END
END
# layer road
LAYER
NAME "roads"
TYPE LINE
DATA "E:\IOP\GIS\Webgis\shp\RAP\BAS\bas_road.shp"
HEADER "roads_header.html"
# header html template
TEMPLATE "roads_body.html"
# content html template
FOOTER "roads_footer.html"
# footer html template
METADATA
"wms_title" "roads"
"gml_include_items" "all"
"wms_include_items" "all"
END
STATUS ON
DUMP TRUE
TRANSPARENCY 100
PROJECTION
"init=epsg:4326"
END
CLASS
NAME "roadsmin"
EXPRESSION (("[RD_CLASS]" EQ "B") or ("[RD_CLASS]" EQ "O") or ("[RD_CLASS]" EQ "S"))
STYLE
COLOR 255 0 0
WIDTH 1
LINECAP butt
PATTERN 10 5 10 END
END
LABEL
FONT fritqat-italic
TYPE truetype
SIZE 7
POSITION AUTO
PARTIALS FALSE
COLOR 0 0 0
ANGLE FOLLOW
END
END
CLASS
NAME "roadsmax"
EXPRESSION (("[RD_CLASS]" EQ "A") or ("[RD_CLASS]" EQ "O"))
STYLE
COLOR 255 0 0
WIDTH 2
END
LABEL
FONT fritqat-italic
TYPE truetype
SIZE 7
POSITION AUTO
PARTIALS FALSE
COLOR 0 0 0
ANGLE FOLLOW
END
END
END
# layer canal
LAYER
NAME "canal"
TYPE LINE
DATA "E:\IOP\GIS\Webgis\shp\RAP\BAS\bas_road.shp"
HEADER "canal_header.html"
# header html template
TEMPLATE "canal_body.html"
# content html template
FOOTER "canal_footer.html"
# footer html template
METADATA
"wms_title" "canal"
"gml_include_items" "all"
"wms_include_items" "all"
END
STATUS ON
DUMP TRUE
TRANSPARENCY 100
PROJECTION
"init=epsg:4326"
END
END
# end
END Map File Script
Tags Artikel:
#Ms4w