7.3. GetCapabilities 操作

7.3.1. 1. KVP 格式请求

GetCapabilities 操作需要以下的参数:

参数

是否必须

默认值

SERVICE

WFS

REQUEST=GetCapabilities

以下是一个 WFS 使用 KVP 格式的 GetCapabilities 操作示例:

http://www.someserver.com/wfs?

SERVICE=WFS&

REQUEST=GetCapabilities

7.3.2. 2. XML 格式请求

以下是一个 WFS 使用 XML 格式的 GetCapabilities 操作示例:

<?xml version="1.0" ?>

<GetCapabilities service="WFS" xmlns="http://www.opengis.net/wfs"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://www.opengis.net/wfs ../wfs/1.1.0/WFS.xsd" />

7.3.3. 3. 响应示例

以下是一个 WFS 的 GetCapabilities 操作的响应示例:

<?xml version="1.0" encoding="UTF-8"?>

<wfs:WFS_Capabilites xmlns:ows="http://www.opengis.net/ows"

xmlns:ogc="http://www.opengis.net/ogc" xmlns:wfs="http://www.opengis.net/wfs"

xmlns:gml="http://www.opengis.net/gml" xmlns:xlink="http://www.w3.org/1999/xlink"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://www.opengis.net/wfs ../wfs.xsd" version="1.1.0"

updateSequence="0">







<ows:ServiceIdentification>

<ows:ServiceType>WFSows:ServiceType>

<ows:ServiceTypeVersion>1.1.0ows:ServiceTypeVersion>

<ows:Title>OGC Member WFSows:Title>

...

ows:ServiceIdentification>







<ows:ServiceProvider>

<ows:ProviderName>BlueOxows:ProviderName>

<ows:ServiceContact>

...

ows:ServiceContact>

ows:ServiceProvider>







<ows:OperationsMetadata>

<ows:Operation name="GetCapabilities">

...

ows:Operation>

<ows:Operation name="DescribeFeatureType">

...

ows:Operation>

<ows:Operation name="GetFeature">

...

ows:Operation>

<ows:Operation name="GetFeatureWithLock">

...

ows:Operation>

<ows:Operation name="GetGMLObject">

...

ows:Operation>

<ows:Operation name="LockFeature">

...

ows:Operation>

<ows:Operation name="Transaction">

...

ows:Operation>

<ows:Parameter name="srsName">

<ows:Value>EPSG:4326ows:Value>

ows:Parameter>

<ows:Constraint name="DefaultMaxFeatures">

<ows:Value>10000ows:Value>

ows:Constraint>

...

ows:OperationsMetadata>







<wfs:FeatureTypeList>

<wfs:FeatureType xmlns:bo="http://www.BlueOx.org/BlueOx">

<wfs:DefaultSRS>EPSG:62696405wfs:DefaultSRS>

<wfs:OutputFormats>

<wfs:Format>text/xml; subtype=gml/3.1.1wfs:Format>

wfs:OutputFormats>

<ows:WGS84BoundingBox>

<ows:LowerCorner>-180 -90ows:LowerCorner>

<ows:UpperCorner>180 90ows:UpperCorner>

ows:WGS84BoundingBox>

...

wfs:FeatureType>

wfs:FeatureTypeList>







<wfs:ServesGMLObjectTypeList>

<wfs:GMLObjectType xmlns:bo="http://www.BlueOx.org/BlueOx">

<wfs:Name>bo:OxTypewfs:Name>

<wfs:Title>Babe's Lineagewfs:Title>

<wfs:OutputFormats>

<wfs:Format>text/xml; subtype=gml/3.1.1wfs:Format>

<wfs:Format>text/xhmtlwfs:Format>

wfs:OutputFormats>

wfs:GMLObjectType>

wfs:ServesGMLObjectTypeList>







<wfs:SupportsGMLObjectTypeList>

<wfs:GMLObjectType>

<wfs:Name>gml:PointTypewfs:Name>

<wfs:OutputFormats>

<wfs:Format>text/xml; subtype=gml/3.1.1wfs:Format>

<wfs:Format>text/xhtmlwfs:Format>

wfs:OutputFormats>

wfs:GMLObjectType>

...

wfs:SupportsGMLObjectTypeList>







<ogc:Filter_Capabilities>

<ogc:Spatial_Capabilities>

<ogc:GeometryOperands>

<ogc:GeometryOperand>gml:Envelopeogc:GeometryOperand>

<ogc:GeometryOperand>gml:Pointogc:GeometryOperand>

<ogc:GeometryOperand>gml:LineStringogc:GeometryOperand>

<ogc:GeometryOperand>gml:Polygonogc:GeometryOperand>

...

ogc:GeometryOperands>

<ogc:SpatialOperators>

<ogc:SpatialOperator name="BBOX" />

<ogc:SpatialOperator name="Equals" />

<ogc:SpatialOperator name="Disjoint" />

<ogc:SpatialOperator name="Intersects" />

<ogc:SpatialOperator name="Touches" />

<ogc:SpatialOperator name="Crosses" />

<ogc:SpatialOperator name="Within" />

<ogc:SpatialOperator name="Contains" />

<ogc:SpatialOperator name="Overlaps" />

<ogc:SpatialOperator name="Beyond" />

ogc:SpatialOperators>

ogc:Spatial_Capabilities>

<ogc:Scalar_Capabilities>

<ogc:LogicalOperators />

<ogc:ComparisonOperators>

<ogc:ComparisonOperator>LessThanogc:ComparisonOperator>

<ogc:ComparisonOperator>GreaterThanogc:ComparisonOperator>

<ogc:ComparisonOperator>LessThanEqualToogc:ComparisonOperator>

<ogc:ComparisonOperator>GreaterThanEqualToogc:ComparisonOperator>

<ogc:ComparisonOperator>EqualToogc:ComparisonOperator>

<ogc:ComparisonOperator>NotEqualToogc:ComparisonOperator>

<ogc:ComparisonOperator>Likeogc:ComparisonOperator>

<ogc:ComparisonOperator>Betweenogc:ComparisonOperator>

<ogc:ComparisonOperator>NullCheckogc:ComparisonOperator>

ogc:ComparisonOperators>

<ogc:ArithmeticOperators>

<ogc:SimpleArithmetic />

<ogc:Functions>

<ogc:FunctionNames>

<ogc:FunctionName nArgs="1">MINogc:FunctionName>

<ogc:FunctionName nArgs="1">MAXogc:FunctionName>

<ogc:FunctionName nArgs="1">SINogc:FunctionName>

<ogc:FunctionName nArgs="1">COSogc:FunctionName>

<ogc:FunctionName nArgs="1">TANogc:FunctionName>

ogc:FunctionNames>

ogc:Functions>

ogc:ArithmeticOperators>

ogc:Scalar_Capabilities>

<ogc:Id_Capabilities>

<ogc:EID />

<ogc:FID />

ogc:Id_Capabilities>

ogc:Filter_Capabilities>

wfs:WFS_Capabilites>