OGC标准接口学习

海哥  金牌会员 | 2023-4-25 22:30:43 | 显示全部楼层 | 阅读模式
打印 上一主题 下一主题

主题 912|帖子 912|积分 2736

OGC 全称 Open Geospatial Consortium,是一个非盈利的、国际化的、自愿协商的标准化组织,它的主要目的就是制定与空间信息、基于位置服务相关的标准
DescribeFeatureType

返回WFS服务支持的字段类型的描述
入参

参数是否必须示例描述SERVICE是WFS服务类型REQUEST是DescribeFeatureType方法名VERSION是1.0.0,1.1.0版本号TYPENAMES否workspace:layer工作空间:图层名OUTPUTFORMAT否text/xml,subtype=gml/3.1.1,application/json输出格式出参

示例
  1. {
  2.     "elementFormDefault": "qualified",
  3.     "targetNamespace": "topp",//命名空间
  4.     "targetPrefix": "topp",
  5.     "featureTypes": [
  6.         {
  7.             "typeName": "state",//图层名
  8.             "properties": [
  9.                 {
  10.                     "name": "geom",//字段名
  11.                     "maxOccurs": 1,
  12.                     "minOccurs": 0,
  13.                     "nillable": true,
  14.                     "type": "gml:MultiPolygon",
  15.                     "localType": "MultiPolygon"//字段类型
  16.                 },
  17.                 {
  18.                     "name": "objectid",
  19.                     "maxOccurs": 1,
  20.                     "minOccurs": 0,
  21.                     "nillable": true,
  22.                     "type": "xsd:int",
  23.                     "localType": "int"
  24.                 },
  25.                 {
  26.                     "name": "name",
  27.                     "maxOccurs": 1,
  28.                     "minOccurs": 0,
  29.                     "nillable": true,
  30.                     "type": "xsd:string",
  31.                     "localType": "string"
  32.                 }
  33.             ]
  34.         }
  35.     ]
  36. }
复制代码
GetFeature

返回指定图层中选择的数据,包括几何图形和属性值
入参

参数是否必须示例描述SERVICE是WFS服务类型REQUEST是GetFeature方法名VERSION是1.1.0,2.0.0版本号TYPENAME是workspace:layer工作空间:图层名OUTPUTFORMAT否application/json输出格式PropertyName否field指定字段sortBy否field指定字段,+A升序,+D降序MAXFEATURES否50最大数量FEATUREID否featureIdCQL_FILTER否INTERSECTS(the_geom,POINT(-74.817265 40.5296504))cql过滤出参

示例
  1. {
  2.     "type": "FeatureCollection",
  3.     "features": [
  4.         {
  5.             "type": "Feature",
  6.             "id": "fid.1",
  7.             "geometry": {// geometry
  8.                 "type": "MultiPolygon",
  9.                 "coordinates": [
  10.                     [
  11.                         [
  12.                             [
  13.                                 123.49846,
  14.                                 25.74109
  15.                             ],
  16.                             [
  17.                                 123.49878,
  18.                                 25.74333
  19.                             ],
  20.                             [
  21.                                 123.48812,
  22.                                 25.74812
  23.                             ],
  24.                             [
  25.                                 123.47404,
  26.                                 25.74846
  27.                             ],
  28.                             [
  29.                                 123.46312,
  30.                                 25.74766
  31.                             ],
  32.                             [
  33.                                 123.43935,
  34.                                 25.7406
  35.                             ],
  36.                             [
  37.                                 123.43155,
  38.                                 25.72788
  39.                             ],
  40.                             [
  41.                                 123.45451,
  42.                                 25.72004
  43.                             ],
  44.                             [
  45.                                 123.48675,
  46.                                 25.7197
  47.                             ],
  48.                             [
  49.                                 123.49728,
  50.                                 25.72717
  51.                             ],
  52.                             [
  53.                                 123.49846,
  54.                                 25.74109
  55.                             ]
  56.                         ]
  57.                     ]
  58.                 ]
  59.             },
  60.             "geometry_name": "the_geom", // geometry字段名
  61.             "properties": { //图层结构化数据
  62.                 "SmUserID": 0,
  63.                 "SmID": 679,
  64.                 "SmGeometrySize": 188,
  65.                 "SmGeoPosition": 293879664,
  66.                 "SmArea": 1.6862486784110367E7,
  67.                 "SQMI": null,
  68.                 "SQKM": null,
  69.                 "POP_1994": null,
  70.                 "ColorID": 1,
  71.                 "COUNTRY": "",
  72.                 "CONTINENT": "",
  73.                 "COLOR_MAP": "1",
  74.                 "CAPITAL": ""
  75.             }
  76.         }
  77.     ],
  78.     "totalFeatures": 1889,//总条数
  79.     "numberMatched": 1889,//命中条数
  80.     "numberReturned": 1,//返回条数
  81.     "timeStamp": "2023-04-25T07:33:34.281Z",
  82.     "crs": {//坐标系
  83.         "type": "name",
  84.         "properties": {
  85.             "name": "urn:ogc:def:crs:EPSG::4490"
  86.         }
  87.     }
  88. }
复制代码
GetCapabilities

生成一个元数据文档,描述提供的WFS服务以及有效的WFS操作和参数。
有关WMS提供的操作、服务和数据的元数据。
参数是否必须示例描述SERVICE是WFS/WMS/WCS服务REQUEST是GetCapabilities方法VERSIONS否1.0.0,1.1.0,1.1.1,1.3.0,2.0.0版本SECTIONS否Contents/FeatureTypeList获取部分NAMESPACE否text/xml输出格式WMS示例
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <WMS_Capabilities version="1.3.0" updateSequence="2241" 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://geoserver.com/geoserver/schemas/wms/1.3.0/capabilities_1_3_0.xsd">
  3.     <Service>
  4.         <Name>WMS</Name>
  5.         <Title>GeoServer Web Map Service</Title>
  6.         <Abstract>A compliant implementation of WMS plus most of the SLD extension (dynamic styling). Can also generate PDF, SVG, KML, GeoRSS</Abstract>
  7.         <KeywordList>
  8.             <Keyword>WFS</Keyword>
  9.             <Keyword>WMS</Keyword>
  10.             <Keyword>GEOSERVER</Keyword>
  11.         </KeywordList>
  12.         <OnlineResource xlink:type="simple" xlink:href="http://geoserver.org"/>
  13.         <ContactInformation>
  14.             <ContactPersonPrimary>
  15.                 <ContactPerson>Claudius Ptolomaeus</ContactPerson>
  16.                 <ContactOrganization>The Ancient Geographers</ContactOrganization>
  17.             </ContactPersonPrimary>
  18.             <ContactPosition>Chief Geographer</ContactPosition>
  19.             <ContactAddress>
  20.                 <AddressType>Work</AddressType>
  21.                 <Address/>
  22.                 <City>Alexandria</City>
  23.                 <StateOrProvince/>
  24.                 <PostCode/>
  25.                 <Country>Egypt</Country>
  26.             </ContactAddress>
  27.             <ContactVoiceTelephone/>
  28.             <ContactFacsimileTelephone/>
  29.             <ContactElectronicMailAddress>claudius.ptolomaeus@gmail.com</ContactElectronicMailAddress>
  30.         </ContactInformation>
  31.         <Fees>NONE</Fees>
  32.         <AccessConstraints>NONE</AccessConstraints>
  33.     </Service>
  34.     <Capability>
  35.         <Request>
  36.             <GetCapabilities>
  37.                 <Format>text/xml</Format>
  38.                 <DCPType>
  39.                     <HTTP>
  40.                         <Get>
  41.                             <OnlineResource xlink:type="simple" xlink:href="http://geoserver.com/geoserver/World/ows?SERVICE=WMS&"/>
  42.                         </Get>
  43.                         <Post>
  44.                             <OnlineResource xlink:type="simple" xlink:href="http://geoserver.com/geoserver/World/ows?SERVICE=WMS&"/>
  45.                         </Post>
  46.                     </HTTP>
  47.                 </DCPType>
  48.             </GetCapabilities>
  49.             <GetMap>
  50.                 <Format>image/png</Format>
  51.                 <Format>application/atom+xml</Format>
  52.                 <Format>application/geopackage+sqlite3</Format>
  53.                 <Format>application/json;type=utfgrid</Format>
  54.                 <Format>application/pdf</Format>
  55.                 <Format>application/x-sqlite3</Format>
  56.                 <Format>image/geotiff</Format>
  57.                 <Format>image/geotiff8</Format>
  58.                 <Format>image/gif</Format>
  59.                 <Format>image/jpeg</Format>
  60.                 <Format>image/png; mode=8bit</Format>
  61.                 <Format>image/svg+xml</Format>
  62.                 <Format>image/tiff</Format>
  63.                 <Format>image/tiff8</Format>
  64.                 <Format>image/vnd.jpeg-png</Format>
  65.                 <Format>image/vnd.jpeg-png8</Format>
  66.                 <Format>text/html; subtype=openlayers</Format>
  67.                 <Format>text/html; subtype=openlayers2</Format>
  68.                 <Format>text/html; subtype=openlayers3</Format>
  69.                 <DCPType>
  70.                     <HTTP>
  71.                         <Get>
  72.                             <OnlineResource xlink:type="simple" xlink:href="http://geoserver.com/geoserver/World/ows?SERVICE=WMS&"/>
  73.                         </Get>
  74.                     </HTTP>
  75.                 </DCPType>
  76.             </GetMap>
  77.             <GetFeatureInfo>
  78.                 <Format>text/plain</Format>
  79.                 <Format>application/vnd.ogc.gml</Format>
  80.                 <Format>text/xml</Format>
  81.                 <Format>application/vnd.ogc.gml/3.1.1</Format>
  82.                 <Format>text/xml; subtype=gml/3.1.1</Format>
  83.                 <Format>text/html</Format>
  84.                 <Format>application/json</Format>
  85.                 <DCPType>
  86.                     <HTTP>
  87.                         <Get>
  88.                             <OnlineResource xlink:type="simple" xlink:href="http://geoserver.com/geoserver/World/ows?SERVICE=WMS&"/>
  89.                         </Get>
  90.                     </HTTP>
  91.                 </DCPType>
  92.             </GetFeatureInfo>
  93.         </Request>
  94.         <Exception>
  95.             <Format>XML</Format>
  96.             <Format>INIMAGE</Format>
  97.             <Format>BLANK</Format>
  98.             <Format>JSON</Format>
  99.         </Exception>
  100.         <Layer>
  101.             <Title>GeoServer Web Map Service</Title>
  102.             <Abstract>A compliant implementation of WMS plus most of the SLD extension (dynamic styling). Can also generate PDF, SVG, KML, GeoRSS</Abstract>
  103.             
  104.             <CRS>EPSG:4326</CRS>
  105.             <CRS>EPSG:4490</CRS>
  106.             ...
  107.             <CRS>CRS:84</CRS>
  108.             <EX_GeographicBoundingBox>
  109.                 <westBoundLongitude>-180.0</westBoundLongitude>
  110.                 <eastBoundLongitude>464356.09312885156</eastBoundLongitude>
  111.                 <southBoundLatitude>-90.0</southBoundLatitude>
  112.                 <northBoundLatitude>2871057.3542110883</northBoundLatitude>
  113.             </EX_GeographicBoundingBox>
  114.             <BoundingBox CRS="CRS:84" minx="-180.0" miny="-90.0" maxx="464356.09312885156" maxy="2871057.3542110883"/>
  115.             <Layer queryable="1" opaque="0">
  116.                 <Name>Countries</Name>
  117.                 <Title>World:Countries</Title>
  118.                 <Abstract/>
  119.                 <KeywordList>
  120.                     <Keyword>features</Keyword>
  121.                     <Keyword>Countries</Keyword>
  122.                 </KeywordList>
  123.                 <CRS>EPSG:4490</CRS>
  124.                 <CRS>CRS:84</CRS>
  125.                 <EX_GeographicBoundingBox>
  126.                     <westBoundLongitude>-180.0</westBoundLongitude>
  127.                     <eastBoundLongitude>179.9862060546875</eastBoundLongitude>
  128.                     <southBoundLatitude>-90.0</southBoundLatitude>
  129.                     <northBoundLatitude>83.62360382080078</northBoundLatitude>
  130.                 </EX_GeographicBoundingBox>
  131.                 <BoundingBox CRS="CRS:84" minx="-180.0" miny="-90.0" maxx="179.9862060546875" maxy="83.62360382080078"/>
  132.                 <BoundingBox CRS="EPSG:4490" minx="-90.0" miny="-180.0" maxx="83.62360382080078" maxy="179.9862060546875"/>
  133.                
  134.             </Layer>         
  135.             
  136.         </Layer>
  137.     </Capability>
  138. </WMS_Capabilities>
复制代码
WFS示例
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <wfs:WFS_Capabilities version="2.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wfs/2.0" xmlns:wfs="http://www.opengis.net/wfs/2.0" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:fes="http://www.opengis.net/fes/2.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:schemaLocation="http://www.opengis.net/wfs/2.0 http://geoserver.com/geoserver/schemas/wfs/2.0/wfs.xsd" xmlns:xml="http://www.w3.org/XML/1998/namespace" xmlns:World="World" updateSequence="2243">
  3.     <ows:ServiceIdentification>
  4.         <ows:Title>GeoServer Web Feature Service</ows:Title>
  5.         <ows:Abstract>This is the reference implementation of WFS 1.0.0 and WFS 1.1.0, supports all WFS operations including Transaction.</ows:Abstract>
  6.         <ows:Keywords>
  7.             <ows:Keyword>WFS</ows:Keyword>
  8.             <ows:Keyword>WMS</ows:Keyword>
  9.             <ows:Keyword>GEOSERVER</ows:Keyword>
  10.         </ows:Keywords>
  11.         <ows:ServiceType>WFS</ows:ServiceType>
  12.         <ows:ServiceTypeVersion>2.0.0</ows:ServiceTypeVersion>
  13.         <ows:Fees>NONE</ows:Fees>
  14.         <ows:AccessConstraints>NONE</ows:AccessConstraints>
  15.     </ows:ServiceIdentification>
  16.     <ows:ServiceProvider>
  17.         <ows:ProviderName>The Ancient Geographers</ows:ProviderName>
  18.         <ows:ServiceContact>
  19.             <ows:IndividualName>Claudius Ptolomaeus</ows:IndividualName>
  20.             <ows:PositionName>Chief Geographer</ows:PositionName>
  21.             <ows:ContactInfo>
  22.                 <ows:Phone>
  23.                     <ows:Voice/>
  24.                     <ows:Facsimile/>
  25.                 </ows:Phone>
  26.                 <ows:Address>
  27.                     <ows:DeliveryPoint/>
  28.                     <ows:City>Alexandria</ows:City>
  29.                     <ows:AdministrativeArea/>
  30.                     <ows:PostalCode/>
  31.                     <ows:Country>Egypt</ows:Country>
  32.                     <ows:ElectronicMailAddress>claudius.ptolomaeus@gmail.com</ows:ElectronicMailAddress>
  33.                 </ows:Address>
  34.             </ows:ContactInfo>
  35.         </ows:ServiceContact>
  36.     </ows:ServiceProvider>
  37.     <ows:OperationsMetadata>
  38.         <ows:Operation name="GetCapabilities">
  39.             <ows:DCP>
  40.                 <ows:HTTP>
  41.                     <ows:Get xlink:href="http://geoserver.com/geoserver/World/wfs"/>
  42.                     <ows:Post xlink:href="http://geoserver.com/geoserver/World/wfs"/>
  43.                 </ows:HTTP>
  44.             </ows:DCP>
  45.             <ows:Parameter name="AcceptVersions">
  46.                 <ows:AllowedValues>
  47.                     <ows:Value>1.0.0</ows:Value>
  48.                     <ows:Value>1.1.0</ows:Value>
  49.                     <ows:Value>2.0.0</ows:Value>
  50.                 </ows:AllowedValues>
  51.             </ows:Parameter>
  52.             <ows:Parameter name="AcceptFormats">
  53.                 <ows:AllowedValues>
  54.                     <ows:Value>text/xml</ows:Value>
  55.                 </ows:AllowedValues>
  56.             </ows:Parameter>
  57.             <ows:Parameter name="Sections">
  58.                 <ows:AllowedValues>
  59.                     <ows:Value>ServiceIdentification</ows:Value>
  60.                     <ows:Value>ServiceProvider</ows:Value>
  61.                     <ows:Value>OperationsMetadata</ows:Value>
  62.                     <ows:Value>FeatureTypeList</ows:Value>
  63.                     <ows:Value>Filter_Capabilities</ows:Value>
  64.                 </ows:AllowedValues>
  65.             </ows:Parameter>
  66.         </ows:Operation>
  67.         <ows:Operation name="DescribeFeatureType">
  68.             <ows:DCP>
  69.                 <ows:HTTP>
  70.                     <ows:Get xlink:href="http://geoserver.com/geoserver/World/wfs"/>
  71.                     <ows:Post xlink:href="http://geoserver.com/geoserver/World/wfs"/>
  72.                 </ows:HTTP>
  73.             </ows:DCP>
  74.             <ows:Parameter name="outputFormat">
  75.                 <ows:AllowedValues>
  76.                     <ows:Value>application/gml+xml; version=3.2</ows:Value>
  77.                 </ows:AllowedValues>
  78.             </ows:Parameter>
  79.         </ows:Operation>
  80.         <ows:Operation name="GetFeature">
  81.             <ows:DCP>
  82.                 <ows:HTTP>
  83.                     <ows:Get xlink:href="http://geoserver.com/geoserver/World/wfs"/>
  84.                     <ows:Post xlink:href="http://geoserver.com/geoserver/World/wfs"/>
  85.                 </ows:HTTP>
  86.             </ows:DCP>
  87.             <ows:Parameter name="resultType">
  88.                 <ows:AllowedValues>
  89.                     <ows:Value>results</ows:Value>
  90.                     <ows:Value>hits</ows:Value>
  91.                 </ows:AllowedValues>
  92.             </ows:Parameter>
  93.             <ows:Parameter name="outputFormat">
  94.                 <ows:AllowedValues>
  95.                     <ows:Value>application/gml+xml; version=3.2</ows:Value>
  96.                     <ows:Value>GML2</ows:Value>
  97.                     <ows:Value>KML</ows:Value>
  98.                     <ows:Value>SHAPE-ZIP</ows:Value>
  99.                     <ows:Value>application/geopackage+sqlite3</ows:Value>
  100.                     <ows:Value>application/json</ows:Value>
  101.                     <ows:Value>csv</ows:Value>
  102.                     <ows:Value>geopackage</ows:Value>
  103.                     <ows:Value>geopkg</ows:Value>
  104.                     <ows:Value>gml3</ows:Value>
  105.                     <ows:Value>gml32</ows:Value>
  106.                     <ows:Value>gpkg</ows:Value>
  107.                     <ows:Value>json</ows:Value>
  108.                     <ows:Value>text/csv</ows:Value>
  109.                     <ows:Value>text/xml; subtype=gml/2.1.2</ows:Value>
  110.                     <ows:Value>text/xml; subtype=gml/3.1.1</ows:Value>
  111.                     <ows:Value>text/xml; subtype=gml/3.2</ows:Value>
  112.                 </ows:AllowedValues>
  113.             </ows:Parameter>
  114.             <ows:Parameter name="resolve">
  115.                 <ows:AllowedValues>
  116.                     <ows:Value>none</ows:Value>
  117.                     <ows:Value>local</ows:Value>
  118.                 </ows:AllowedValues>
  119.             </ows:Parameter>
  120.             <ows:Constraint name="PagingIsTransactionSafe">
  121.                 <ows:NoValues/>
  122.                 <ows:DefaultValue>FALSE</ows:DefaultValue>
  123.             </ows:Constraint>
  124.             <ows:Constraint name="CountDefault">
  125.                 <ows:NoValues/>
  126.                 <ows:DefaultValue>1000000</ows:DefaultValue>
  127.             </ows:Constraint>
  128.         </ows:Operation>
  129.         <ows:Operation name="GetPropertyValue">
  130.             <ows:DCP>
  131.                 <ows:HTTP>
  132.                     <ows:Get xlink:href="http://geoserver.com/geoserver/World/wfs"/>
  133.                     <ows:Post xlink:href="http://geoserver.com/geoserver/World/wfs"/>
  134.                 </ows:HTTP>
  135.             </ows:DCP>
  136.             <ows:Parameter name="resolve">
  137.                 <ows:AllowedValues>
  138.                     <ows:Value>none</ows:Value>
  139.                     <ows:Value>local</ows:Value>
  140.                 </ows:AllowedValues>
  141.             </ows:Parameter>
  142.             <ows:Parameter name="outputFormat">
  143.                 <ows:AllowedValues>
  144.                     <ows:Value>application/gml+xml; version=3.2</ows:Value>
  145.                 </ows:AllowedValues>
  146.             </ows:Parameter>
  147.         </ows:Operation>
  148.         <ows:Operation name="ListStoredQueries">
  149.             <ows:DCP>
  150.                 <ows:HTTP>
  151.                     <ows:Get xlink:href="http://geoserver.com/geoserver/World/wfs"/>
  152.                     <ows:Post xlink:href="http://geoserver.com/geoserver/World/wfs"/>
  153.                 </ows:HTTP>
  154.             </ows:DCP>
  155.         </ows:Operation>
  156.         <ows:Operation name="DescribeStoredQueries">
  157.             <ows:DCP>
  158.                 <ows:HTTP>
  159.                     <ows:Get xlink:href="http://geoserver.com/geoserver/World/wfs"/>
  160.                     <ows:Post xlink:href="http://geoserver.com/geoserver/World/wfs"/>
  161.                 </ows:HTTP>
  162.             </ows:DCP>
  163.         </ows:Operation>
  164.         <ows:Operation name="CreateStoredQuery">
  165.             <ows:DCP>
  166.                 <ows:HTTP>
  167.                     <ows:Post xlink:href="http://geoserver.com/geoserver/World/wfs"/>
  168.                 </ows:HTTP>
  169.             </ows:DCP>
  170.             <ows:Parameter name="language">
  171.                 <ows:AllowedValues>
  172.                     <ows:Value>urn:ogc:def:queryLanguage:OGC-WFS::WFSQueryExpression</ows:Value>
  173.                 </ows:AllowedValues>
  174.             </ows:Parameter>
  175.         </ows:Operation>
  176.         <ows:Operation name="DropStoredQuery">
  177.             <ows:DCP>
  178.                 <ows:HTTP>
  179.                     <ows:Get xlink:href="http://geoserver.com/geoserver/World/wfs"/>
  180.                     <ows:Post xlink:href="http://geoserver.com/geoserver/World/wfs"/>
  181.                 </ows:HTTP>
  182.             </ows:DCP>
  183.         </ows:Operation>
  184.         <ows:Operation name="LockFeature">
  185.             <ows:DCP>
  186.                 <ows:HTTP>
  187.                     <ows:Get xlink:href="http://geoserver.com/geoserver/World/wfs"/>
  188.                     <ows:Post xlink:href="http://geoserver.com/geoserver/World/wfs"/>
  189.                 </ows:HTTP>
  190.             </ows:DCP>
  191.             <ows:Parameter name="releaseAction">
  192.                 <ows:AllowedValues>
  193.                     <ows:Value>ALL</ows:Value>
  194.                     <ows:Value>SOME</ows:Value>
  195.                 </ows:AllowedValues>
  196.             </ows:Parameter>
  197.         </ows:Operation>
  198.         <ows:Operation name="GetFeatureWithLock">
  199.             <ows:DCP>
  200.                 <ows:HTTP>
  201.                     <ows:Get xlink:href="http://geoserver.com/geoserver/World/wfs"/>
  202.                     <ows:Post xlink:href="http://geoserver.com/geoserver/World/wfs"/>
  203.                 </ows:HTTP>
  204.             </ows:DCP>
  205.             <ows:Parameter name="resultType">
  206.                 <ows:AllowedValues>
  207.                     <ows:Value>results</ows:Value>
  208.                     <ows:Value>hits</ows:Value>
  209.                 </ows:AllowedValues>
  210.             </ows:Parameter>
  211.             <ows:Parameter name="outputFormat">
  212.                 <ows:AllowedValues>
  213.                     <ows:Value>application/gml+xml; version=3.2</ows:Value>
  214.                     <ows:Value>GML2</ows:Value>
  215.                     <ows:Value>KML</ows:Value>
  216.                     <ows:Value>SHAPE-ZIP</ows:Value>
  217.                     <ows:Value>application/geopackage+sqlite3</ows:Value>
  218.                     <ows:Value>application/json</ows:Value>
  219.                     <ows:Value>csv</ows:Value>
  220.                     <ows:Value>geopackage</ows:Value>
  221.                     <ows:Value>geopkg</ows:Value>
  222.                     <ows:Value>gml3</ows:Value>
  223.                     <ows:Value>gml32</ows:Value>
  224.                     <ows:Value>gpkg</ows:Value>
  225.                     <ows:Value>json</ows:Value>
  226.                     <ows:Value>text/csv</ows:Value>
  227.                     <ows:Value>text/xml; subtype=gml/2.1.2</ows:Value>
  228.                     <ows:Value>text/xml; subtype=gml/3.1.1</ows:Value>
  229.                     <ows:Value>text/xml; subtype=gml/3.2</ows:Value>
  230.                 </ows:AllowedValues>
  231.             </ows:Parameter>
  232.             <ows:Parameter name="resolve">
  233.                 <ows:AllowedValues>
  234.                     <ows:Value>none</ows:Value>
  235.                     <ows:Value>local</ows:Value>
  236.                 </ows:AllowedValues>
  237.             </ows:Parameter>
  238.         </ows:Operation>
  239.         <ows:Operation name="Transaction">
  240.             <ows:DCP>
  241.                 <ows:HTTP>
  242.                     <ows:Get xlink:href="http://geoserver.com/geoserver/World/wfs"/>
  243.                     <ows:Post xlink:href="http://geoserver.com/geoserver/World/wfs"/>
  244.                 </ows:HTTP>
  245.             </ows:DCP>
  246.             <ows:Parameter name="inputFormat">
  247.                 <ows:AllowedValues>
  248.                     <ows:Value>application/gml+xml; version=3.2</ows:Value>
  249.                 </ows:AllowedValues>
  250.             </ows:Parameter>
  251.             <ows:Parameter name="releaseAction">
  252.                 <ows:AllowedValues>
  253.                     <ows:Value>ALL</ows:Value>
  254.                     <ows:Value>SOME</ows:Value>
  255.                 </ows:AllowedValues>
  256.             </ows:Parameter>
  257.         </ows:Operation>
  258.         <ows:Constraint name="ImplementsBasicWFS">
  259.             <ows:NoValues/>
  260.             <ows:DefaultValue>TRUE</ows:DefaultValue>
  261.         </ows:Constraint>
  262.        ...
  263.     </ows:OperationsMetadata>
  264.     <FeatureTypeList>
  265.         <FeatureType xmlns:World="World">
  266.             <Name>World:Capitals</Name>
  267.             <Title>Capitals</Title>
  268.             <Abstract/>
  269.             <ows:Keywords>
  270.                 <ows:Keyword>features</ows:Keyword>
  271.                 <ows:Keyword>Capitals</ows:Keyword>
  272.             </ows:Keywords>
  273.             <DefaultCRS>urn:ogc:def:crs:EPSG::4490</DefaultCRS>
  274.             <ows:WGS84BoundingBox>
  275.                 <ows:LowerCorner>-175.2456512451172 -41.334842681884766</ows:LowerCorner>
  276.                 <ows:UpperCorner>179.22189331054688 64.13500213623047</ows:UpperCorner>
  277.             </ows:WGS84BoundingBox>
  278.         </FeatureType>
  279.     </FeatureTypeList>
  280.     <fes:Filter_Capabilities>
  281.         <fes:Conformance>
  282.             <fes:Constraint name="ImplementsQuery">
  283.                 <ows:NoValues/>
  284.                 <ows:DefaultValue>TRUE</ows:DefaultValue>
  285.             </fes:Constraint>
  286.             ...
  287.         </fes:Conformance>
  288.         <fes:Id_Capabilities>
  289.             <fes:ResourceIdentifier name="fes:ResourceId"/>
  290.         </fes:Id_Capabilities>
  291.         <fes:Scalar_Capabilities>
  292.             <fes:LogicalOperators/>
  293.             <fes:ComparisonOperators>
  294.                 <fes:ComparisonOperator name="PropertyIsLessThan"/>
  295.                 <fes:ComparisonOperator name="PropertyIsGreaterThan"/>
  296.                 <fes:ComparisonOperator name="PropertyIsLessThanOrEqualTo"/>
  297.                 <fes:ComparisonOperator name="PropertyIsGreaterThanOrEqualTo"/>
  298.                 <fes:ComparisonOperator name="PropertyIsEqualTo"/>
  299.                 <fes:ComparisonOperator name="PropertyIsNotEqualTo"/>
  300.                 <fes:ComparisonOperator name="PropertyIsLike"/>
  301.                 <fes:ComparisonOperator name="PropertyIsBetween"/>
  302.                 <fes:ComparisonOperator name="PropertyIsNull"/>
  303.                 <fes:ComparisonOperator name="PropertyIsNil"/>
  304.             </fes:ComparisonOperators>
  305.         </fes:Scalar_Capabilities>
  306.         <fes:Spatial_Capabilities>
  307.             <fes:GeometryOperands>
  308.                 <fes:GeometryOperand name="gml:Envelope"/>
  309.                 <fes:GeometryOperand name="gml:Point"/>
  310.                 <fes:GeometryOperand name="gml:MultiPoint"/>
  311.                 <fes:GeometryOperand name="gml:LineString"/>
  312.                 <fes:GeometryOperand name="gml:MultiLineString"/>
  313.                 <fes:GeometryOperand name="gml:Polygon"/>
  314.                 <fes:GeometryOperand name="gml:MultiPolygon"/>
  315.                 <fes:GeometryOperand name="gml:MultiGeometry"/>
  316.             </fes:GeometryOperands>
  317.             <fes:SpatialOperators>
  318.                 <fes:SpatialOperator name="Disjoint"/>
  319.                 <fes:SpatialOperator name="Equals"/>
  320.                 <fes:SpatialOperator name="DWithin"/>
  321.                 <fes:SpatialOperator name="Beyond"/>
  322.                 <fes:SpatialOperator name="Intersects"/>
  323.                 <fes:SpatialOperator name="Touches"/>
  324.                 <fes:SpatialOperator name="Crosses"/>
  325.                 <fes:SpatialOperator name="Within"/>
  326.                 <fes:SpatialOperator name="Contains"/>
  327.                 <fes:SpatialOperator name="Overlaps"/>
  328.                 <fes:SpatialOperator name="BBOX"/>
  329.             </fes:SpatialOperators>
  330.         </fes:Spatial_Capabilities>
  331.         <fes:Temporal_Capabilities>
  332.             <fes:TemporalOperands>
  333.                 <fes:TemporalOperand name="gml:TimeInstant"/>
  334.                 <fes:TemporalOperand name="gml:TimePeriod"/>
  335.             </fes:TemporalOperands>
  336.             <fes:TemporalOperators>
  337.                 <fes:TemporalOperator name="After"/>
  338.                 <fes:TemporalOperator name="Before"/>
  339.                 <fes:TemporalOperator name="Begins"/>
  340.                 <fes:TemporalOperator name="BegunBy"/>
  341.                 <fes:TemporalOperator name="TContains"/>
  342.                 <fes:TemporalOperator name="During"/>
  343.                 <fes:TemporalOperator name="TEquals"/>
  344.                 <fes:TemporalOperator name="TOverlaps"/>
  345.                 <fes:TemporalOperator name="Meets"/>
  346.                 <fes:TemporalOperator name="OverlappedBy"/>
  347.                 <fes:TemporalOperator name="MetBy"/>
  348.                 <fes:TemporalOperator name="EndedBy"/>
  349.             </fes:TemporalOperators>
  350.         </fes:Temporal_Capabilities>
  351.         <fes:Functions>
  352.             <fes:Function name="abs">
  353.                 <fes:Returns>xs:int</fes:Returns>
  354.                 <fes:Arguments>
  355.                     <fes:Argument name="int">
  356.                         <fes:Type>xs:int</fes:Type>
  357.                     </fes:Argument>
  358.                 </fes:Arguments>
  359.             </fes:Function>
  360.             ...
  361.         </fes:Functions>
  362.     </fes:Filter_Capabilities>
  363. </wfs:WFS_Capabilities>
复制代码
WMTS示例
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <Capabilities xmlns="http://www.opengis.net/wmts/1.0" 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" xmlns:gml="http://www.opengis.net/gml" xsi:schemaLocation="http://www.opengis.net/wmts/1.0 http://schemas.opengis.net/wmts/1.0/wmtsGetCapabilities_response.xsd" version="1.0.0">
  3.     <ows:ServiceIdentification>
  4.         <ows:Title>GeoServer Web Map Tile Service</ows:Title>
  5.         <ows:Abstract>A compliant implementation of WMTS service.</ows:Abstract>
  6.         <ows:Keywords/>
  7.         <ows:ServiceType>OGC WMTS</ows:ServiceType>
  8.         <ows:ServiceTypeVersion>1.0.0</ows:ServiceTypeVersion>
  9.         <ows:Fees>NONE</ows:Fees>
  10.         <ows:AccessConstraints>NONE</ows:AccessConstraints>
  11.     </ows:ServiceIdentification>
  12.     <ows:ServiceProvider>
  13.         <ows:ProviderName>http://geoserver.org</ows:ProviderName>
  14.         <ows:ServiceContact>
  15.             <ows:IndividualName>Claudius Ptolomaeus</ows:IndividualName>
  16.             <ows:PositionName>Chief Geographer</ows:PositionName>
  17.             <ows:ContactInfo>
  18.                 <ows:Address>
  19.                     <ows:City>Alexandria</ows:City>
  20.                     <ows:Country>Egypt</ows:Country>
  21.                     <ows:ElectronicMailAddress>claudius.ptolomaeus@gmail.com</ows:ElectronicMailAddress>
  22.                 </ows:Address>
  23.             </ows:ContactInfo>
  24.         </ows:ServiceContact>
  25.     </ows:ServiceProvider>
  26.     <ows:OperationsMetadata>
  27.         <ows:Operation name="GetCapabilities">
  28.             <ows:DCP>
  29.                 <ows:HTTP>
  30.                     <ows:Get xlink:href="http://geoserver.com/geoserver/gwc/service/wmts?">
  31.                         <ows:Constraint name="GetEncoding">
  32.                             <ows:AllowedValues>
  33.                                 <ows:Value>KVP</ows:Value>
  34.                             </ows:AllowedValues>
  35.                         </ows:Constraint>
  36.                     </ows:Get>
  37.                 </ows:HTTP>
  38.             </ows:DCP>
  39.         </ows:Operation>
  40.         <ows:Operation name="GetTile">
  41.             <ows:DCP>
  42.                 <ows:HTTP>
  43.                     <ows:Get xlink:href="http://geoserver.com/geoserver/gwc/service/wmts?">
  44.                         <ows:Constraint name="GetEncoding">
  45.                             <ows:AllowedValues>
  46.                                 <ows:Value>KVP</ows:Value>
  47.                             </ows:AllowedValues>
  48.                         </ows:Constraint>
  49.                     </ows:Get>
  50.                 </ows:HTTP>
  51.             </ows:DCP>
  52.         </ows:Operation>
  53.         <ows:Operation name="GetFeatureInfo">
  54.             <ows:DCP>
  55.                 <ows:HTTP>
  56.                     <ows:Get xlink:href="http://geoserver.com/geoserver/gwc/service/wmts?">
  57.                         <ows:Constraint name="GetEncoding">
  58.                             <ows:AllowedValues>
  59.                                 <ows:Value>KVP</ows:Value>
  60.                             </ows:AllowedValues>
  61.                         </ows:Constraint>
  62.                     </ows:Get>
  63.                 </ows:HTTP>
  64.             </ows:DCP>
  65.         </ows:Operation>
  66.     </ows:OperationsMetadata>
  67.     <Contents>
  68.         <Layer>
  69.             <ows:Title>World:Capitals</ows:Title>
  70.             <ows:WGS84BoundingBox>
  71.                 <ows:LowerCorner>-175.2456512451172 -41.334842681884766</ows:LowerCorner>
  72.                 <ows:UpperCorner>179.22189331054688 64.13500213623047</ows:UpperCorner>
  73.             </ows:WGS84BoundingBox>
  74.             <ows:Identifier>World:Capitals</ows:Identifier>
  75.             
  76.             <Format>image/png</Format>
  77.             <Format>image/jpeg</Format>
  78.             <InfoFormat>text/plain</InfoFormat>
  79.             <InfoFormat>application/vnd.ogc.gml</InfoFormat>
  80.             <InfoFormat>text/xml</InfoFormat>
  81.             <InfoFormat>application/vnd.ogc.gml/3.1.1</InfoFormat>
  82.             <InfoFormat>text/xml</InfoFormat>
  83.             <InfoFormat>text/html</InfoFormat>
  84.             <InfoFormat>application/json</InfoFormat>
  85.             <TileMatrixSetLink>
  86.                 <TileMatrixSet>EPSG:4490</TileMatrixSet>
  87.             </TileMatrixSetLink>
  88.             <TileMatrixSetLink>
  89.                 <TileMatrixSet>EPSG:4326</TileMatrixSet>
  90.                 <TileMatrixSetLimits>
  91.                     <TileMatrixLimits>
  92.                         <TileMatrix>EPSG:4326:0</TileMatrix>
  93.                         <MinTileRow>0</MinTileRow>
  94.                         <MaxTileRow>0</MaxTileRow>
  95.                         <MinTileCol>0</MinTileCol>
  96.                         <MaxTileCol>1</MaxTileCol>
  97.                     </TileMatrixLimits>
  98.                     ...
  99.                     <TileMatrixLimits>
  100.                         <TileMatrix>EPSG:4326:21</TileMatrix>
  101.                         <MinTileRow>301349</MinTileRow>
  102.                         <MaxTileRow>1530161</MaxTileRow>
  103.                         <MinTileCol>55392</MinTileCol>
  104.                         <MaxTileCol>4185238</MaxTileCol>
  105.                     </TileMatrixLimits>
  106.                 </TileMatrixSetLimits>
  107.             </TileMatrixSetLink>
  108.             <ResourceURL format="image/png" resourceType="tile" template="http://geoserver.com/geoserver/gwc/service/wmts/rest/World:Capitals/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
  109.             <ResourceURL format="image/jpeg" resourceType="tile" template="http://geoserver.com/geoserver/gwc/service/wmts/rest/World:Capitals/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
  110.             <ResourceURL format="text/plain" resourceType="FeatureInfo" template="http://geoserver.com/geoserver/gwc/service/wmts/rest/World:Capitals/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
  111.             <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="http://geoserver.com/geoserver/gwc/service/wmts/rest/World:Capitals/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
  112.             <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://geoserver.com/geoserver/gwc/service/wmts/rest/World:Capitals/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
  113.             <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="http://geoserver.com/geoserver/gwc/service/wmts/rest/World:Capitals/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
  114.             <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://geoserver.com/geoserver/gwc/service/wmts/rest/World:Capitals/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
  115.             <ResourceURL format="text/html" resourceType="FeatureInfo" template="http://geoserver.com/geoserver/gwc/service/wmts/rest/World:Capitals/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
  116.             <ResourceURL format="application/json" resourceType="FeatureInfo" template="http://geoserver.com/geoserver/gwc/service/wmts/rest/World:Capitals/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
  117.         </Layer>
  118.     </Contents>
  119.     <ServiceMetadataURL xlink:href="http://geoserver.com/geoserver/gwc/service/wmts?SERVICE=wmts&REQUEST=getcapabilities&VERSION=1.0.0"/>
  120.     <ServiceMetadataURL xlink:href="http://geoserver.com/geoserver/gwc/service/wmts/rest/WMTSCapabilities.xml"/>
  121. </Capabilities>
复制代码
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!
回复

使用道具 举报

0 个回复

倒序浏览

快速回复

您需要登录后才可以回帖 登录 or 立即注册

本版积分规则

海哥

金牌会员
这个人很懒什么都没写!

标签云

快速回复 返回顶部 返回列表