VectorExporter
Tiles processor that exports a vector channel
The vector data is exported to a geopackage.
Notes
- Exporting a channel by its name assumes the time step is None
- Requires a vector channel
Implements the TilesProcessor
protocol.
PARAMETER | DESCRIPTION |
---|---|
channel_key
|
Channel name or channel name and time step combination
TYPE:
|
epsg_code
|
EPSG code
TYPE:
|
dir_path
|
Path to the directory
TYPE:
|
gpkg_name
|
Name of the geopackage (.gpkg file)
TYPE:
|
remove_channel
|
If True, the channel 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 null instead of None
- Use false or true instead of False or True
Example
You can create the configuration from a config file.
package: 'aviary'
name: 'VectorExporter'
config:
channel_key: 'my_channel'
epsg_code: 25832
dir_path: 'path/to/my/directory'
gpkg_name: 'my_channel.gpkg'
remove_channel: true
ATTRIBUTE | DESCRIPTION |
---|---|
channel_key |
Channel name or channel name and time step combination
TYPE:
|
epsg_code |
EPSG code
TYPE:
|
dir_path |
Path to the directory
TYPE:
|
gpkg_name |
Name of the geopackage (.gpkg file)
TYPE:
|
remove_channel |
If True, the channel is removed - defaults to True
TYPE:
|