Module: ol/format/WFS

ol/format/WFS


Classes

WFS

函数s

writeFilter(filter, version){Node}

import {writeFilter} from 'ol/format/WFS';

将过滤器编码为 WFS Filter 并返回 Node。

Name Type Description
filter Filter

过滤器。

version string

WFS 版本。如果未提供,默认为 '1.1.0'

返回值:
结果。

Type Definitions

要素CollectionMetadata{Object}

要素数量;边界/范围。

Properties:
Name Type Description
numberOf要素s number

要素数量。

bounds Extent

边界。

要素Type{Object}

Properties:
Name Type Description
name string

要素类型名称。

bbox Extent

用于 BBOX 过滤器的范围。

geometryName string

在 BBOX 过滤器中使用的几何图形名称。

Options{Object}

Properties:
Name Type Description
featureNS 对象。<string, string> | string | undefined

用于要素的命名空间 URI。

featureType Array.<string> | string | undefined

要解析的要素类型。仅用于读取操作。

gmlFormat GMLBase | undefined

用于解析响应的 GML 格式。 默认情况下,WFS 1.0.0 使用 ol/format/GML2,WFS 1.1.0 使用 ol/format/GML3,WFS 2.0.0 使用 ol/format/GML32

schemaLocation string | undefined

用于序列化的可选 schemaLocation,这将覆盖默认值。

version string
(defaults to '1.1.0')

要使用的 WFS 版本。可以是 1.0.01.1.02.0.0

TransactionResponse{Object}

总删除数;总插入数;总更新数;插入 ID 数组。

Properties:
Name Type Description
transactionSummary TransactionSummary

事务摘要。

insertIds Array.<string>

插入 ID。

TransactionSummary{Object}

Properties:
Name Type Description
totalDeleted number

删除总数。

totalInserted number

插入总数。

totalUpdated number

更新总数。

WriteGet要素Options{Object}

Properties:
Name Type Description
featureNS string

用于要素的命名空间 URI。

featurePrefix string

要素命名空间的前缀。

featureTypes Array.<(string|module:ol/format/WFS~要素Type)>

要素类型名称或 要素Type 对象, 用于为每个要素类型名称定义唯一的 bbox 过滤器(在这种情况下,选项 bboxgeometryName 将被忽略)。

srsName string | undefined

SRS 名称。未提供时,几何图形上将不会设置 srsName 属性。

handle string | undefined

句柄。

outputFormat string | undefined

输出格式。

max要素s number | undefined

要获取的最大要素数。

geometryName string | undefined

在 BBOX 过滤器中使用的几何图形名称。

propertyNames Array.<string> | undefined

要序列化的属性名称的可选列表。

viewParams string | undefined

viewParams GeoServer 供应商参数。

startIndex number | undefined

用于 WFS 分页的起始索引。这是 WFS 2.0 的功能,被某些 Web 要素服务回移植到 WFS 1.1.0。

count number | undefined

分页时要检索的要素数。这是 WFS 2.0 的功能,被某些 Web 要素服务回移植到 WFS 1.1.0。请注意,某些 Web 要素服务已改为使用 maxfeatures

bbox Extent | undefined

用于 BBOX 过滤器的范围。必须设置 geometryName 选项。

filter Filter | undefined

过滤条件。请参阅 ol/format/filter 了解更多信息。

resultType string | undefined

指示应返回什么响应, 例如 hits 仅在响应中包含 numberOf要素s 属性而不包含要素。

WriteTransactionOptions{Object}

Properties:
Name Type Description
featureNS string

用于要素的命名空间 URI。

featurePrefix string

要素命名空间的前缀。

featureType string

要素类型名称。

srsName string | undefined

SRS 名称。未提供时,几何图形上将不会设置 srsName 属性。

handle string | undefined

句柄。

hasZ boolean | undefined

如果事务用于 3D 图层,则必须设置为 true。这将允许在事务中包含 Z 坐标。

nativeElements Array.<Object>

原生元素。目前不支持。

gmlOptions Options | undefined

WFS 事务写入器的 GML 选项。

version string
(defaults to '1.1.0')

事务使用的 WFS 版本。可以是 1.0.01.1.02.0.0