Sei sulla pagina 1di 6

Solutions (http://boundlessgeo.

com/solutions/)
(http://boundlessgeo.com/)

Resources (http://boundlessgeo.com/resources/)

About (http://boundlessgeo.com/about/)

Blog (http://boundlessgeo.com/blog/)

Software (http://boundlessgeo.com/solutions/solutions-software/)
Documentation (http://boundlessgeo.com/resources/documentation/)
Education Center (http://boundlessgeo.com/resources/training/)
Case Studies (http://boundlessgeo.com/resources/case-studies/)
White Papers (http://boundlessgeo.com/resources/white-papers/)

Introduction to the OpenGeo Suite

Customer Support
(http://boundlessgeo.com/support/)

(../index.html)
Power web, mobile, and desktop mapping applications across the enterprise. More info
(http://boundlessgeo.com/solutions/opengeo-suite/)

Table Of Contents

Web Map Service (WMS)


A fundamental component of the web map (and likely the simplest to understand) is the map
image. The Web Map Service (WMS) is a standard protocol for serving georeferenced map
images generated by a map server.
In short, WMS is a way for a client to request map images from a server. The client sends a
request to a map server, then the map server generates an image based on parameters passed
to the server in the request and finally returns an image.
The source material from which the image is generated need not be an image. The WMS
generates an image from whatever source material is requested, which could be vector data,
raster data, or a combination of the two.

Web Map Service (WMS)


Sample WMS request
Other WMS requests
More Information

Continue Reading
Previous: Server basics
(server.html)
Next: Web Feature Service
(WFS) (wfs.html)

This Page
Show Source
(../_sources/geoserver/wms.txt)

About Boundless
Boundless provides commercial
open source software
(http://boundlessgeo.com/solutions/)

for internet mapping and


geospatial application
development. We are dedicated
to the growth and support of
open source software.

License
This work is licensed under a
Creative Non CommercialCommons Attribution-Share
Alike 3.0 United States License
(http://creativecommons.org/licenses/bync-sa/3.0/). Feel free to use
this material, but we ask that
you please retain the Boundless
branding, logos and style.
A diagram showing how a WMS turns data into a map image
(http://creativecommons.org/licenses/by-

Sample WMS request


The following is a sample WMS request, rendered as a HTTP GET request (with line breaks
added for clarity) to a hosted GeoServer instance:
http://suite.opengeo.org/geoserver/wms?
SERVICE=WMS&
VERSION=1.3.0&
REQUEST=GetMap&
LAYERS=usa:states&
SRS=EPSG:4326&
BBOX=24.956,-124.731,49.372,-66.97&
FORMAT=image/png&
WIDTH=600&
HEIGHT=255

nc-sa/3.0/)

While the details of the WMS protocol are beyond the scope of this course, a quick scan of this
request shows that the following information is being requested:
Server details (a WMS 1.3.0 request)
Request type (a WMS GetMap request)
Layer name (usa:states)
Projection (EPSG:4326)
Bounding box (in this case, latitude/longitude coordinates)
Image properties (600x255 PNG)
If you paste the request into a browser, the result would be:

An image generated by a WMS request

Other WMS requests


A WMS request can ask for more than just a map image (GetMap).
An example of another such request is a request for information about the WMS server itself.

Ask A Question

The request is called GetCapabilities, and the response is known as the capabilities
(http://boundlessgeo.com/about/contactdocument.

us/)

The capabilities document is an XML response that details the supported image formats, us/)
projections, and map layers being served by that WMS.
The following is a WMS GetCapabilities request given to the same WMS used above:
http://suite.opengeo.org/geoserver/wms?
SERVICE=WMS&
VERSION=1.3.0&
REQUEST=GetCapabilities

If you want, you can paste this request into a browser to see the result.

More Information
For more information, please see the OGC site on the Web Map Service protocol at
http://www.opengeospatial.org/standards/wms
(http://www.opengeospatial.org/standards/wms).

Previous: Server basics (server.html)

Next: Web Feature Service (WFS) (wfs.html)


Back to Top

Solutions
Overview

Resources
Overview

About Us
Overview

Contact
155 Water Street, Suite 4-10

(http://boundlessgeo.com/solutions/)
(http://boundlessgeo.com/resources/)
(http://boundlessgeo.com/about/) Brooklyn, NY 11201
OpenGeo Suite

Documentation

Why Boundless

(http://boundlessgeo.com/opengeo(http://boundlessgeo.com/documentation/)
(http://boundlessgeo.com/whysuite/)
boundless/)
Trainings
MapMeter

contact@boundlessgeo.com

(http://boundlessgeo.com/resources/trainings/)
Team

(http://boundlessgeo.com/solutions/mapmeter/)
Workshops
Software

1-877-673-6436

(http://boundlessgeo.com/about/team/)

(http://workshops.boundlessgeo.com/)
Careers

Follow us on Twitter
(https://twitter.com/boundlessgeo)

Follow us on Linkedin
(http://www.linkedin.com/company/boundlessge

(http://boundlessgeo.com/solutions/solutions(http://boundlessgeo.com/resources/careers/)
Case Studies
software/)
(http://boundlessgeo.com/casePartners
studies/)
Industries
(http://boundlessgeo.com/resources/partners/)
(http://boundlessgeo.com/solutions/solutionsWhite Papers
Blog
industry/)
(http://boundlessgeo.com/resources/white(http://boundlessgeo.com/blog/)
papers/)
News & Media
(http://boundlessgeo.com/resources/news/)
Contact
(http://boundlessgeo.com/generalinformation/)

Terms of Service (http://boundlessgeo.com/terms-service/)

Privacy Policy (http://boundlessgeo.com/privacy-policy/)


Boundless (http://boundlessgeo.com/)

Site Map (http://boundlessgeo.com/site-map/)

Potrebbero piacerti anche