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>

 

转载于:https://www.cnblogs.com/lzlynn/archive/2008/08/17/1269610.html

内容概要:本文档主要展示了C语言中关于字符串处理、指针操作以及动态内存分配的相关代码示例。首先介绍了如何实现键值对(“key=value”)字符串的解析,包括去除多余空格和根据键获取对应值的功能,并提供了相应的测试用例。接着演示了从给定字符串中分离出奇偶位置字符的方法,并将结果分别存储到两个不同的缓冲区中。此外,还探讨了常量(const)修饰符在变量和指针中的应用规则,解释了不同类型指针的区别及其使用场景。最后,详细讲解了如何动态分配二维字符数组,并实现了对这类数组的排序与释放操作。 适合人群:具有C语言基础的程序员或计算机科学相关专业的学生,尤其是那些希望深入理解字符串处理、指针操作以及动态内存管理机制的学习者。 使用场景及目标:①掌握如何高效地解析键值对字符串并去除其中的空白字符;②学会编写能够正确处理奇偶索引字符的函数;③理解const修饰符的作用范围及其对程序逻辑的影响;④熟悉动态分配二维字符数组的技术,并能对其进行有效的排序和清理。 阅读建议:由于本资源涉及较多底层概念和技术细节,建议读者先复习C语言基础知识,特别是指针和内存管理部分。在学习过程中,可以尝试动手编写类似的代码片段,以便更好地理解和掌握文中所介绍的各种技巧。同时,注意观察代码注释,它们对于理解复杂逻辑非常有帮助。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值