跳到主要内容

flywave-vectortile-datasource.omvfeaturefilter

Home > @flywave/flywave-vectortile-datasource > OmvFeatureFilter

OmvFeatureFilter interface

The OmvFeatureFilter is designed to work in an OmvVisitor/visitOmv combination (for example, OmvDecoder).

Signature:

export interface OmvFeatureFilter 

Remarks

Returning false from any of the calls terminates processing of that layer or feature.

The OmvFeatureFilter is an "early-opt-out" filter, which cannot filter individual features, because at that point the features are not really decoded. Use the [[OmvFeatureModifier]] to filter for individual features.

Properties

Property

Modifiers

Type

Description

hasKindFilter

boolean

Returns true if the filter contains rules for specific kinds.

Methods

Method

Description

wantsKind(kind)

Return false if kind of object is not enabled and the geometry should not be created.

wantsLayer(layer, level)

Return false if the layer should not be processed.

wantsLineFeature(layer, geometryType, level)

Return false if the line feature should not be processed.

wantsPointFeature(layer, geometryType, level)

Return false if the point feature should not be processed.

wantsPolygonFeature(layer, geometryType, level)

Return false if the polygon feature should not be processed.