Skip to content

Documentation / @geoverse/editor-core / WfstTransportOptions

Interface: WfstTransportOptions

Defined in: packages/editor-core/src/sync/wfst/transport.ts:23

WFS-T 适配器配置。

Extends

Properties

axisOrder?

ts
optional axisOrder?: AxisOrder;

Defined in: packages/editor-core/src/sync/wfst/transaction.ts:18

轴序,默认 'xy'(经,纬)。见 gml.ts 轴序坑。

Inherited from

WfstConfig.axisOrder


featureNS

ts
featureNS: string;

Defined in: packages/editor-core/src/sync/wfst/transaction.ts:10

要素命名空间 URI。

Inherited from

WfstConfig.featureNS


featurePrefix

ts
featurePrefix: string;

Defined in: packages/editor-core/src/sync/wfst/transaction.ts:12

命名空间前缀(与 typeName 前缀一致),如 topp

Inherited from

WfstConfig.featurePrefix


fetch?

ts
optional fetch?: FetchLike;

Defined in: packages/editor-core/src/sync/wfst/transport.ts:27

注入的 fetch(默认全局 fetch)。


geometryName?

ts
optional geometryName?: string;

Defined in: packages/editor-core/src/sync/wfst/transaction.ts:14

几何字段名,默认 geometry

Inherited from

WfstConfig.geometryName


headers?

ts
optional headers?: Record<string, string>;

Defined in: packages/editor-core/src/sync/wfst/transport.ts:29

附加请求头(鉴权等)。


loadFeatures?

ts
optional loadFeatures?: (ids) => Promise<EditableFeature[]>;

Defined in: packages/editor-core/src/sync/wfst/transport.ts:34

冲突重建钩子:乐观锁判定有要素被版本拦截时,用它拉取这些 id 的服务端当前 要素以填充 409 conflicts。未提供则在疑似冲突时抛错(无法满足 EditTransport 契约)。

Parameters

ids

string[]

Returns

Promise<EditableFeature[]>


srsName?

ts
optional srsName?: string;

Defined in: packages/editor-core/src/sync/wfst/transaction.ts:16

坐标参考系(GML srsName)。

Inherited from

WfstConfig.srsName


typeName

ts
typeName: string;

Defined in: packages/editor-core/src/sync/wfst/transaction.ts:8

要素类型限定名,如 topp:states

Inherited from

WfstConfig.typeName


url

ts
url: string;

Defined in: packages/editor-core/src/sync/wfst/transport.ts:25

WFS 端点 URL。


versionProperty?

ts
optional versionProperty?: string;

Defined in: packages/editor-core/src/sync/wfst/transaction.ts:23

乐观锁版本所在的要素属性名(可选)。设置后 Update 的 Filter 追加 版本等值断言,服务端版本不匹配则更新 0 行,据此判定冲突。

Inherited from

WfstConfig.versionProperty