WMS Schema
<?xml version='1.0' encoding="UTF-8"?>
<WMS_Capabilities version="1.3.0" xmlns="http://www.opengis.net/wms"
? 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.opengis.net/wms/1.3.0/capabilities_1_3_0.xsd">
<!-- Service Metadata -->
<Service>
? <!-- The WMT-defined name for this type of service -->
? <Name>WMS</Name>
? <!-- Human-readable title for pick lists -->
? <Title>Acme Corp. Map Server</Title>
? <!-- Narrative description providing additional information -->
? <Abstract>Map Server maintained by Acme Corporation.? Contact: webmaster@wmt.acme.com.? High-quality maps showing roadrunner nests and possible ambush locations.</Abstract>
?
? <KeywordList>
??? <Keyword>bird</Keyword>
??? <Keyword>roadrunner</Keyword>
??? <Keyword>ambush</Keyword>
? </KeywordList>
? <!-- Top-level web address of service or service provider.? See also OnlineResource
? elements under <DCPType>. -->
? <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple"
?? xlink:href="http://hostname/" />
?
? <!-- Contact information -->
? <ContactInformation>
??? <ContactPersonPrimary>
????? <ContactPerson>Jeff Smith</ContactPerson>
????? <ContactOrganization>NASA</ContactOrganization>
??? </ContactPersonPrimary>
??? <ContactPosition>Computer Scientist</ContactPosition>
?
??? <ContactAddress>
????? <AddressType>postal</AddressType>
????? <Address>NASA Goddard Space Flight Center</Address>
????? <City>Greenbelt</City>
????? <StateOrProvince>MD</StateOrProvince>
????? <PostCode>20771</PostCode>
?
????? <Country>USA</Country>
??? </ContactAddress>
??? <ContactVoiceTelephone>+1 301 555-1212</ContactVoiceTelephone>
??? <ContactElectronicMailAddress>user@host.com</ContactElectronicMailAddress>
? </ContactInformation>
? <!-- Fees or access constraints imposed. -->
? <Fees>none</Fees>
?
? <AccessConstraints>none</AccessConstraints>
? <LayerLimit>16</LayerLimit>
? <MaxWidth>2048</MaxWidth>
? <MaxHeight>2048</MaxHeight>
</Service>
<Capability>
? <Request>
??? <GetCapabilities>
?
????? <Format>text/xml</Format>
????? <DCPType>
??????? <HTTP>
????????? <Get>
??????????? <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
???????????? xlink:type="simple"
???????????? xlink:href="http://hostname/path?" />
????????? </Get>
????????? <Post>
??????????? <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
???????????? xlink:type="simple"
???????????? xlink:href="http://hostname/path?" />
?
????????? </Post>
??????? </HTTP>
????? </DCPType>
??? </GetCapabilities>
??? <GetMap>
????? <Format>image/gif</Format>
????? <Format>image/png</Format>
????? <Format>image/jpeg</Format>
?
????? <DCPType>
??????? <HTTP>
????????? <Get>
??????????? <!-- The URL here for invoking GetCapabilities using HTTP GET
??????????? is only a prefix to which a query string is appended. -->
??????????? <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
???????????? xlink:type="simple"
???????????? xlink:href="http://hostname/path?" />
????????? </Get>
??????? </HTTP>
????? </DCPType>
??? </GetMap>
?
??? <GetFeatureInfo>
????? <Format>text/xml</Format>
????? <Format>text/plain</Format>
????? <Format>text/html</Format>
????? <DCPType>
??????? <HTTP>
????????? <Get>
?
??????????? <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
???????????? xlink:type="simple"
???????????? xlink:href="http://hostname/path?" />
????????? </Get>
??????? </HTTP>
????? </DCPType>
??? </GetFeatureInfo>
? </Request>
? <Exception>
??? <Format>XML</Format>
?
??? <Format>INIMAGE</Format>
??? <Format>BLANK</Format>
? </Exception>
? <Layer>
??? <Title>Acme Corp. Map Server</Title>
??? <CRS>CRS:84</CRS> <!-- all layers are available in at least this CRS -->
?
??? <AuthorityURL name="DIF_ID">
????? <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple"
?????? xlink:href="http://gcmd.gsfc.nasa.gov/difguide/whatisadif.html" />
??? </AuthorityURL>
??? <Layer>
????? <!-- This parent layer has a Name and can therefore be requested from a Map Server, yielding a map of all subsidiary layers. -->
????? <Name>ROADS_RIVERS</Name>
????? <Title>Roads and Rivers</Title>
????? <!-- See the spec to learn how some characteristics are inherited by
?????????? subsidiary layers. -->
?
????? <CRS>EPSG:26986</CRS> <!-- An additional CRS for this layer -->
????? <EX_GeographicBoundingBox>
??????? <westBoundLongitude>-71.63</westBoundLongitude>
??????? <eastBoundLongitude>-70.78</eastBoundLongitude>
??????? <southBoundLatitude>41.75</southBoundLatitude>
??????? <northBoundLatitude>42.90</northBoundLatitude>
?
????? </EX_GeographicBoundingBox>
????? <!-- The optional resx and resy attributes indicate the X and Y spatial
?????????? resolution in the units of that CRS. -->
????? <BoundingBox CRS="CRS:84"
?????? minx="-71.63" miny="41.75" maxx="-70.78" maxy="42.90" resx="0.01" resy="0.01"/>
????? <BoundingBox CRS="EPSG:26986"
?????? minx="189000" miny="834000" maxx="285000" maxy="962000" resx="1" resy="1" />
????? <!-- Optional Title, URL and logo image of data provider. -->
????? <Attribution>
??????? <Title>State College University</Title>
??????? <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple"
???????? xlink:href="http://www.university.edu/" />
?
??????? <LogoURL width="100" height="100">
????????? <Format>image/gif</Format>
????????? <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
?????????? xlink:type="simple"
?????????? xlink:href="http://www.university.edu/icons/logo.gif" />
??????? </LogoURL>
????? </Attribution>
????? <!-- Identifier whose meaning is defined in an AuthorityURL element -->
????? <Identifier authority="DIF_ID">123456</Identifier>
????? <FeatureListURL>
?
??????? <Format>XML"</Format>
??????? <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple"
???????? xlink:href="http://www.university.edu/data/roads_rivers.gml" />
????? </FeatureListURL>
????? <Style>
??????? <Name>USGS</Name>
??????? <Title>USGS Topo Map Style</Title>
??????? <Abstract>Features are shown in a style like that used in USGS topographic maps.</Abstract>
?
??????? <!-- A picture of a legend for a Layer in this Style -->
??????? <LegendURL width="72" height="72">
????????? <Format>image/gif</Format>
????????? <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
?????????? xlink:type="simple"
?????????? xlink:href="http://www.university.edu/legends/usgs.gif" />
??????? </LegendURL>
??????? <!-- An XSL stylesheet describing how feature data will rendered to create
???????????? a map of this layer. -->
??????? <StyleSheetURL>
????????? <Format>text/xsl</Format>
?
????????? <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
?????????? xlink:type="simple"
?????????? xlink:href="http://www.university.edu/stylesheets/usgs.xsl" />
??????? </StyleSheetURL>
????? </Style>
????? <Layer queryable="1">
??????? <Name>ROADS_1M</Name>
??????? <Title>Roads at 1:1M scale</Title>
??????? <Abstract>Roads at a scale of 1 to 1 million.</Abstract>
?
??????? <KeywordList>
????????? <Keyword>road</Keyword>
????????? <Keyword>transportation</Keyword>
????????? <Keyword>atlas</Keyword>
??????? </KeywordList>
??????? <Identifier authority="DIF_ID">123456</Identifier>
??????? <MetadataURL type="FGDC:1998">
?
??????????????? <Format>text/plain</Format>
??????????????? <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
???????????????? xlink:type="simple"
???????????????? xlink:href="http://www.university.edu/metadata/roads.txt" />
???????????? </MetadataURL>
??????? <MetadataURL type="ISO19115:2003">
?????????????? <Format>text/xml</Format>
?????????????? <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
??????????????? xlink:type="simple"
??????????????? xlink:href="http://www.university.edu/metadata/roads.xml" />
???????????? </MetadataURL>
??????? <!-- In addition to the Style specified in the parent Layer, this Layer is
???????????? available in this style. -->
?
??????? <Style>
????????? <Name>ATLAS</Name>
????????? <Title>Road atlas style</Title>
????????? <Abstract>Roads are shown in a style like that used in a commercial road atlas.</Abstract>
??????? <LegendURL width="72" height="72">
????????? <Format>image/gif</Format>
????????? <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
?????????? xlink:type="simple"
?????????? xlink:href="http://www.university.edu/legends/atlas.gif" />
?
??????? </LegendURL>
??????? </Style>
????? </Layer>
????? <Layer queryable="1">
??????? <Name>RIVERS_1M</Name>
??????? <Title>Rivers at 1:1M scale</Title>
??????? <Abstract>Rivers at a scale of 1 to 1 million.</Abstract>
?
??????? <KeywordList>
????????? <Keyword>river</Keyword>
????????? <Keyword>canal</Keyword>
????????? <Keyword>waterway</Keyword>
??????? </KeywordList>
????? </Layer>
??? </Layer>
?
??? <Layer queryable="1">
????? <Title>Weather Forecast Data</Title>
????? <CRS>CRS:84</CRS> <!-- harmless repetition of common CRS -->
?
????? <EX_GeographicBoundingBox>
??????? <westBoundLongitude>-180</westBoundLongitude>
??????? <eastBoundLongitude>180</eastBoundLongitude>
?
??????? <southBoundLatitude>-90</southBoundLatitude>
??????? <northBoundLatitude>90</northBoundLatitude>
????? </EX_GeographicBoundingBox>
????? <!-- These weather data are available daily from 1999-01-01 through
?????????? 2000-08-22. -->
????? <Dimension name="time" units="ISO8601" default="2000-08-22">
???????? 1999-01-01/2000-08-22/P1D
????? </Dimension>
????? <Layer>
?
??????? <Name>Clouds</Name>
??????? <Title>Forecast cloud cover</Title>
????? </Layer>
????? <Layer>
??????? <Name>Temperature</Name>
??????? <Title>Forecast temperature</Title>
????? </Layer>
?
????? <Layer>
??????? <Name>Pressure</Name>
??????? <Title>Forecast barometric pressure</Title>
???????????? <!-- This Pressure layer is available at several elevations and times. -->
???????? <Dimension name="elevation" units="EPSG:5030" />
???????? <Dimension name="time" units="ISO8601" default="2000-08-22">
?????????? 1999-01-01/2000-08-22/P1D</Dimension>
?
???????? <Dimension name="elevation" units="CRS:88" default="0" nearestValue="1">
?????????? 0,1000,3000,5000,10000</Dimension>
????? </Layer>
??? </Layer>
??? <!-- Example of a layer which is a static map of fixed
???????? size which the server cannot subset or make transparent -->
??? <Layer opaque="1" noSubsets="1" fixedWidth="512" fixedHeight="256">
????? <Name>ozone_image</Name>
????? <Title>Global ozone distribution (1992)</Title>
?
????? <EX_GeographicBoundingBox>
??????? <westBoundLongitude>-180</westBoundLongitude>
??????? <eastBoundLongitude>180</eastBoundLongitude>
??????? <southBoundLatitude>-90</southBoundLatitude>
??????? <northBoundLatitude>90</northBoundLatitude>
????? </EX_GeographicBoundingBox>
????? <Dimension name="time" units="ISO8601" default="1992">1992</Dimension>
?
??? </Layer>
??? <!-- Example of a layer which originated from another WMS and has been
???????? "cascaded" by this WMS. -->
??? <Layer cascaded="1">
????? <Name>population</Name>
????? <Title>World population, annual</Title>
????? <EX_GeographicBoundingBox>
??????? <westBoundLongitude>-180</westBoundLongitude>
?
??????? <eastBoundLongitude>180</eastBoundLongitude>
??????? <southBoundLatitude>-90</southBoundLatitude>
??????? <northBoundLatitude>90</northBoundLatitude>
????? </EX_GeographicBoundingBox>
????? <Dimension name="time" units="ISO8601" default="2000">1990/2000/P1Y</Dimension>
??? </Layer>
? </Layer>
?
</Capability>
</WMS_Capabilities>
?
轉(zhuǎn)載于:https://www.cnblogs.com/lzlynn/archive/2008/08/17/1269610.html
總結(jié)
以上是生活随笔為你收集整理的WMS Schema的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: ASP.NET MVC Tip #31:
- 下一篇: Shell Basic