WMS学习笔记:2.WMS解析

 WMS 定义了三个操作,分别是:GetCapabilities,GetMap和GetFeatureInfo。其中,GetFeatureInfo是可选的。本条款规定了在超文本传输协议(HTTP)分布式计算平台(DCP)上,这些WMS操作的执行和使用。

1.必选操作GetCapabilities的目的是为了获得服务元数据,服务元数据是一些可以机读(或者人读)的关于服务器信息内容以及可接收的请求参数值的描述。

WMS服务元数据示例:

  xml version="1.0" encoding="UTF-8" ?> 
-  
-  
- <WMS_Capabilities version="1.3.2" xmlns="http://www.opengis.net/wms" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wms http://schemas.cubewerx.com/schemas/wms/1.3.2/capabilities_1_3_2.xsd http://www.opengis.net/ows/1.1 http://schemas.cubewerx.com/schemas/ows/1.1.0/owsAll.xsd">
- <Service>
  <Name>WMSName> 
- <Description>
  <ows:Title>CubeSERV Demo WMSows:Title> 
  <ows:Abstract xml:lang="en">OGC-compliant cascading web map server (WMS) by CubeWerx Inc.ows:Abstract> 
  Description>
  <OnlineResource xlink:type="simple" xlink:href="http://www.cubewerx.com/" /> 
- <ContactInformation>
- <ContactPersonPrimary>
  <ContactPerson>Mike GalluchonContactPerson> 
  <ContactOrganization>CubeWerx Inc.ContactOrganization> 
  ContactPersonPrimary>
  <ContactPosition>Technical SupportContactPosition> 
- <ContactAddress>
  <AddressType>postalAddressType> 
  <Address>15 rue Gamelin, suite 506Address> 
  <City>GatineauCity> 
  <StateOrProvince>QuébecStateOrProvince> 
  <PostCode>J8Y 6N5PostCode> 
  <Country>CanadaCountry> 
  ContactAddress>
  <ContactVoiceTelephone>(819) 771-8303ContactVoiceTelephone> 
  <ContactFacsimileTelephone>(819) 771-8388ContactFacsimileTelephone> 
  <ContactElectronicMailAddress>[email protected]ContactElectronicMailAddress> 
  ContactInformation>
  <MaxWidth>4000MaxWidth> 
  <MaxHeight>3000MaxHeight> 
  Service>
- <Capability>
- <Request>
- <Operation name="GetCapabilities">
  <Format>text/xmlFormat> 
  <Format>application/x-bxmlFormat> 
- <DCPType>
- <HTTP>
- <Get>
  <OnlineResource xlink:type="simple" xlink:href="http://demo.cubewerx.com/demo/cubeserv/simple?" /> 
  Get>
  HTTP>
  DCPType>
  Operation>
- <Operation name="GetMap">
  <Format>image/pngFormat> 
  <Format>image/png; PhotometricInterpretation="PaletteColor"Format> 
  <Format>image/png; PhotometricInterpretation="RGB"Format> 
  <Format>image/png; PhotometricInterpretation="BlackIsZero"Format> 
  <Format>image/tiffFormat> 
  <Format>image/tiff; PhotometricInterpretation="PaletteColor"Format> 
  <Format>image/tiff; PhotometricInterpretation="RGB"Format> 
  <Format>image/tiff; PhotometricInterpretation="BlackIsZero"Format> 
  <Format>image/gifFormat> 
  <Format>image/jpegFormat> 
  <Format>image/x-jpegorpngFormat> 
  <Format>image/x-portable-anymapFormat> 
  <Format>image/x-portable-pixmapFormat> 
  <Format>image/x-portable-graymapFormat> 
  <Format>application/x-cubewerx-wkb; version="3"Format> 
  <Format>application/x-cubewerx-wkb; version="3"; PhotometricInterpretation="PaletteColor"Format> 
  <Format>application/x-cubewerx-wkb; version="3"; PhotometricInterpretation="RGB"Format> 
  <Format>application/x-cubewerx-wkb; version="3"; PhotometricInterpretation="BlackIsZero"Format> 
  <Format>application/vnd.google-earth.kml+xmlFormat> 
  <Format>application/vnd.google-earth.kml+bxml; bxmlVersion="0.0.8"Format> 
- <DCPType>
- <HTTP>
- <Get>
  <OnlineResource xlink:type="simple" xlink:href="http://demo.cubewerx.com/demo/cubeserv/simple?" /> 
  Get>
- <Post>
  <OnlineResource xlink:type="simple" xlink:href="http://demo.cubewerx.com/demo/cubeserv/simple" /> 
  Post>
  HTTP>
  DCPType>
  Operation>
- <Operation name="GetFeatureInfo">
  <Format>text/htmlFormat> 
  <Format>application/x-bxfs+xml; version="0.0.2"Format> 
  <Format>application/x-bxfs+x-bxml; version="0.0.2"Format> 
  <Format>text/xml; subtype="bxfs/0.0.2"Format> 
  <Format>application/x-bxml; subtype="bxfs/0.0.2"Format> 
- <DCPType>
- <HTTP>
- <Get>
  <OnlineResource xlink:type="simple" xlink:href="http://demo.cubewerx.com/demo/cubeserv/simple?" /> 
  Get>
- <Post>
  <OnlineResource xlink:type="simple" xlink:href="http://demo.cubewerx.com/demo/cubeserv/simple" /> 
  Post>
  HTTP>
  DCPType>
  Operation>
- <Operation name="DescribeLayer">
  <Format>text/xmlFormat> 
- <DCPType>
- <HTTP>
- <Get>
  <OnlineResource xlink:type="simple" xlink:href="http://demo.cubewerx.com/demo/cubeserv/simple?" /> 
  Get>
  HTTP>
  DCPType>
  Operation>
- <Operation name="GetLegendGraphic">
  <Format>image/pngFormat> 
  <Format>image/png; PhotometricInterpretation="PaletteColor"Format> 
  <Format>image/png; PhotometricInterpretation="RGB"Format> 
  <Format>image/png; PhotometricInterpretation="BlackIsZero"Format> 
  <Format>image/tiffFormat> 
  <Format>image/tiff; PhotometricInterpretation="PaletteColor"Format> 
  <Format>image/tiff; PhotometricInterpretation="RGB"Format> 
  <Format>image/tiff; PhotometricInterpretation="BlackIsZero"Format> 
  <Format>image/gifFormat> 
  <Format>image/jpegFormat> 
  <Format>image/x-jpegorpngFormat> 
  <Format>image/x-portable-anymapFormat> 
  <Format>image/x-portable-pixmapFormat> 
  <Format>image/x-portable-graymapFormat> 
  <Format>application/x-cubewerx-wkb; version="3"Format> 
  <Format>application/x-cubewerx-wkb; version="3"; PhotometricInterpretation="PaletteColor"Format> 
  <Format>application/x-cubewerx-wkb; version="3"; PhotometricInterpretation="RGB"Format> 
  <Format>application/x-cubewerx-wkb; version="3"; PhotometricInterpretation="BlackIsZero"Format> 
- <DCPType>
- <HTTP>
- <Get>
  <OnlineResource xlink:type="simple" xlink:href="http://demo.cubewerx.com/demo/cubeserv/simple?" /> 
  Get>
  HTTP>
  DCPType>
  Operation>
- <Operation name="GetLegend">
  <Format>image/pngFormat> 
  <Format>image/png; PhotometricInterpretation="PaletteColor"Format> 
  <Format>image/png; PhotometricInterpretation="RGB"Format> 
  <Format>image/png; PhotometricInterpretation="BlackIsZero"Format> 
  <Format>image/tiffFormat> 
  <Format>image/tiff; PhotometricInterpretation="PaletteColor"Format> 
  <Format>image/tiff; PhotometricInterpretation="RGB"Format> 
  <Format>image/tiff; PhotometricInterpretation="BlackIsZero"Format> 
  <Format>image/gifFormat> 
  <Format>image/jpegFormat> 
  <Format>image/x-jpegorpngFormat> 
  <Format>image/x-portable-anymapFormat> 
  <Format>image/x-portable-pixmapFormat> 
  <Format>image/x-portable-graymapFormat> 
  <Format>application/x-cubewerx-wkb; version="3"Format> 
  <Format>application/x-cubewerx-wkb; version="3"; PhotometricInterpretation="PaletteColor"Format> 
  <Format>application/x-cubewerx-wkb; version="3"; PhotometricInterpretation="RGB"Format> 
  <Format>application/x-cubewerx-wkb; version="3"; PhotometricInterpretation="BlackIsZero"Format> 
- <DCPType>
- <HTTP>
- <Get>
  <OnlineResource xlink:type="simple" xlink:href="http://demo.cubewerx.com/demo/cubeserv/simple?" /> 
  Get>
  HTTP>
  DCPType>
  Operation>
- <Operation name="GetStyles">
  <Format>application/vnd.ogc.sld+xmlFormat> 
  <Format>application/vnd.ogc.sld+x-bxmlFormat> 
  <Format>text/xmlFormat> 
  <Format>application/x-bxmlFormat> 
- <DCPType>
- <HTTP>
- <Get>
  <OnlineResource xlink:type="simple" xlink:href="http://demo.cubewerx.com/demo/cubeserv/simple?" /> 
  Get>
  HTTP>
  DCPType>
  Operation>
- <Operation name="GetAccessibility">
  <Format>text/xmlFormat> 
  <Format>application/x-bxmlFormat> 
- <DCPType>
- <HTTP>
- <Get>
  <OnlineResource xlink:type="simple" xlink:href="http://demo.cubewerx.com/demo/cubeserv/simple?" /> 
  Get>
  HTTP>
  DCPType>
  Operation>
- <Operation name="GetAssociations">
  <Format>text/xmlFormat> 
  <Format>application/x-bxmlFormat> 
- <DCPType>
- <HTTP>
- <Get>
  <OnlineResource xlink:type="simple" xlink:href="http://demo.cubewerx.com/demo/cubeserv/simple?" /> 
  Get>
  HTTP>
  DCPType>
  Operation>
  Request>
- <Exception>
  <Format>XMLFormat> 
  <Format>INIMAGEFormat> 
  <Format>BLANKFormat> 
  <Format>HTMLFormat> 
  <Format>TEXTFormat> 
  Exception>
- <Layer queryable="false">
- <Description>
  <ows:Title>CubeSERV WMS layersows:Title> 
  Description>
  <CRS>EPSG:4326CRS> 
  <CRS>CRS:84CRS> 
  <CRS>EPSG:3857CRS> 
  <CRS>AUTO:42001CRS> 
  <CRS>AUTO:42002CRS> 
  <CRS>AUTO:42003CRS> 
  <CRS>AUTO:42004CRS> 
  <CRS>EPSG:4267CRS> 
  <CRS>CRS:27CRS> 
  <CRS>EPSG:4269CRS> 
  <CRS>CRS:83CRS> 
  <CRS>EPSG:26703CRS> 
  <CRS>EPSG:26704CRS> 
  <CRS>EPSG:26705CRS> 
  <CRS>EPSG:26706CRS> 
  <CRS>EPSG:26707CRS> 
  <CRS>EPSG:26708CRS> 
  <CRS>EPSG:26709CRS> 
  <CRS>EPSG:26710CRS> 
  <CRS>EPSG:26711CRS> 
  <CRS>EPSG:26712CRS> 
  <CRS>EPSG:26713CRS> 
  <CRS>EPSG:26714CRS> 
  <CRS>EPSG:26715CRS> 
  <CRS>EPSG:26716CRS> 
  <CRS>EPSG:26717CRS> 
  <CRS>EPSG:26718CRS> 
  <CRS>EPSG:26719CRS> 
  <CRS>EPSG:26720CRS> 
  <CRS>EPSG:26721CRS> 
  <CRS>EPSG:26722CRS> 
  <CRS>EPSG:26903CRS> 
  <CRS>EPSG:26904CRS> 
  <CRS>EPSG:26905CRS> 
  <CRS>EPSG:26906CRS> 
  <CRS>EPSG:26907CRS> 
  <CRS>EPSG:26908CRS> 
  <CRS>EPSG:26909CRS> 
  <CRS>EPSG:26910CRS> 
  <CRS>EPSG:26911CRS> 
  <CRS>EPSG:26912CRS> 
  <CRS>EPSG:26913CRS> 
  <CRS>EPSG:26914CRS> 
  <CRS>EPSG:26915CRS> 
  <CRS>EPSG:26916CRS> 
  <CRS>EPSG:26917CRS> 
  <CRS>EPSG:26918CRS> 
  <CRS>EPSG:26919CRS> 
  <CRS>EPSG:26920CRS> 
  <CRS>EPSG:26921CRS> 
  <CRS>EPSG:26922CRS> 
  <CRS>EPSG:26923CRS> 
  <CRS>EPSG:32601CRS> 
  <CRS>EPSG:32602CRS> 
  <CRS>EPSG:32603CRS> 
  <CRS>EPSG:32604CRS> 
  <CRS>EPSG:32605CRS> 
  <CRS>EPSG:32606CRS> 
  <CRS>EPSG:32607CRS> 
  <CRS>EPSG:32608CRS> 
  <CRS>EPSG:32609CRS> 
  <CRS>EPSG:32610CRS> 
  <CRS>EPSG:32611CRS> 
  <CRS>EPSG:32612CRS> 
  <CRS>EPSG:32613CRS> 
  <CRS>EPSG:32614CRS> 
  <CRS>EPSG:32615CRS> 
  <CRS>EPSG:32616CRS> 
  <CRS>EPSG:32617CRS> 
  <CRS>EPSG:32618CRS> 
  <CRS>EPSG:32619CRS> 
  <CRS>EPSG:32620CRS> 
  <CRS>EPSG:32621CRS> 
  <CRS>EPSG:32622CRS> 
  <CRS>EPSG:32623CRS> 
  <CRS>EPSG:32624CRS> 
  <CRS>EPSG:32625CRS> 
  <CRS>EPSG:32626CRS> 
  <CRS>EPSG:32627CRS> 
  <CRS>EPSG:32628CRS> 
  <CRS>EPSG:32629CRS> 
  <CRS>EPSG:32630CRS> 
  <CRS>EPSG:32631CRS> 
  <CRS>EPSG:32632CRS> 
  <CRS>EPSG:32633CRS> 
  <CRS>EPSG:32634CRS> 
  <CRS>EPSG:32635CRS> 
  <CRS>EPSG:32636CRS> 
  <CRS>EPSG:32637CRS> 
  <CRS>EPSG:32638CRS> 
  <CRS>EPSG:32639CRS> 
  <CRS>EPSG:32640CRS> 
  <CRS>EPSG:32641CRS> 
  <CRS>EPSG:32642CRS> 
  <CRS>EPSG:32643CRS> 
  <CRS>EPSG:32644CRS> 
  <CRS>EPSG:32645CRS> 
  <CRS>EPSG:32646CRS> 
  <CRS>EPSG:32647CRS> 
  <CRS>EPSG:32648CRS> 
  <CRS>EPSG:32649CRS> 
  <CRS>EPSG:32650CRS> 
  <CRS>EPSG:32651CRS> 
  <CRS>EPSG:32652CRS> 
  <CRS>EPSG:32653CRS> 
  <CRS>EPSG:32654CRS> 
  <CRS>EPSG:32655CRS> 
  <CRS>EPSG:32656CRS> 
  <CRS>EPSG:32657CRS> 
  <CRS>EPSG:32658CRS> 
  <CRS>EPSG:32659CRS> 
  <CRS>EPSG:32660CRS> 
  <CRS>EPSG:32701CRS> 
  <CRS>EPSG:32702CRS> 
  <CRS>EPSG:32703CRS> 
  <CRS>EPSG:32704CRS> 
  <CRS>EPSG:32705CRS> 
  <CRS>EPSG:32706CRS> 
  <CRS>EPSG:32707CRS> 
  <CRS>EPSG:32708CRS> 
  <CRS>EPSG:32709CRS> 
  <CRS>EPSG:32710CRS> 
  <CRS>EPSG:32711CRS> 
  <CRS>EPSG:32712CRS> 
  <CRS>EPSG:32713CRS> 
  <CRS>EPSG:32714CRS> 
  <CRS>EPSG:32715CRS> 
  <CRS>EPSG:32716CRS> 
  <CRS>EPSG:32717CRS> 
  <CRS>EPSG:32718CRS> 
  <CRS>EPSG:32719CRS> 
  <CRS>EPSG:32720CRS> 
  <CRS>EPSG:32721CRS> 
  <CRS>EPSG:32722CRS> 
  <CRS>EPSG:32723CRS> 
  <CRS>EPSG:32724CRS> 
  <CRS>EPSG:32725CRS> 
  <CRS>EPSG:32726CRS> 
  <CRS>EPSG:32727CRS> 
  <CRS>EPSG:32728CRS> 
  <CRS>EPSG:32729CRS> 
  <CRS>EPSG:32730CRS> 
  <CRS>EPSG:32731CRS> 
  <CRS>EPSG:32732CRS> 
  <CRS>EPSG:32733CRS> 
  <CRS>EPSG:32734CRS> 
  <CRS>EPSG:32735CRS> 
  <CRS>EPSG:32736CRS> 
  <CRS>EPSG:32737CRS> 
  <CRS>EPSG:32738CRS> 
  <CRS>EPSG:32739CRS> 
  <CRS>EPSG:32740CRS> 
  <CRS>EPSG:32741CRS> 
  <CRS>EPSG:32742CRS> 
  <CRS>EPSG:32743CRS> 
  <CRS>EPSG:32744CRS> 
  <CRS>EPSG:32745CRS> 
  <CRS>EPSG:32746CRS> 
  <CRS>EPSG:32747CRS> 
  <CRS>EPSG:32748CRS> 
  <CRS>EPSG:32749CRS> 
  <CRS>EPSG:32750CRS> 
  <CRS>EPSG:32751CRS> 
  <CRS>EPSG:32752CRS> 
  <CRS>EPSG:32753CRS> 
  <CRS>EPSG:32754CRS> 
  <CRS>EPSG:32755CRS> 
  <CRS>EPSG:32756CRS> 
  <CRS>EPSG:32757CRS> 
  <CRS>EPSG:32758CRS> 
  <CRS>EPSG:32759CRS> 
  <CRS>EPSG:32760CRS> 
  <CRS>EPSG:41001CRS> 
  <CRS>EPSG:42101CRS> 
  <CRS>EPSG:42103CRS> 
  <CRS>EPSG:42105CRS> 
  <CRS>EPSG:102002CRS> 
- <EX_GeographicBoundingBox>
  <westBoundLongitude>-180westBoundLongitude> 
  <eastBoundLongitude>180eastBoundLongitude> 
  <southBoundLatitude>-90southBoundLatitude> 
  <northBoundLatitude>89.9999northBoundLatitude> 
  EX_GeographicBoundingBox>
  <BoundingBox CRS="EPSG:4326" minx="-90" miny="-180" maxx="89.9999" maxy="180" /> 
- <Attribution>
  <ows:Title>CubeWerx Inc.ows:Title> 
  <OnlineResource xlink:type="simple" xlink:href="http://www.cubewerx.com/" /> 
- <LogoURL width="86" height="97">
  <Format>http://www.cubewerx.com/cubewerx.pngFormat> 
  <OnlineResource xlink:type="simple" xlink:href="http://www.cubewerx.com/cubewerx.png" /> 
  LogoURL>
  Attribution>
- <Layer queryable="false">
- <Description>
  <ows:Title>Foundationows:Title> 
  Description>
- <EX_GeographicBoundingBox>
  <westBoundLongitude>-180westBoundLongitude> 
  <eastBoundLongitude>180eastBoundLongitude> 
  <southBoundLatitude>-90southBoundLatitude> 
  <northBoundLatitude>89.9999northBoundLatitude> 
  EX_GeographicBoundingBox>
- <Layer queryable="false">
- <Description>
  <ows:Title xml:lang="en">Boundariesows:Title> 
  Description>
- <EX_GeographicBoundingBox>
  <westBoundLongitude>-179.9999westBoundLongitude> 
  <eastBoundLongitude>179.999969482422eastBoundLongitude> 
  <southBoundLatitude>-89.9999southBoundLatitude> 
  <northBoundLatitude>89.9999northBoundLatitude> 
  EX_GeographicBoundingBox>
- <Layer queryable="true">
  <Name>Foundation.coastl_1mName> 
- <Description>
  <ows:Title>Coastlinesows:Title> 
  <ows:Abstract xml:lang="en">VRF Narrative Table for "Coastlines": <P>Coastline/shorelines (BA010) have been portrayed for coastal islands but not inland islands.ows:Abstract> 
  Description>
- <EX_GeographicBoundingBox>
  <westBoundLongitude>-179.999420166016westBoundLongitude> 
  <eastBoundLongitude>179.9999eastBoundLongitude> 
  <southBoundLatitude>-85.582763671875southBoundLatitude> 
  <northBoundLatitude>83.62741851806639northBoundLatitude> 
  EX_GeographicBoundingBox>
- <Style>
  <Name>cubewerxName> 
- <Description>
  <ows:Title>CubeWerxows:Title> 
  Description>
- <LegendURL>
  <Format>image/pngFormat> 
  <OnlineResource xlink:type="simple" xlink:href="http://demo.cubewerx.com/demo/cubeserv/simple?SERVICE=WMS&VERSION=1.3.2&LANGUAGE=zh-CN,zh,en&REQUEST=GetLegendGraphic&LAYER=Foundation.coastl_1m&STYLE=cubewerx&FORMAT=image%2Fpng&TRANSPARENT=TRUE" /> 
  LegendURL>
  Style>
  Layer>
- <Layer queryable="true">
  <Name>Foundation.depthl_1mName> 
- <Description>
  <ows:Title>Depth Contoursows:Title> 
  <ows:Abstract xml:lang="en">VRF Narrative Table for "Depth Contours": <P>Depth contours (BE015) were derived from digital bathymetric data provided by Defense Mapping Agency. Depths are expressed in the following intervals: 200, 600, 1000. 2000, 4000, 6000, and 8000 meters.ows:Abstract> 
  Description>
- <EX_GeographicBoundingBox>
  <westBoundLongitude>-179.9999westBoundLongitude> 
  <eastBoundLongitude>179.999969482422eastBoundLongitude> 
  <southBoundLatitude>-78.1118240356445southBoundLatitude> 
  <northBoundLatitude>89.9186553955078northBoundLatitude> 
  EX_GeographicBoundingBox>
- <Style>
  <Name>cubewerxName> 
- <Description>
  <ows:Title>CubeWerxows:Title> 
  Description>
- <LegendURL>
  <Format>image/pngFormat> 
  <OnlineResource xlink:type="simple" xlink:href="http://demo.cubewerx.com/demo/cubeserv/simple?SERVICE=WMS&VERSION=1.3.2&LANGUAGE=zh-CN,zh,en&REQUEST=GetLegendGraphic&LAYER=Foundation.depthl_1m&STYLE=cubewerx&FORMAT=image%2Fpng&TRANSPARENT=TRUE" /> 
  LegendURL>
  Style>
  Layer>
- <Layer queryable="true">
  <Name>Foundation.oceansea_1mName> 
- <Description>
  <ows:Title>Oceans/Seasows:Title> 
  <ows:Abstract xml:lang="en">VRF Narrative Table for "Oceans/Seas": <P>In coastal area, points of change from ocean/sea areas (BA040) to inland water areas (BH000) were taken from Digital Chart of the World, edition 1, July 1992.ows:Abstract> 
  Description>
- <EX_GeographicBoundingBox>
  <westBoundLongitude>-179.9999westBoundLongitude> 
  <eastBoundLongitude>179.999969482422eastBoundLongitude> 
  <southBoundLatitude>-85.582763671875southBoundLatitude> 
  <northBoundLatitude>89.9999northBoundLatitude> 
  EX_GeographicBoundingBox>
- <Style>
  <Name>cubewerxName> 
- <Description>
  <ows:Title>CubeWerxows:Title> 
  Description>
- <LegendURL>
  <Format>image/pngFormat> 
  <OnlineResource xlink:type="simple" xlink:href="http://demo.cubewerx.com/demo/cubeserv/simple?SERVICE=WMS&VERSION=1.3.2&LANGUAGE=zh-CN,zh,en&REQUEST=GetLegendGraphic&LAYER=Foundation.oceansea_1m&STYLE=cubewerx&FORMAT=image%2Fpng&TRANSPARENT=TRUE" /> 
  LegendURL>
  Style>
  Layer>
- <Layer queryable="true">
  <Name>Foundation.polbndl_1mName> 
- <Description>
  <ows:Title>Political Boundariesows:Title> 
  Description>
- <EX_GeographicBoundingBox>
  <westBoundLongitude>-179.9999westBoundLongitude> 
  <eastBoundLongitude>179.9999eastBoundLongitude> 
  <southBoundLatitude>-89.9999southBoundLatitude> 
  <northBoundLatitude>89.997917175293northBoundLatitude> 
  EX_GeographicBoundingBox>
- <Style>
  <Name>cubewerxName> 
- <Description>
  <ows:Title>CubeWerxows:Title> 
  Description>
- <LegendURL>
  <Format>image/pngFormat> 
  <OnlineResource xlink:type="simple" xlink:href="http://demo.cubewerx.com/demo/cubeserv/simple?SERVICE=WMS&VERSION=1.3.2&LANGUAGE=zh-CN,zh,en&REQUEST=GetLegendGraphic&LAYER=Foundation.polbndl_1m&STYLE=cubewerx&FORMAT=image%2Fpng&TRANSPARENT=TRUE" /> 
  LegendURL>
  Style>
  Layer>
  Layer>
- <Layer queryable="false">
- <Description>
  <ows:Title xml:lang="en">Digital Terrainows:Title> 
  Description>
- <EX_GeographicBoundingBox>
  <westBoundLongitude>-180westBoundLongitude> 
  <eastBoundLongitude>180eastBoundLongitude> 
  <southBoundLatitude>-90southBoundLatitude> 
  <northBoundLatitude>84.66666666666669northBoundLatitude> 
  EX_GeographicBoundingBox>
- <Layer queryable="true" opaque="true">
  <Name>Foundation.gtopo30Name> 
- <Description>
  <ows:Title>Global 30 Second Elevationsows:Title> 
  <ows:Abstract>GTOPO30 is a global digital elevation model (DEM) resulting from a collaborative effort led by the staff at the U.S. Geological Survey's EROS Data Center in Sioux Falls, South Dakota. Elevations in GTOPO30 are regularly spaced at 30-arc seconds (approximately 1 kilometer). GTOPO30 was developed to meet the needs of the geospatial data user community for regional and continental scale topographic data.ows:Abstract> 
  Description>
- <EX_GeographicBoundingBox>
  <westBoundLongitude>-180westBoundLongitude> 
  <eastBoundLongitude>180eastBoundLongitude> 
  <southBoundLatitude>-90southBoundLatitude> 
  <northBoundLatitude>84.66666666666669northBoundLatitude> 
  EX_GeographicBoundingBox>
- <Style>
  <Name>classicShadedName> 
- <Description>
  <ows:Title>Classic Shadedows:Title> 
  Description>
- <LegendURL>
  <Format>image/pngFormat> 
  <OnlineResource xlink:type="simple" xlink:href="http://demo.cubewerx.com/demo/cubeserv/simple?SERVICE=WMS&VERSION=1.3.2&LANGUAGE=zh-CN,zh,en&REQUEST=GetLegendGraphic&LAYER=Foundation.gtopo30&STYLE=classicShaded&FORMAT=image%2Fpng&TRANSPARENT=TRUE" /> 
  LegendURL>
  Style>
- <Style>
  <Name>classicName> 
- <Description>
  <ows:Title>Classicows:Title> 
  Description>
- <LegendURL>
  <Format>image/pngFormat> 
  <OnlineResource xlink:type="simple" xlink:href="http://demo.cubewerx.com/demo/cubeserv/simple?SERVICE=WMS&VERSION=1.3.2&LANGUAGE=zh-CN,zh,en&REQUEST=GetLegendGraphic&LAYER=Foundation.gtopo30&STYLE=classic&FORMAT=image%2Fpng&TRANSPARENT=TRUE" /> 
  LegendURL>
  Style>
- <Style>
  <Name>colorName> 
- <Description>
  <ows:Title>Colorows:Title> 
  Description>
- <LegendURL>
  <Format>image/pngFormat> 
  <OnlineResource xlink:type="simple" xlink:href="http://demo.cubewerx.com/demo/cubeserv/simple?SERVICE=WMS&VERSION=1.3.2&LANGUAGE=zh-CN,zh,en&REQUEST=GetLegendGraphic&LAYER=Foundation.gtopo30&STYLE=color&FORMAT=image%2Fpng&TRANSPARENT=TRUE" /> 
  LegendURL>
  Style>
- <Style>
  <Name>colorShadedName> 
- <Description>
  <ows:Title>Color Shadedows:Title> 
  Description>
- <LegendURL>
  <Format>image/pngFormat> 
  <OnlineResource xlink:type="simple" xlink:href="http://demo.cubewerx.com/demo/cubeserv/simple?SERVICE=WMS&VERSION=1.3.2&LANGUAGE=zh-CN,zh,en&REQUEST=GetLegendGraphic&LAYER=Foundation.gtopo30&STYLE=colorShaded&FORMAT=image%2Fpng&TRANSPARENT=TRUE" /> 
  LegendURL>
  Style>
- <Style>
  <Name>desaturatedName> 
- <Description>
  <ows:Title>Desaturatedows:Title> 
  Description>
- <LegendURL>
  <Format>image/pngFormat> 
  <OnlineResource xlink:type="simple" xlink:href="http://demo.cubewerx.com/demo/cubeserv/simple?SERVICE=WMS&VERSION=1.3.2&LANGUAGE=zh-CN,zh,en&REQUEST=GetLegendGraphic&LAYER=Foundation.gtopo30&STYLE=desaturated&FORMAT=image%2Fpng&TRANSPARENT=TRUE" /> 
  LegendURL>
  Style>
- <Style>
  <Name>desaturatedShadedName> 
- <Description>
  <ows:Title>Desaturated Shadedows:Title> 
  Description>
- <LegendURL>
  <Format>image/pngFormat> 
  <OnlineResource xlink:type="simple" xlink:href="http://demo.cubewerx.com/demo/cubeserv/simple?SERVICE=WMS&VERSION=1.3.2&LANGUAGE=zh-CN,zh,en&REQUEST=GetLegendGraphic&LAYER=Foundation.gtopo30&STYLE=desaturatedShaded&FORMAT=image%2Fpng&TRANSPARENT=TRUE" /> 
  LegendURL>
  Style>
  Layer>
  Layer>
- <Layer queryable="false">
- <Description>
  <ows:Title xml:lang="en">Hydrographyows:Title> 
  Description>
- <EX_GeographicBoundingBox>
  <westBoundLongitude>-179.999420166016westBoundLongitude> 
  <eastBoundLongitude>179.9999eastBoundLongitude> 
  <southBoundLatitude>-73.98460388183589southBoundLatitude> 
  <northBoundLatitude>83.67336273193359northBoundLatitude> 
  EX_GeographicBoundingBox>
- <Layer queryable="true">
  <Name>Foundation.inwatera_1mName> 
- <Description>
  <ows:Title>Inland Water Areasows:Title> 
  <ows:Abstract xml:lang="en">VRF Narrative Table for "Inland Water Areas": <P>In coastal area, points of change from ocean/sea areas (BA040) to inland water areas (BH000) were taken from Digital Chart of the World, edition 1, July 1992 except when it was determined that the point of change was implemented too far inland. In these cases, cartographic judgment was used to establish the point of change.ows:Abstract> 
  Description>
- <EX_GeographicBoundingBox>
  <westBoundLongitude>-179.999420166016westBoundLongitude> 
  <eastBoundLongitude>179.9999eastBoundLongitude> 
  <southBoundLatitude>-70.91725158691409southBoundLatitude> 
  <northBoundLatitude>83.57595062255859northBoundLatitude> 
  EX_GeographicBoundingBox>
- <Style>
  <Name>cubewerxName> 
- <Description>
  <ows:Title>CubeWerxows:Title> 
  Description>
- <LegendURL>
  <Format>image/pngFormat> 
  <OnlineResource xlink:type="simple" xlink:href="http://demo.cubewerx.com/demo/cubeserv/simple?SERVICE=WMS&VERSION=1.3.2&LANGUAGE=zh-CN,zh,en&REQUEST=GetLegendGraphic&LAYER=Foundation.inwatera_1m&STYLE=cubewerx&FORMAT=image%2Fpng&TRANSPARENT=TRUE" /> 
  LegendURL>
  Style>
  Layer>
- <Layer queryable="true">
  <Name>Foundation.watrcrsl_1mName> 
- <Description>
  <ows:Title>Water Coursesows:Title> 
  Description>
- <EX_GeographicBoundingBox>
  <westBoundLongitude>-179.999420166016westBoundLongitude> 
  <eastBoundLongitude>179.9999eastBoundLongitude> 
  <southBoundLatitude>-55southBoundLatitude> 
  <northBoundLatitude>83.623046875northBoundLatitude> 
  EX_GeographicBoundingBox>
- <Style>
  <Name>cubewerxName> 
- <Description>
  <ows:Title>CubeWerxows:Title> 
  Description>
- <LegendURL>
  <Format>image/pngFormat> 
  <OnlineResource xlink:type="simple" xlink:href="http://demo.cubewerx.com/demo/cubeserv/simple?SERVICE=WMS&VERSION=1.3.2&LANGUAGE=zh-CN,zh,en&REQUEST=GetLegendGraphic&LAYER=Foundation.watrcrsl_1m&STYLE=cubewerx&FORMAT=image%2Fpng&TRANSPARENT=TRUE" /> 
  LegendURL>
  Style>
  Layer>
  Layer>
- <Layer queryable="false">
- <Description>
  <ows:Title xml:lang="en">Populationows:Title> 
  Description>
- <EX_GeographicBoundingBox>
  <westBoundLongitude>-179.989318847656westBoundLongitude> 
  <eastBoundLongitude>179.996978759766eastBoundLongitude> 
  <southBoundLatitude>-86.48520660400389southBoundLatitude> 
  <northBoundLatitude>81.82305908203131northBoundLatitude> 
  EX_GeographicBoundingBox>
- <Layer queryable="true">
  <Name>Foundation.builtupa_1mName> 
- <Description>
  <ows:Title>Built-Up Areasows:Title> 
  Description>
- <EX_GeographicBoundingBox>
  <westBoundLongitude>-179.129608154297westBoundLongitude> 
  <eastBoundLongitude>178.443252563477eastBoundLongitude> 
  <southBoundLatitude>-53.167423248291southBoundLatitude> 
  <northBoundLatitude>70.9927215576172northBoundLatitude> 
  EX_GeographicBoundingBox>
- <Style>
  <Name>cubewerxName> 
- <Description>
  <ows:Title>CubeWerxows:Title> 
  Description>
- <LegendURL>
  <Format>image/pngFormat> 
  <OnlineResource xlink:type="simple" xlink:href="http://demo.cubewerx.com/demo/cubeserv/simple?SERVICE=WMS&VERSION=1.3.2&LANGUAGE=zh-CN,zh,en&REQUEST=GetLegendGraphic&LAYER=Foundation.builtupa_1m&STYLE=cubewerx&FORMAT=image%2Fpng&TRANSPARENT=TRUE" /> 
  LegendURL>
  Style>
  Layer>
  Layer>
- <Layer queryable="false">
- <Description>
  <ows:Title xml:lang="en">Transportationows:Title> 
  Description>
- <EX_GeographicBoundingBox>
  <westBoundLongitude>-179.999420166016westBoundLongitude> 
  <eastBoundLongitude>179.9999eastBoundLongitude> 
  <southBoundLatitude>-54.9311103820801southBoundLatitude> 
  <northBoundLatitude>79.52944183349609northBoundLatitude> 
  EX_GeographicBoundingBox>
- <Layer queryable="true">
  <Name>Foundation.aerofacp_1mName> 
- <Description>
  <ows:Title>Airport Facilities Pointsows:Title> 
  <ows:Abstract xml:lang="en">VPF Narrative Table for "Airport Facilities Points": Information on airports/airfields (GB005) was derived from the DAFIF (Digital Aeronautical Flight Information File) and TINT (Target Intelligence) in areas where such data was available. Each airfield's DAFIF reference number was placed in the 'na3' (classification name) attribute field. Only airfields which had at least one hard surface runway longer that 3,000 feet (910 meters) were collected.ows:Abstract> 
  Description>
- <EX_GeographicBoundingBox>
  <westBoundLongitude>-179.878326416016westBoundLongitude> 
  <eastBoundLongitude>179.339859008789eastBoundLongitude> 
  <southBoundLatitude>-54.9311103820801southBoundLatitude> 
  <northBoundLatitude>79.52944183349609northBoundLatitude> 
  EX_GeographicBoundingBox>
- <Style>
  <Name>cubewerxName> 
- <Description>
  <ows:Title>CubeWerxows:Title> 
  Description>
- <LegendURL>
  <Format>image/pngFormat> 
  <OnlineResource xlink:type="simple" xlink:href="http://demo.cubewerx.com/demo/cubeserv/simple?SERVICE=WMS&VERSION=1.3.2&LANGUAGE=zh-CN,zh,en&REQUEST=GetLegendGraphic&LAYER=Foundation.aerofacp_1m&STYLE=cubewerx&FORMAT=image%2Fpng&TRANSPARENT=TRUE" /> 
  LegendURL>
  Style>
  Layer>
- <Layer queryable="true">
  <Name>Foundation.railrdl_1mName> 
- <Description>
  <ows:Title>Railroadsows:Title> 
  Description>
- <EX_GeographicBoundingBox>
  <westBoundLongitude>-165.244674682617westBoundLongitude> 
  <eastBoundLongitude>179.609893798828eastBoundLongitude> 
  <southBoundLatitude>-53.138427734375southBoundLatitude> 
  <northBoundLatitude>78.16796875northBoundLatitude> 
  EX_GeographicBoundingBox>
- <Style>
  <Name>cubewerxName> 
- <Description>
  <ows:Title>CubeWerxows:Title> 
  Description>
- <LegendURL>
  <Format>image/pngFormat> 
  <OnlineResource xlink:type="simple" xlink:href="http://demo.cubewerx.com/demo/cubeserv/simple?SERVICE=WMS&VERSION=1.3.2&LANGUAGE=zh-CN,zh,en&REQUEST=GetLegendGraphic&LAYER=Foundation.railrdl_1m&STYLE=cubewerx&FORMAT=image%2Fpng&TRANSPARENT=TRUE" /> 
  LegendURL>
  Style>
  Layer>
- <Layer queryable="true">
  <Name>Foundation.roadl_1mName> 
- <Description>
  <ows:Title>Roadsows:Title> 
  <ows:Abstract xml:lang="en">VRF Narrative Table for "Roads": <P>The majority of data contained within the road line feature class was derived from the roads layer of Digital Chart of the World, edition 1, July 1992. All schematic road connectors added in urbanized areas for network connectivity were given an 'exs' (Existence Category attribute) value of '55' (Unexamined/ Unsurveyed). Where possible, road features were designated as primary or secondary routes by comparison with Operational Navigation Charts (ONC) map sources.ows:Abstract> 
  Description>
- <EX_GeographicBoundingBox>
  <westBoundLongitude>-179.999420166016westBoundLongitude> 
  <eastBoundLongitude>179.9999eastBoundLongitude> 
  <southBoundLatitude>-54.88802337646479southBoundLatitude> 
  <northBoundLatitude>74.740592956543northBoundLatitude> 
  EX_GeographicBoundingBox>
- <Style>
  <Name>cubewerxName> 
- <Description>
  <ows:Title>CubeWerxows:Title> 
  Description>
- <LegendURL>
  <Format>image/pngFormat> 
  <OnlineResource xlink:type="simple" xlink:href="http://demo.cubewerx.com/demo/cubeserv/simple?SERVICE=WMS&VERSION=1.3.2&LANGUAGE=zh-CN,zh,en&REQUEST=GetLegendGraphic&LAYER=Foundation.roadl_1m&STYLE=cubewerx&FORMAT=image%2Fpng&TRANSPARENT=TRUE" /> 
  LegendURL>
  Style>
  Layer>
  Layer>
- <Layer queryable="false">
- <Description>
  <ows:Title xml:lang="en">Vegetationows:Title> 
  Description>
- <EX_GeographicBoundingBox>
  <westBoundLongitude>-168.095977783203westBoundLongitude> 
  <eastBoundLongitude>-14.0277805328369eastBoundLongitude> 
  <southBoundLatitude>-27.6065120697021southBoundLatitude> 
  <northBoundLatitude>75.00726318359379northBoundLatitude> 
  EX_GeographicBoundingBox>
- <Layer queryable="true">
  <Name>Foundation.treesa_1mName> 
- <Description>
  <ows:Title>Treesows:Title> 
  <ows:Abstract xml:lang="en">VRF Narrative Table for "Trees": <P>This feature class includes all area forest/trees (EC030). Wooded areas are attributed as to predominant tree type (deciduous, evergreen, mixed or other) where possible. All features carrying the veg=999 (Other) attribute are "transitional" forests.ows:Abstract> 
  Description>
- <EX_GeographicBoundingBox>
  <westBoundLongitude>-139.997573852539westBoundLongitude> 
  <eastBoundLongitude>-52.66172027587889eastBoundLongitude> 
  <southBoundLatitude>25.281270980835southBoundLatitude> 
  <northBoundLatitude>66.71876525878909northBoundLatitude> 
  EX_GeographicBoundingBox>
- <Style>
  <Name>cubewerxName> 
- <Description>
  <ows:Title>CubeWerxows:Title> 
  Description>
- <LegendURL>
  <Format>image/pngFormat> 
  <OnlineResource xlink:type="simple" xlink:href="http://demo.cubewerx.com/demo/cubeserv/simple?SERVICE=WMS&VERSION=1.3.2&LANGUAGE=zh-CN,zh,en&REQUEST=GetLegendGraphic&LAYER=Foundation.treesa_1m&STYLE=cubewerx&FORMAT=image%2Fpng&TRANSPARENT=TRUE" /> 
  LegendURL>
  Style>
  Layer>
  Layer>
  Layer>
  Layer>
  Capability>
  WMS_Capabilities>
View Code

2.GetMap操作返回一幅地图。当接收到一个GetMap请求时,WMS应当满足请求或产生服务异常。

3.GetFeatureInfo是一个可选的操作。它仅仅支持那些定义或继承了属性queryable=“1”(真)的那些图层。对于其他图层,客户不能发送GetFeatureInfo请求。如果一个WMS接到一个它不支持的GetFeatureInfo请求,则应该以一个适当格式化的服务异常(XML)响应(code =OperationNotSupported)。

GetFeatureInfo操作用于向WMS的客户提供关于此前地图请求返回的地图图像中要素的更多信息。对于GetFeatureInfo来说,规范的应用情形是用户看到了地图请求的响应,然后用户选择该地图上的一点(I, J),并据其查询更多的信息。基本操作可以使客户确定所要查询的像元、查询的是哪个(些)图层以及返回信息需要何种格式。由于WMS协议是无状态的(stateless),通过包含原来的GetMap请求中几乎全部参数(除VERSION和REQUEST外),GetFeatureInfo请求向WMS指明用户正在浏览的地图。根据GetMap请求中的空间的前后关系信息(BBOX, SRS, WIDTH, HEIGHT)以及用户选择的I,J位置,WMS就可以(能)返回关于该位置更多的信息。

参考文献:

 地理信息-地图:网络服务接口

 http://www.opengeospatial.org/

http://www.cnblogs.com/sillyemperor/archive/2009/09/27/1575170.html

你可能感兴趣的:(WMS学习笔记:2.WMS解析)