Skip to content

SelectProcessor

Vector processor that selects layers

Implements the VectorProcessor protocol.

PARAMETER DESCRIPTION
layer_names

Layer name, layer names, no layers (False or None), or all layers (True)

TYPE: str | set[str] | bool | None DEFAULT: True

from_config classmethod

Creates a select processor from the configuration.

PARAMETER DESCRIPTION
config

Configuration

TYPE: SelectProcessorConfig

RETURNS DESCRIPTION
SelectProcessor

Select processor

__call__

Selects the layers.

PARAMETER DESCRIPTION
vector

Vector

TYPE: Vector

RETURNS DESCRIPTION
Vector

Vector


SelectProcessorConfig

Bases: pydantic.BaseModel

Configuration for the from_config class method of SelectProcessor

Create the configuration from a config file
  • Use null instead of None
  • Use false or true instead of False or True
Example

You can create the configuration from a config file.

config.yaml
package: 'aviary'
name: 'SelectProcessor'
config:
  layer_names: true
ATTRIBUTE DESCRIPTION
layer_names

Layer name, layer names, no layers (False or None), or all layers (True) - defaults to True

TYPE: str | set[str] | bool | None