OGC標準介面學習

来源:https://www.cnblogs.com/walkAlwaysInCode/archive/2023/04/25/17353902.html
-Advertisement-
Play Games

本文首發於公眾號:Hunter後端 原文鏈接:Django筆記三十之log日誌的記錄詳解 這一節介紹在 Django 系統里使用 logging 記錄日誌 以下是一個簡單的 logging 模塊示例,可以先預覽一下,接下來會詳細介紹各個模塊的具體功能: LOGGING = { 'version': ...


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 輸出格式

出參

示例


{
    "elementFormDefault": "qualified",
    "targetNamespace": "topp",//命名空間
    "targetPrefix": "topp",
    "featureTypes": [
        {
            "typeName": "state",//圖層名
            "properties": [
                {
                    "name": "geom",//欄位名
                    "maxOccurs": 1,
                    "minOccurs": 0,
                    "nillable": true,
                    "type": "gml:MultiPolygon",
                    "localType": "MultiPolygon"//欄位類型
                },
                {
                    "name": "objectid",
                    "maxOccurs": 1,
                    "minOccurs": 0,
                    "nillable": true,
                    "type": "xsd:int",
                    "localType": "int"
                },
                {
                    "name": "name",
                    "maxOccurs": 1,
                    "minOccurs": 0,
                    "nillable": true,
                    "type": "xsd:string",
                    "localType": "string"
                }
            ]
        }
    ]
}

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 featureId
CQL_FILTER INTERSECTS(the_geom,POINT(-74.817265 40.5296504)) cql過濾

出參

示例

{
    "type": "FeatureCollection",
    "features": [
        {
            "type": "Feature",
            "id": "fid.1",
            "geometry": {// geometry
                "type": "MultiPolygon",
                "coordinates": [
                    [
                        [
                            [
                                123.49846,
                                25.74109
                            ],
                            [
                                123.49878,
                                25.74333
                            ],
                            [
                                123.48812,
                                25.74812
                            ],
                            [
                                123.47404,
                                25.74846
                            ],
                            [
                                123.46312,
                                25.74766
                            ],
                            [
                                123.43935,
                                25.7406
                            ],
                            [
                                123.43155,
                                25.72788
                            ],
                            [
                                123.45451,
                                25.72004
                            ],
                            [
                                123.48675,
                                25.7197
                            ],
                            [
                                123.49728,
                                25.72717
                            ],
                            [
                                123.49846,
                                25.74109
                            ]
                        ]
                    ]
                ]
            },
            "geometry_name": "the_geom", // geometry欄位名
            "properties": { //圖層結構化數據 
                "SmUserID": 0,
                "SmID": 679,
                "SmGeometrySize": 188,
                "SmGeoPosition": 293879664,
                "SmArea": 1.6862486784110367E7,
                "SQMI": null,
                "SQKM": null,
                "POP_1994": null,
                "ColorID": 1,
                "COUNTRY": "",
                "CONTINENT": "",
                "COLOR_MAP": "1",
                "CAPITAL": ""
            }
        }
    ],
    "totalFeatures": 1889,//總條數
    "numberMatched": 1889,//命中條數
    "numberReturned": 1,//返回條數
    "timeStamp": "2023-04-25T07:33:34.281Z",
    "crs": {//坐標系
        "type": "name",
        "properties": {
            "name": "urn:ogc:def:crs:EPSG::4490"
        }
    }
}

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示例

<?xml version="1.0" encoding="UTF-8"?>
<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">
    <Service>
        <Name>WMS</Name>
        <Title>GeoServer Web Map Service</Title>
        <Abstract>A compliant implementation of WMS plus most of the SLD extension (dynamic styling). Can also generate PDF, SVG, KML, GeoRSS</Abstract>
        <KeywordList>
            <Keyword>WFS</Keyword>
            <Keyword>WMS</Keyword>
            <Keyword>GEOSERVER</Keyword>
        </KeywordList>
        <OnlineResource xlink:type="simple" xlink:href="http://geoserver.org"/>
        <ContactInformation>
            <ContactPersonPrimary>
                <ContactPerson>Claudius Ptolomaeus</ContactPerson>
                <ContactOrganization>The Ancient Geographers</ContactOrganization>
            </ContactPersonPrimary>
            <ContactPosition>Chief Geographer</ContactPosition>
            <ContactAddress>
                <AddressType>Work</AddressType>
                <Address/>
                <City>Alexandria</City>
                <StateOrProvince/>
                <PostCode/>
                <Country>Egypt</Country>
            </ContactAddress>
            <ContactVoiceTelephone/>
            <ContactFacsimileTelephone/>
            <ContactElectronicMailAddress>[email protected]</ContactElectronicMailAddress>
        </ContactInformation>
        <Fees>NONE</Fees>
        <AccessConstraints>NONE</AccessConstraints>
    </Service>
    <Capability>
        <Request>
            <GetCapabilities>
                <Format>text/xml</Format>
                <DCPType>
                    <HTTP>
                        <Get>
                            <OnlineResource xlink:type="simple" xlink:href="http://geoserver.com/geoserver/World/ows?SERVICE=WMS&amp;"/>
                        </Get>
                        <Post>
                            <OnlineResource xlink:type="simple" xlink:href="http://geoserver.com/geoserver/World/ows?SERVICE=WMS&amp;"/>
                        </Post>
                    </HTTP>
                </DCPType>
            </GetCapabilities>
            <GetMap>
                <Format>image/png</Format>
                <Format>application/atom+xml</Format>
                <Format>application/geopackage+sqlite3</Format>
                <Format>application/json;type=utfgrid</Format>
                <Format>application/pdf</Format>
                <Format>application/x-sqlite3</Format>
                <Format>image/geotiff</Format>
                <Format>image/geotiff8</Format>
                <Format>image/gif</Format>
                <Format>image/jpeg</Format>
                <Format>image/png; mode=8bit</Format>
                <Format>image/svg+xml</Format>
                <Format>image/tiff</Format>
                <Format>image/tiff8</Format>
                <Format>image/vnd.jpeg-png</Format>
                <Format>image/vnd.jpeg-png8</Format>
                <Format>text/html; subtype=openlayers</Format>
                <Format>text/html; subtype=openlayers2</Format>
                <Format>text/html; subtype=openlayers3</Format>
                <DCPType>
                    <HTTP>
                        <Get>
                            <OnlineResource xlink:type="simple" xlink:href="http://geoserver.com/geoserver/World/ows?SERVICE=WMS&amp;"/>
                        </Get>
                    </HTTP>
                </DCPType>
            </GetMap>
            <GetFeatureInfo>
                <Format>text/plain</Format>
                <Format>application/vnd.ogc.gml</Format>
                <Format>text/xml</Format>
                <Format>application/vnd.ogc.gml/3.1.1</Format>
                <Format>text/xml; subtype=gml/3.1.1</Format>
                <Format>text/html</Format>
                <Format>application/json</Format>
                <DCPType>
                    <HTTP>
                        <Get>
                            <OnlineResource xlink:type="simple" xlink:href="http://geoserver.com/geoserver/World/ows?SERVICE=WMS&amp;"/>
                        </Get>
                    </HTTP>
                </DCPType>
            </GetFeatureInfo>
        </Request>
        <Exception>
            <Format>XML</Format>
            <Format>INIMAGE</Format>
            <Format>BLANK</Format>
            <Format>JSON</Format>
        </Exception>
        <Layer>
            <Title>GeoServer Web Map Service</Title>
            <Abstract>A compliant implementation of WMS plus most of the SLD extension (dynamic styling). Can also generate PDF, SVG, KML, GeoRSS</Abstract>
            <!--All supported EPSG projections:-->
            <CRS>EPSG:4326</CRS>
            <CRS>EPSG:4490</CRS>
            ...
            <CRS>CRS:84</CRS>
            <EX_GeographicBoundingBox>
                <westBoundLongitude>-180.0</westBoundLongitude>
                <eastBoundLongitude>464356.09312885156</eastBoundLongitude>
                <southBoundLatitude>-90.0</southBoundLatitude>
                <northBoundLatitude>2871057.3542110883</northBoundLatitude>
            </EX_GeographicBoundingBox>
            <BoundingBox CRS="CRS:84" minx="-180.0" miny="-90.0" maxx="464356.09312885156" maxy="2871057.3542110883"/>
            <Layer queryable="1" opaque="0">
                <Name>Countries</Name>
                <Title>World:Countries</Title>
                <Abstract/>
                <KeywordList>
                    <Keyword>features</Keyword>
                    <Keyword>Countries</Keyword>
                </KeywordList>
                <CRS>EPSG:4490</CRS>
                <CRS>CRS:84</CRS>
                <EX_GeographicBoundingBox>
                    <westBoundLongitude>-180.0</westBoundLongitude>
                    <eastBoundLongitude>179.9862060546875</eastBoundLongitude>
                    <southBoundLatitude>-90.0</southBoundLatitude>
                    <northBoundLatitude>83.62360382080078</northBoundLatitude>
                </EX_GeographicBoundingBox>
                <BoundingBox CRS="CRS:84" minx="-180.0" miny="-90.0" maxx="179.9862060546875" maxy="83.62360382080078"/>
                <BoundingBox CRS="EPSG:4490" minx="-90.0" miny="-180.0" maxx="83.62360382080078" maxy="179.9862060546875"/>
                <Style>
                    <Name>polygon</Name>
                    <Title>Default Polygon</Title>
                    <Abstract>A sample style that draws a polygon</Abstract>
                    <LegendURL width="20" height="20">
                        <Format>image/png</Format>
                        <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://geoserver.com/geoserver/World/ows?service=WMS&amp;version=1.3.0&amp;request=GetLegendGraphic&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=World:Countries"/>
                    </LegendURL>
                </Style>
            </Layer>          
            
        </Layer>
    </Capability>
</WMS_Capabilities>

WFS示例

<?xml version="1.0" encoding="UTF-8"?>
<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">
    <ows:ServiceIdentification>
        <ows:Title>GeoServer Web Feature Service</ows:Title>
        <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>
        <ows:Keywords>
            <ows:Keyword>WFS</ows:Keyword>
            <ows:Keyword>WMS</ows:Keyword>
            <ows:Keyword>GEOSERVER</ows:Keyword>
        </ows:Keywords>
        <ows:ServiceType>WFS</ows:ServiceType>
        <ows:ServiceTypeVersion>2.0.0</ows:ServiceTypeVersion>
        <ows:Fees>NONE</ows:Fees>
        <ows:AccessConstraints>NONE</ows:AccessConstraints>
    </ows:ServiceIdentification>
    <ows:ServiceProvider>
        <ows:ProviderName>The Ancient Geographers</ows:ProviderName>
        <ows:ServiceContact>
            <ows:IndividualName>Claudius Ptolomaeus</ows:IndividualName>
            <ows:PositionName>Chief Geographer</ows:PositionName>
            <ows:ContactInfo>
                <ows:Phone>
                    <ows:Voice/>
                    <ows:Facsimile/>
                </ows:Phone>
                <ows:Address>
                    <ows:DeliveryPoint/>
                    <ows:City>Alexandria</ows:City>
                    <ows:AdministrativeArea/>
                    <ows:PostalCode/>
                    <ows:Country>Egypt</ows:Country>
                    <ows:ElectronicMailAddress>[email protected]</ows:ElectronicMailAddress>
                </ows:Address>
            </ows:ContactInfo>
        </ows:ServiceContact>
    </ows:ServiceProvider>
    <ows:OperationsMetadata>
        <ows:Operation name="GetCapabilities">
            <ows:DCP>
                <ows:HTTP>
                    <ows:Get xlink:href="http://geoserver.com/geoserver/World/wfs"/>
                    <ows:Post xlink:href="http://geoserver.com/geoserver/World/wfs"/>
                </ows:HTTP>
            </ows:DCP>
            <ows:Parameter name="AcceptVersions">
                <ows:AllowedValues>
                    <ows:Value>1.0.0</ows:Value>
                    <ows:Value>1.1.0</ows:Value>
                    <ows:Value>2.0.0</ows:Value>
                </ows:AllowedValues>
            </ows:Parameter>
            <ows:Parameter name="AcceptFormats">
                <ows:AllowedValues>
                    <ows:Value>text/xml</ows:Value>
                </ows:AllowedValues>
            </ows:Parameter>
            <ows:Parameter name="Sections">
                <ows:AllowedValues>
                    <ows:Value>ServiceIdentification</ows:Value>
                    <ows:Value>ServiceProvider</ows:Value>
                    <ows:Value>OperationsMetadata</ows:Value>
                    <ows:Value>FeatureTypeList</ows:Value>
                    <ows:Value>Filter_Capabilities</ows:Value>
                </ows:AllowedValues>
            </ows:Parameter>
        </ows:Operation>
        <ows:Operation name="DescribeFeatureType">
            <ows:DCP>
                <ows:HTTP>
                    <ows:Get xlink:href="http://geoserver.com/geoserver/World/wfs"/>
                    <ows:Post xlink:href="http://geoserver.com/geoserver/World/wfs"/>
                </ows:HTTP>
            </ows:DCP>
            <ows:Parameter name="outputFormat">
                <ows:AllowedValues>
                    <ows:Value>application/gml+xml; version=3.2</ows:Value>
                </ows:AllowedValues>
            </ows:Parameter>
        </ows:Operation>
        <ows:Operation name="GetFeature">
            <ows:DCP>
                <ows:HTTP>
                    <ows:Get xlink:href="http://geoserver.com/geoserver/World/wfs"/>
                    <ows:Post xlink:href="http://geoserver.com/geoserver/World/wfs"/>
                </ows:HTTP>
            </ows:DCP>
            <ows:Parameter name="resultType">
                <ows:AllowedValues>
                    <ows:Value>results</ows:Value>
                    <ows:Value>hits</ows:Value>
                </ows:AllowedValues>
            </ows:Parameter>
            <ows:Parameter name="outputFormat">
                <ows:AllowedValues>
                    <ows:Value>application/gml+xml; version=3.2</ows:Value>
                    <ows:Value>GML2</ows:Value>
                    <ows:Value>KML</ows:Value>
                    <ows:Value>SHAPE-ZIP</ows:Value>
                    <ows:Value>application/geopackage+sqlite3</ows:Value>
                    <ows:Value>application/json</ows:Value>
                    <ows:Value>csv</ows:Value>
                    <ows:Value>geopackage</ows:Value>
                    <ows:Value>geopkg</ows:Value>
                    <ows:Value>gml3</ows:Value>
                    <ows:Value>gml32</ows:Value>
                    <ows:Value>gpkg</ows:Value>
                    <ows:Value>json</ows:Value>
                    <ows:Value>text/csv</ows:Value>
                    <ows:Value>text/xml; subtype=gml/2.1.2</ows:Value>
                    <ows:Value>text/xml; subtype=gml/3.1.1</ows:Value>
                    <ows:Value>text/xml; subtype=gml/3.2</ows:Value>
                </ows:AllowedValues>
            </ows:Parameter>
            <ows:Parameter name="resolve">
                <ows:AllowedValues>
                    <ows:Value>none</ows:Value>
                    <ows:Value>local</ows:Value>
                </ows:AllowedValues>
            </ows:Parameter>
            <ows:Constraint name="PagingIsTransactionSafe">
                <ows:NoValues/>
                <ows:DefaultValue>FALSE</ows:DefaultValue>
            </ows:Constraint>
            <ows:Constraint name="CountDefault">
                <ows:NoValues/>
                <ows:DefaultValue>1000000</ows:DefaultValue>
            </ows:Constraint>
        </ows:Operation>
        <ows:Operation name="GetPropertyValue">
            <ows:DCP>
                <ows:HTTP>
                    <ows:Get xlink:href="http://geoserver.com/geoserver/World/wfs"/>
                    <ows:Post xlink:href="http://geoserver.com/geoserver/World/wfs"/>
                </ows:HTTP>
            </ows:DCP>
            <ows:Parameter name="resolve">
                <ows:AllowedValues>
                    <ows:Value>none</ows:Value>
                    <ows:Value>local</ows:Value>
                </ows:AllowedValues>
            </ows:Parameter>
            <ows:Parameter name="outputFormat">
                <ows:AllowedValues>
                    <ows:Value>application/gml+xml; version=3.2</ows:Value>
                </ows:AllowedValues>
            </ows:Parameter>
        </ows:Operation>
        <ows:Operation name="ListStoredQueries">
            <ows:DCP>
                <ows:HTTP>
                    <ows:Get xlink:href="http://geoserver.com/geoserver/World/wfs"/>
                    <ows:Post xlink:href="http://geoserver.com/geoserver/World/wfs"/>
                </ows:HTTP>
            </ows:DCP>
        </ows:Operation>
        <ows:Operation name="DescribeStoredQueries">
            <ows:DCP>
                <ows:HTTP>
                    <ows:Get xlink:href="http://geoserver.com/geoserver/World/wfs"/>
                    <ows:Post xlink:href="http://geoserver.com/geoserver/World/wfs"/>
                </ows:HTTP>
            </ows:DCP>
        </ows:Operation>
        <ows:Operation name="CreateStoredQuery">
            <ows:DCP>
                <ows:HTTP>
                    <ows:Post xlink:href="http://geoserver.com/geoserver/World/wfs"/>
                </ows:HTTP>
            </ows:DCP>
            <ows:Parameter name="language">
                <ows:AllowedValues>
                    <ows:Value>urn:ogc:def:queryLanguage:OGC-WFS::WFSQueryExpression</ows:Value>
                </ows:AllowedValues>
            </ows:Parameter>
        </ows:Operation>
        <ows:Operation name="DropStoredQuery">
            <ows:DCP>
                <ows:HTTP>
                    <ows:Get xlink:href="http://geoserver.com/geoserver/World/wfs"/>
                    <ows:Post xlink:href="http://geoserver.com/geoserver/World/wfs"/>
                </ows:HTTP>
            </ows:DCP>
        </ows:Operation>
        <ows:Operation name="LockFeature">
            <ows:DCP>
                <ows:HTTP>
                    <ows:Get xlink:href="http://geoserver.com/geoserver/World/wfs"/>
                    <ows:Post xlink:href="http://geoserver.com/geoserver/World/wfs"/>
                </ows:HTTP>
            </ows:DCP>
            <ows:Parameter name="releaseAction">
                <ows:AllowedValues>
                    <ows:Value>ALL</ows:Value>
                    <ows:Value>SOME</ows:Value>
                </ows:AllowedValues>
            </ows:Parameter>
        </ows:Operation>
        <ows:Operation name="GetFeatureWithLock">
            <ows:DCP>
                <ows:HTTP>
                    <ows:Get xlink:href="http://geoserver.com/geoserver/World/wfs"/>
                    <ows:Post xlink:href="http://geoserver.com/geoserver/World/wfs"/>
                </ows:HTTP>
            </ows:DCP>
            <ows:Parameter name="resultType">
                <ows:AllowedValues>
                    <ows:Value>results</ows:Value>
                    <ows:Value>hits</ows:Value>
                </ows:AllowedValues>
            </ows:Parameter>
            <ows:Parameter name="outputFormat">
                <ows:AllowedValues>
                    <ows:Value>application/gml+xml; version=3.2</ows:Value>
                    <ows:Value>GML2</ows:Value>
                    <ows:Value>KML</ows:Value>
                    <ows:Value>SHAPE-ZIP</ows:Value>
                    <ows:Value>application/geopackage+sqlite3</ows:Value>
                    <ows:Value>application/json</ows:Value>
                    <ows:Value>csv</ows:Value>
                    <ows:Value>geopackage</ows:Value>
                    <ows:Value>geopkg</ows:Value>
                    <ows:Value>gml3</ows:Value>
                    <ows:Value>gml32</ows:Value>
                    <ows:Value>gpkg</ows:Value>
                    <ows:Value>json</ows:Value>
                    <ows:Value>text/csv</ows:Value>
                    <ows:Value>text/xml; subtype=gml/2.1.2</ows:Value>
                    <ows:Value>text/xml; subtype=gml/3.1.1</ows:Value>
                    <ows:Value>text/xml; subtype=gml/3.2</ows:Value>
                </ows:AllowedValues>
            </ows:Parameter>
            <ows:Parameter name="resolve">
                <ows:AllowedValues>
                    <ows:Value>none</ows:Value>
                    <ows:Value>local</ows:Value>
                </ows:AllowedValues>
            </ows:Parameter>
        </ows:Operation>
        <ows:Operation name="Transaction">
            <ows:DCP>
                <ows:HTTP>
                    <ows:Get xlink:href="http://geoserver.com/geoserver/World/wfs"/>
                    <ows:Post xlink:href="http://geoserver.com/geoserver/World/wfs"/>
                </ows:HTTP>
            </ows:DCP>
            <ows:Parameter name="inputFormat">
                <ows:AllowedValues>
                    <ows:Value>application/gml+xml; version=3.2</ows:Value>
                </ows:AllowedValues>
            </ows:Parameter>
            <ows:Parameter name="releaseAction">
                <ows:AllowedValues>
                    <ows:Value>ALL</ows:Value>
                    <ows:Value>SOME</ows:Value>
                </ows:AllowedValues>
            </ows:Parameter>
        </ows:Operation>
        <ows:Constraint name="ImplementsBasicWFS">
            <ows:NoValues/>
            <ows:DefaultValue>TRUE</ows:DefaultValue>
        </ows:Constraint>
       ...
    </ows:OperationsMetadata>
    <FeatureTypeList>
        <FeatureType xmlns:World="World">
            <Name>World:Capitals</Name>
            <Title>Capitals</Title>
            <Abstract/>
            <ows:Keywords>
                <ows:Keyword>features</ows:Keyword>
                <ows:Keyword>Capitals</ows:Keyword>
            </ows:Keywords>
            <DefaultCRS>urn:ogc:def:crs:EPSG::4490</DefaultCRS>
            <ows:WGS84BoundingBox>
                <ows:LowerCorner>-175.2456512451172 -41.334842681884766</ows:LowerCorner>
                <ows:UpperCorner>179.22189331054688 64.13500213623047</ows:UpperCorner>
            </ows:WGS84BoundingBox>
        </FeatureType>
    </FeatureTypeList>
    <fes:Filter_Capabilities>
        <fes:Conformance>
            <fes:Constraint name="ImplementsQuery">
                <ows:NoValues/>
                <ows:DefaultValue>TRUE</ows:DefaultValue>
            </fes:Constraint>
            ...
        </fes:Conformance>
        <fes:Id_Capabilities>
            <fes:ResourceIdentifier name="fes:ResourceId"/>
        </fes:Id_Capabilities>
        <fes:Scalar_Capabilities>
            <fes:LogicalOperators/>
            <fes:ComparisonOperators>
                <fes:ComparisonOperator name="PropertyIsLessThan"/>
                <fes:ComparisonOperator name="PropertyIsGreaterThan"/>
                <fes:ComparisonOperator name="PropertyIsLessThanOrEqualTo"/>
                <fes:ComparisonOperator name="PropertyIsGreaterThanOrEqualTo"/>
                <fes:ComparisonOperator name="PropertyIsEqualTo"/>
                <fes:ComparisonOperator name="PropertyIsNotEqualTo"/>
                <fes:ComparisonOperator name="PropertyIsLike"/>
                <fes:ComparisonOperator name="PropertyIsBetween"/>
                <fes:ComparisonOperator name="PropertyIsNull"/>
                <fes:ComparisonOperator name="PropertyIsNil"/>
            </fes:ComparisonOperators>
        </fes:Scalar_Capabilities>
        <fes:Spatial_Capabilities>
            <fes:GeometryOperands>
                <fes:GeometryOperand name="gml:Envelope"/>
                <fes:GeometryOperand name="gml:Point"/>
                <fes:GeometryOperand name="gml:MultiPoint"/>
                <fes:GeometryOperand name="gml:LineString"/>
                <fes:GeometryOperand name="gml:MultiLineString"/>
                <fes:GeometryOperand name="gml:Polygon"/>
                <fes:GeometryOperand name="gml:MultiPolygon"/>
                <fes:GeometryOperand name="gml:MultiGeometry"/>
            </fes:GeometryOperands>
            <fes:SpatialOperators>
                <fes:SpatialOperator name="Disjoint"/>
                <fes:SpatialOperator name="Equals"/>
                <fes:SpatialOperator name="DWithin"/>
                <fes:SpatialOperator name="Beyond"/>
                <fes:SpatialOperator name="Intersects"/>
                <fes:SpatialOperator name="Touches"/>
                <fes:SpatialOperator name="Crosses"/>
                <fes:SpatialOperator name="Within"/>
                <fes:SpatialOperator name="Contains"/>
                <fes:SpatialOperator name="Overlaps"/>
                <fes:SpatialOperator name="BBOX"/>
            </fes:SpatialOperators>
        </fes:Spatial_Capabilities>
        <fes:Temporal_Capabilities>
            <fes:TemporalOperands>
                <fes:TemporalOperand name="gml:TimeInstant"/>
                <fes:TemporalOperand name="gml:TimePeriod"/>
            </fes:TemporalOperands>
            <fes:TemporalOperators>
                <fes:TemporalOperator name="After"/>
                <fes:TemporalOperator name="Before"/>
                <fes:TemporalOperator name="Begins"/>
                <fes:TemporalOperator name="BegunBy"/>
                <fes:TemporalOperator name="TContains"/>
                <fes:TemporalOperator name="During"/>
                <fes:TemporalOperator name="TEquals"/>
                <fes:TemporalOperator name="TOverlaps"/>
                <fes:TemporalOperator name="Meets"/>
                <fes:TemporalOperator name="OverlappedBy"/>
                <fes:TemporalOperator name="MetBy"/>
                <fes:TemporalOperator name="EndedBy"/>
            </fes:TemporalOperators>
        </fes:Temporal_Capabilities>
        <fes:Functions>
            <fes:Function name="abs">
                <fes:Returns>xs:int</fes:Returns>
                <fes:Arguments>
                    <fes:Argument name="int">
                        <fes:Type>xs:int</fes:Type>
                    </fes:Argument>
                </fes:Arguments>
            </fes:Function>
            ...
        </fes:Functions>
    </fes:Filter_Capabilities>
</wfs:WFS_Capabilities>

WMTS示例

<?xml version="1.0" encoding="UTF-8"?>
<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">
    <ows:ServiceIdentification>
        <ows:Title>GeoServer Web Map Tile Service</ows:Title>
        <ows:Abstract>A compliant implementation of WMTS service.</ows:Abstract>
        <ows:Keywords/>
        <ows:ServiceType>OGC WMTS</ows:ServiceType>
        <ows:ServiceTypeVersion>1.0.0</ows:ServiceTypeVersion>
        <ows:Fees>NONE</ows:Fees>
        <ows:AccessConstraints>NONE</ows:AccessConstraints>
    </ows:ServiceIdentification>
    <ows:ServiceProvider>
        <ows:ProviderName>http://geoserver.org</ows:ProviderName>
        <ows:ServiceContact>
            <ows:IndividualName>Claudius Ptolomaeus</ows:IndividualName>
            <ows:PositionName>Chief Geographer</ows:PositionName>
            <ows:ContactInfo>
                <ows:Address>
                    <ows:City>Alexandria</ows:City>
                    <ows:Country>Egypt</ows:Country>
                    <ows:ElectronicMailAddress>[email protected]</ows:ElectronicMailAddress>
                </ows:Address>
            </ows:ContactInfo>
        </ows:ServiceContact>
    </ows:ServiceProvider>
    <ows:OperationsMetadata>
        <ows:Operation name="GetCapabilities">
            <ows:DCP>
                <ows:HTTP>
                    <ows:Get xlink:href="http://geoserver.com/geoserver/gwc/service/wmts?">
                        <ows:Constraint name="GetEncoding">
                            <ows:AllowedValues>
                                <ows:Value>KVP</ows:Value>
                            </ows:AllowedValues>
                        </ows:Constraint>
                    </ows:Get>
                </ows:HTTP>
            </ows:DCP>
        </ows:Operation>
        <ows:Operation name="GetTile">
            <ows:DCP>
                <ows:HTTP>
                    <ows:Get xlink:href="http://geoserver.com/geoserver/gwc/service/wmts?">
                        <ows:Constraint name="GetEncoding">
                            <ows:AllowedValues>
                                <ows:Value>KVP</ows:Value>
                            </ows:AllowedValues>
                        </ows:Constraint>
                    </ows:Get>
                </ows:HTTP>
            </ows:DCP>
        </ows:Operation>
        <ows:Operation name="GetFeatureInfo">
            <ows:DCP>
                <ows:HTTP>
                    <ows:Get xlink:href="http://geoserver.com/geoserver/gwc/service/wmts?">
                        <ows:Constraint name="GetEncoding">
                            <ows:AllowedValues>
                                <ows:Value>KVP</ows:Value>
                            </ows:AllowedValues>
                        </ows:Constraint>
                    </ows:Get>
                </ows:HTTP>
            </ows:DCP>
        </ows:Operation>
    </ows:OperationsMetadata>
    <Contents>
        <Layer>
            <ows:Title>World:Capitals</ows:Title>
            <ows:WGS84BoundingBox>
                <ows:LowerCorner>-175.2456512451172 -41.334842681884766</ows:LowerCorner>
                <ows:UpperCorner>179.22189331054688 64.13500213623047</ows:UpperCorner>
            </ows:WGS84BoundingBox>
            <ows:Identifier>World:Capitals</ows:Identifier>
            <Style isDefault="true">
                <ows:Identifier>point</ows:Identifier>
                <LegendURL format="image/png" xlink:href="http://geoserver.com/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=World%3ACapitals" width="20" height="20"/>
            </Style>
            <Format>image/png</Format>
            <Format>image/jpeg</Format>
            <InfoFormat>text/plain</InfoFormat>
            <InfoFormat>application/vnd.ogc.gml</InfoFormat>
            <InfoFormat>text/xml</InfoFormat>
            <InfoFormat>application/vnd.ogc.gml/3.1.1</InfoFormat>
            <InfoFormat>text/xml</InfoFormat>
            <InfoFormat>text/html</InfoFormat>
            <InfoFormat>application/json</InfoFormat>
            <TileMatrixSetLink>
                <TileMatrixSet>EPSG:4490</TileMatrixSet>
            </TileMatrixSetLink>
            <TileMatrixSetLink>
                <TileMatrixSet>EPSG:4326</TileMatrixSet>
                <TileMatrixSetLimits>
                    <TileMatrixLimits>
                        <TileMatrix>EPSG:4326:0</TileMatrix>
                        <MinTileRow>0</MinTileRow>
                        <MaxTileRow>0</MaxTileRow>
                        <MinTileCol>0</MinTileCol>
                        <MaxTileCol>1</MaxTileCol>
                    </TileMatrixLimits>
                    ...
                    <TileMatrixLimits>
                        <TileMatrix>EPSG:4326:21</TileMatrix>
                        <MinTileRow>301349</MinTileRow>
                        <MaxTileRow>1530161</MaxTileRow>
                        <MinTileCol>55392</MinTileCol>
                        <MaxTileCol>4185238</MaxTileCol>
                    </TileMatrixLimits>
                </TileMatrixSetLimits>
            </TileMatrixSetLink>
            <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"/>
            <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"/>
            <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"/>
            <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"/>
            <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"/>
            <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"/>
            <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"/>
            <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"/>
            <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"/>
        </Layer>
    </Contents>
    <ServiceMetadataURL xlink:href="http://geoserver.com/geoserver/gwc/service/wmts?SERVICE=wmts&amp;REQUEST=getcapabilities&amp;VERSION=1.0.0"/>
    <ServiceMetadataURL xlink:href="http://geoserver.com/geoserver/gwc/service/wmts/rest/WMTSCapabilities.xml"/>
</Capabilities>


您的分享是我們最大的動力!

-Advertisement-
Play Games
更多相關文章
  • 昨天接到一個新的需要,在後臺文章編輯器中,每一個文章的正文前面,可以單獨添加一個電頭欄位,但是如果在富文本編輯器中最上面就添加圖片的話,圖片就會把電頭和正文中的文字給隔開。需要做的是獲取到電頭欄位,然後在正文中的文字部分的最前面插入電頭欄位。具體看下圖: 原始的代碼: <div class="det ...
  • 在系統架構設計中非常重要的一環是要做數據監控和數據最終一致性,這裡主要講如何去補償?補償的方案哪些?這就引出來數據監控系統了。有小伙伴會問了,為什麼業務狀態監控系統可以做補償?別急,且看本文。 ...
  • 題目一:在一個採用頁式虛擬存儲管理的系統中,有一用戶作業,它依次要訪問的頁面序列是1,2,3,4,1,2,5,1,2,3,4,5.假定分配給該作業的頁數為3且作業初始時未裝載頁面,那麼採用FIFO調度演算法產生的缺頁中斷數為多少,採用LRU調度演算法產生的缺頁中斷數為多少? 解析: FIFO調度演算法:先 ...
  • 簡介 代理模式(Proxy Pattern)是一種結構型設計模式,用一個類來代理另一個類或幾個類的功能。 在代理模式中,我們創建具有現有對象的對象,以便向外界提供功能介面。 延遲初始化(虛擬代理)。如果你有一個偶爾使用的重量級服務對象,一直保持該對象運行會消耗系統資源時,可使用代理模式。 訪問控制( ...
  • PHP的類是單一繼承模式,也就是每個類只能繼承一個父類(基類)。 但有時需要引入更多通用(共用)的方法,同時這些方法又不適合集成到基類。 那麼這時,就需要使用其他方法來引入這些方法。其中trait,就是方法之一。 trait是PHP5.4之後出現的一種代碼復用方法,形式和Class非常相似,同時可以 ...
  • 最後的項目:多線程 Web 伺服器 構建多線程 Web 伺服器 在 socket 上監聽 TCP 連接 解析少量的 HTTP 請求 創建一個合適的 HTTP 響應 使用線程池改進伺服器的吞吐量 優雅的停機和清理 註意:並不是最佳實踐 創建項目 ~/rust ➜ cargo new hello Cre ...
  • /* *@author: Noiimplant *@version: 1.0 */ 1. 利用java實現簡易記賬軟體 根據尚矽谷java教程進行練習 2. 實現功能 記錄家庭支出、收入,列印收支明細表 使用分級菜單的方式 3. 代碼實現 3.1 GuliAccount.java package G ...
  • 服務啟動超時控制 問題描述: 服務有時存在等待很長時間起不來的情況,需要手動kill掉進程,然後再起一遍。 1 使用timeout指定命令運行的超時時間 timeout 30s java -jar while-1.0-SNAPSHOT.jar 腳本 #!/bin/bash timeout 30s j ...
一周排行
    -Advertisement-
    Play Games
  • 移動開發(一):使用.NET MAUI開發第一個安卓APP 對於工作多年的C#程式員來說,近來想嘗試開發一款安卓APP,考慮了很久最終選擇使用.NET MAUI這個微軟官方的框架來嘗試體驗開發安卓APP,畢竟是使用Visual Studio開發工具,使用起來也比較的順手,結合微軟官方的教程進行了安卓 ...
  • 前言 QuestPDF 是一個開源 .NET 庫,用於生成 PDF 文檔。使用了C# Fluent API方式可簡化開發、減少錯誤並提高工作效率。利用它可以輕鬆生成 PDF 報告、發票、導出文件等。 項目介紹 QuestPDF 是一個革命性的開源 .NET 庫,它徹底改變了我們生成 PDF 文檔的方 ...
  • 項目地址 項目後端地址: https://github.com/ZyPLJ/ZYTteeHole 項目前端頁面地址: ZyPLJ/TreeHoleVue (github.com) https://github.com/ZyPLJ/TreeHoleVue 目前項目測試訪問地址: http://tree ...
  • 話不多說,直接開乾 一.下載 1.官方鏈接下載: https://www.microsoft.com/zh-cn/sql-server/sql-server-downloads 2.在下載目錄中找到下麵這個小的安裝包 SQL2022-SSEI-Dev.exe,運行開始下載SQL server; 二. ...
  • 前言 隨著物聯網(IoT)技術的迅猛發展,MQTT(消息隊列遙測傳輸)協議憑藉其輕量級和高效性,已成為眾多物聯網應用的首選通信標準。 MQTTnet 作為一個高性能的 .NET 開源庫,為 .NET 平臺上的 MQTT 客戶端與伺服器開發提供了強大的支持。 本文將全面介紹 MQTTnet 的核心功能 ...
  • Serilog支持多種接收器用於日誌存儲,增強器用於添加屬性,LogContext管理動態屬性,支持多種輸出格式包括純文本、JSON及ExpressionTemplate。還提供了自定義格式化選項,適用於不同需求。 ...
  • 目錄簡介獲取 HTML 文檔解析 HTML 文檔測試參考文章 簡介 動態內容網站使用 JavaScript 腳本動態檢索和渲染數據,爬取信息時需要模擬瀏覽器行為,否則獲取到的源碼基本是空的。 本文使用的爬取步驟如下: 使用 Selenium 獲取渲染後的 HTML 文檔 使用 HtmlAgility ...
  • 1.前言 什麼是熱更新 游戲或者軟體更新時,無需重新下載客戶端進行安裝,而是在應用程式啟動的情況下,在內部進行資源或者代碼更新 Unity目前常用熱更新解決方案 HybridCLR,Xlua,ILRuntime等 Unity目前常用資源管理解決方案 AssetBundles,Addressable, ...
  • 本文章主要是在C# ASP.NET Core Web API框架實現向手機發送驗證碼簡訊功能。這裡我選擇是一個互億無線簡訊驗證碼平臺,其實像阿裡雲,騰訊雲上面也可以。 首先我們先去 互億無線 https://www.ihuyi.com/api/sms.html 去註冊一個賬號 註冊完成賬號後,它會送 ...
  • 通過以下方式可以高效,並保證數據同步的可靠性 1.API設計 使用RESTful設計,確保API端點明確,並使用適當的HTTP方法(如POST用於創建,PUT用於更新)。 設計清晰的請求和響應模型,以確保客戶端能夠理解預期格式。 2.數據驗證 在伺服器端進行嚴格的數據驗證,確保接收到的數據符合預期格 ...