Mapfile Generating WMS

Source: Internet
Author: User
Tags linecap

MAP
NAME "Hbwms"
STATUS on
SIZE 800 600
EXTENT 107.795 28.559 116.977 33.627
UNITS METERS
Shapepath "Data/hubei"
Imagecolor 255 255 255
#FONTSET: /etc/fonts.txt

Web
IMAGEPATH "/ms4w/tmp/ms_tmp/"
IMAGEURL "/ms_tmp/"
METADATA
"Wms_title" "HB wms Server" # #required
"Wms_onlineresource" "Http://127.0.0.1:8800/cgi-bin/mapserv.exe?" # #required
"Wms_srs" "epsg:4326 epsg:42304 epsg:42101 epsg:4269" # #recommended
"Wms_enable_request" "*" # #necessary
END
END # Web

PROJECTION
"Init=epsg:4326" # #required
END

SYMBOL
NAME "Circle"
TYPE Ellipse
POINTS 1 1 END
END # Symbol

#
# Start of layer definitions
#
#province
LAYER
NAME "Prov"
METADATA
"Wms_title" "Prov" # #required
END
TYPE POLYGON
STATUS on
DATA "Prov"
PROJECTION
"Init=epsg:4326" # #recommended
END
CLASS
NAME "Prov"
STYLE
#COLOR 200 255 0
OUTLINECOLOR 120 120 120
LineCap Butt
PATTERN 8 END
WIDTH 1.0
END # Style
END # Class
END # Layer

#municipality
LAYER
NAME "municipality"
METADATA
"Wms_title" "municipality" # #required
END
TYPE POLYGON
STATUS on
DATA "municipality"
PROJECTION
"Init=epsg:4326" # #recommended
END
#FEATURE
# POINTS
# 5 35
# 25 40
# 45 40
# 35 35
# END # Points
#END # Feature
CLASS
NAME "municipality"
#STYLE
#COLOR 200 255 0
# OUTLINECOLOR 60 60 60
# WIDTH 1.0
#END # STYLE
STYLE
#COLOR 200 255 0
OUTLINECOLOR 100 100 100
WIDTH 0.5
LineCap Butt
PATTERN 8 END
END # STYLE
END # Class
END # Layer

#station
LAYER
NAME Station
METADATA
"Wms_title" "Station" # #required
END
TYPE Point
STATUS on
DATA "Station"
PROJECTION
"Init=epsg:4326" # #recommended
END
CLASS
NAME "Station"
STYLE
SYMBOL "Circle"
SIZE 5
COLOR 251 154 153
END # Style
END # Class
END # Layer

END # Map File

---------------------------------------------------------------------------------------------------------

http://127.0.0.1:8800/cgi-bin/mapserv.exe?map=d:/ms4w/apps/mapserv-demo/HuBei.map&SERVICE=WMS&VERSION= 1.1.1&request=getcapabilities


http://127.0.0.1:8800/cgi-bin/mapserv.exe?map=d:/ms4w/apps/mapserv-demo/HuBei.map&SERVICE=WMS&VERSION= 1.1.1&request=getmap&layers=prov,municipality,station&styles=&srs=epsg:4326&bbox= 107.795,28.559,116.977,33.627&width=800&height=600&format=image/png


http://127.0.0.1:8800/cgi-bin/mapserv.exe?map=d:/ms4w/apps/mapserv-demo/HuBei.map&SERVICE=WMS&VERSION= 1.1.1&request=getmap&layers=prov,station&styles=&srs=epsg:4326&bbox= 107.795,28.559,116.977,33.627&width=800&height=600&format=image/png

http://127.0.0.1:8800/cgi-bin/mapserv.exe?map=d:/ms4w/apps/mapserv-demo/HuBei.map&SERVICE=WMS&VERSION= 1.1.1&request=getcapabilities

http://127.0.0.1:8800/cgi-bin/mapserv.exe?map=d:/ms4w/apps/mapserv-demo/HuBei.map&SERVICE=WMS&VERSION= 1.1.1&request=getmap&layers=prov,municipality,station&styles=&srs=epsg:4326&bbox= 107.795,28.559,116.977,33.627&width=800&height=600&format=image/png

http://127.0.0.1:8800/cgi-bin/mapserv.exe?map=D:/ms4w/apps/mapserv-demo/HuBei.map&SERVICE=WMS&VERSION= 1.1.1&request=getmap&layers=prov,municipality,station&styles=&srs=epsg:3785&bbox= 11988509.149011381,3334826.456403561,13017045.801616438,3973228.5166411838&width=841&height=522& Format=image/png

Mapfile Generating WMS

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.