主頁 > 後端開發 > OGC標準介面學習

OGC標準介面學習

2023-04-26 07:41:50 後端開發

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  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"  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>

轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/551180.html

標籤:其他

上一篇:python字串集合面試筆試題

下一篇:返回列表

標籤雲
其他(158086) Python(38106) JavaScript(25391) Java(18001) C(15217) 區塊鏈(8260) C#(7972) AI(7469) 爪哇(7425) MySQL(7144) html(6777) 基礎類(6313) sql(6102) 熊猫(6058) PHP(5870) 数组(5741) R(5409) Linux(5329) 反应(5209) 腳本語言(PerlPython)(5129) 非技術區(4971) Android(4561) 数据框(4311) css(4259) 节点.js(4032) C語言(3288) json(3245) 列表(3129) 扑(3119) C++語言(3117) 安卓(2998) 打字稿(2995) VBA(2789) Java相關(2746) 疑難問題(2699) 细绳(2522) 單片機工控(2479) iOS(2431) ASP.NET(2402) MongoDB(2323) 麻木的(2285) 正则表达式(2254) 字典(2211) 循环(2198) 迅速(2185) 擅长(2169) 镖(2155) 功能(1967) .NET技术(1960) Web開發(1951) HtmlCss(1926) python-3.x(1918) 弹簧靴(1913) C++(1911) xml(1889) PostgreSQL(1874) .NETCore(1855) 谷歌表格(1846) Unity3D(1843) for循环(1842)

熱門瀏覽
  • 【C++】Microsoft C++、C 和匯編程式檔案

    ......

    uj5u.com 2020-09-10 00:57:23 more
  • 例外宣告

    相比于斷言適用于排除邏輯上不可能存在的狀態,例外通常是用于邏輯上可能發生的錯誤。 例外宣告 Item 1:當函式不可能拋出例外或不能接受拋出例外時,使用noexcept 理由 如果不打算拋出例外的話,程式就會認為無法處理這種錯誤,并且應當盡早終止,如此可以有效地阻止例外的傳播與擴散。 示例 //不可 ......

    uj5u.com 2020-09-10 00:57:27 more
  • Codeforces 1400E Clear the Multiset(貪心 + 分治)

    鏈接:https://codeforces.com/problemset/problem/1400/E 來源:Codeforces 思路:給你一個陣列,現在你可以進行兩種操作,操作1:將一段沒有 0 的區間進行減一的操作,操作2:將 i 位置上的元素歸零。最終問:將這個陣列的全部元素歸零后操作的最少 ......

    uj5u.com 2020-09-10 00:57:30 more
  • UVA11610 【Reverse Prime】

    本人看到此題沒有翻譯,就附帶了一個自己的翻譯版本 思考 這一題,它的第一個要求是找出所有 $7$ 位反向質數及其質因數的個數。 我們應該需要質數篩篩選1~$10^{7}$的所有數,這里就不慢慢介紹了。但是,重讀題,我們突然發現反向質數都是 $7$ 位,而將它反過來后的數字卻是 $6$ 位數,這就說明 ......

    uj5u.com 2020-09-10 00:57:36 more
  • 統計區間素數數量

    1 #pragma GCC optimize(2) 2 #include <bits/stdc++.h> 3 using namespace std; 4 bool isprime[1000000010]; 5 vector<int> prime; 6 inline int getlist(int ......

    uj5u.com 2020-09-10 00:57:47 more
  • C/C++編程筆記:C++中的 const 變數詳解,教你正確認識const用法

    1、C中的const 1、區域const變數存放在堆疊區中,會分配記憶體(也就是說可以通過地址間接修改變數的值)。測驗代碼如下: 運行結果: 2、全域const變數存放在只讀資料段(不能通過地址修改,會發生寫入錯誤), 默認為外部聯編,可以給其他源檔案使用(需要用extern關鍵字修飾) 運行結果: ......

    uj5u.com 2020-09-10 00:58:04 more
  • 【C++犯錯記錄】VS2019 MFC添加資源不懂如何修改資源宏ID

    1. 首先在資源視圖中,添加資源 2. 點擊新添加的資源,復制自動生成的ID 3. 在解決方案資源管理器中找到Resource.h檔案,編輯,使用整個專案搜索和替換的方式快速替換 宏宣告 4. Ctrl+Shift+F 全域搜索,點擊查找全部,然后逐個替換 5. 為什么使用搜索替換而不使用屬性視窗直 ......

    uj5u.com 2020-09-10 00:59:11 more
  • 【C++犯錯記錄】VS2019 MFC不懂的批量添加資源

    1. 打開資源頭檔案Resource.h,在其中預先定義好宏 ID(不清楚其實ID值應該設定多少,可以先新建一個相同的資源項,再在這個資源的ID值的基礎上遞增即可) 2. 在資源視圖中選中專案資源,按F7編輯資源檔案,按 ID 型別 相對路徑的形式添加 資源。(別忘了先把檔案拷貝到專案中的res檔案 ......

    uj5u.com 2020-09-10 01:00:19 more
  • C/C++編程筆記:關于C++的參考型別,專供新手入門使用

    今天要講的是C++中我最喜歡的一個用法——參考,也叫別名。 參考就是給一個變數名取一個變數名,方便我們間接地使用這個變數。我們可以給一個變數創建N個參考,這N + 1個變數共享了同一塊記憶體區域。(參考型別的變數會占用記憶體空間,占用的記憶體空間的大小和指標型別的大小是相同的。雖然參考是一個物件的別名,但 ......

    uj5u.com 2020-09-10 01:00:22 more
  • 【C/C++編程筆記】從頭開始學習C ++:初學者完整指南

    眾所周知,C ++的學習曲線陡峭,但是花時間學習這種語言將為您的職業帶來奇跡,并使您與其他開發人員區分開。您會更輕松地學習新語言,形成真正的解決問題的技能,并在編程的基礎上打下堅實的基礎。 C ++將幫助您養成良好的編程習慣(即清晰一致的編碼風格,在撰寫代碼時注釋代碼,并限制類內部的可見性),并且由 ......

    uj5u.com 2020-09-10 01:00:41 more
最新发布
  • OGC標準介面學習

    OGC 全稱 Open Geospatial Consortium,是一個非盈利的、國際化的、自愿協商的標準化組織,它的主要目的就是制定與空間資訊、基于位置服務相關的標準 DescribeFeatureType 回傳WFS服務支持的欄位型別的描述 入參 |引數|是否必須|示例|描述 | |--| | ......

    uj5u.com 2023-04-26 07:41:50 more
  • python字串集合面試筆試題

    python字串面試筆試題 1: 以下代碼的輸出是? s = 'foo' t = 'bar' print('barf' in 2 * (s + t)) A.True B.Fasle +運算子連接字串,而*運算子創建多個副本。 2 *(s + t)的結果是'foobarfoobar',它確實包含字 ......

    uj5u.com 2023-04-26 07:41:45 more
  • Django筆記三十之log日志記錄詳解

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

    uj5u.com 2023-04-26 07:41:38 more
  • 最少步數

    在各種棋中,棋子的走法總是一定的,如中國象棋中馬走“日”。有一位小學生就想如果馬能有兩種走法將增加其趣味性,因此,他規定馬既能按“日”走,也能如象一樣走“田”字。他的同桌平時喜歡下圍棋,知道這件事后覺得很有趣,就想試一試,在一個(100*100)的圍棋盤上任選兩點A、B,A點放上黑子,B點放上白子, ......

    uj5u.com 2023-04-26 07:41:33 more
  • springboot自動裝配大概原理

    自動裝配: pom.xml spring-boot-dependence:核心都依賴在父類工程中! 我們在寫入或者引入springboot依賴的時候,不需要指定版,因為有這些倉庫的版本 啟動器: spring boot的啟動場景 比如spring-boot-starter-web,他就會幫我們匯入w ......

    uj5u.com 2023-04-26 07:41:29 more
  • Midjourney 注冊 12 步流程教學

    原文: https://bysocket.com/midjourney-register/ 先推薦一個 PromptHero 中文官網 https://promptheroes.cn/ :Prompt Heroes 官網是提供 AI 繪畫相關提示詞中文網站,包括 Midjourney(MJ)、 St ......

    uj5u.com 2023-04-26 07:41:08 more
  • ray-分布式計算框架-集群與異步Job管理

    0. ray 簡介 ray是開源分布式計算框架,為并行處理提供計算層,用于擴展AI與Python應用程式,是ML作業負載統一工具包 Ray AI Runtime ML應用程式庫集 Ray Core 通用分布式計算庫 Task -- Ray允許任意Python函式在單獨的Python worker上運 ......

    uj5u.com 2023-04-26 07:40:55 more
  • C++深拷貝與淺拷貝

    ###淺拷貝的問題 默認提供的拷貝構造就是淺拷貝,如果拷貝的物件中含有成員指標變數指向堆區中的記憶體空間,那么就會出現兩個物件中的成員指標變數指向同一塊堆區空間,當方法執行結束后,物件就會被釋放,呼叫解構式(解構式中存在釋放在堆區開辟的記憶體空間),就會存在一塊記憶體空間被多次釋放的問題。 ###解決 ......

    uj5u.com 2023-04-26 07:40:48 more
  • Java中為什么重寫equals()也需要重寫hashCode()?

    所有類默認繼承Object類 先看一下Object原始碼 package java.lang; public class Object { //默認呼叫本地的hashcode()方法 根據記憶體地址生成hash值 避免不了哈希沖突 public native int hashCode(); //默認呼叫 ......

    uj5u.com 2023-04-26 07:40:43 more
  • 【NLP教程】用python呼叫百度AI開放平臺進行情感傾向分析

    一、背景 Hi,大家!我是 @馬哥python說 ,一名10年程式猿。 今天我來演示一下:通過百度AI開放平臺,利用python呼叫百度介面進行中文情感傾向分析,并得出情感極性分為積極、消極還是中性以及置信度結果。 二、操作步驟 首先,打開百度AI首頁:百度AI開放平臺-全球領先的人工智能服務平臺 ......

    uj5u.com 2023-04-26 07:35:14 more