VectorExporter
Vector processor that exports a layer
The vector data is exported to a geopackage.
Implements the VectorProcessor protocol.
| PARAMETER | DESCRIPTION |
|---|---|
layer_name
|
Layer name
TYPE:
|
epsg_code
|
EPSG code
TYPE:
|
path
|
Path to the geopackage (.gpkg file)
TYPE:
|
remove_layer
|
If True, the layer is removed
TYPE:
|
from_config
classmethod
Creates a vector exporter from the configuration.
| PARAMETER | DESCRIPTION |
|---|---|
config
|
Configuration
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
VectorExporter
|
Vector exporter |
VectorExporterConfig
Bases: pydantic.BaseModel
Configuration for the from_config class method of VectorExporter
Create the configuration from a config file
- Use false or true instead of False or True
Example
You can create the configuration from a config file.
package: 'aviary'
name: 'VectorExporter'
config:
layer_name: 'my_layer'
epsg_code: 25832
path: 'path/to/my_layer.gpkg'
remove_layer: true
| ATTRIBUTE | DESCRIPTION |
|---|---|
layer_name |
Layer name
TYPE:
|
epsg_code |
EPSG code
TYPE:
|
path |
Path to the geopackage (.gpkg file)
TYPE:
|
remove_layer |
If True, the layer is removed - defaults to True
TYPE:
|