class

WfsAdapter

WFS 2.0 adapter with GetFeature requests and pagination support.

Constructor

new WfsAdapter(options: WfsAdapterOptions)
Parameter Type Description
options WfsAdapterOptions required Adapter configuration

WfsAdapterOptions

Field Type Description
url string required WFS service URL
fetchFn typeof fetch optional Custom fetch function
proxyUrl string optional Proxy URL prefix

Methods

getFeature()

getFeature(params: GetFeatureParams): Promise<Feature[]>

Fetch features with optional bbox/filter.

Returns Promise<Feature[]>

describeFeatureType()

describeFeatureType(typeName: string): Promise<FeatureTypeInfo>

Get schema of a feature type.

Returns Promise<FeatureTypeInfo>