GridExporter
Tiles processor that exports the grid of the tiles
The grid is exported to a JSON file. The JSON string contains a list of coordinates (x_min, y_min) of each tile and the tile size.
Implements the TilesProcessor
protocol.
PARAMETER | DESCRIPTION |
---|---|
dir_path
|
Path to the directory
TYPE:
|
json_name
|
Name of the JSON file (.json file)
TYPE:
|
from_config
classmethod
Creates a grid exporter from the configuration.
PARAMETER | DESCRIPTION |
---|---|
config
|
Configuration
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
GridExporter
|
Grid exporter |
GridExporterConfig
Bases: pydantic.BaseModel
Configuration for the from_config
class method of GridExporter
Example
You can create the configuration from a config file.
package: 'aviary'
name: 'GridExporter'
config:
dir_path: 'path/to/my/directory'
json_name: 'processed_grid.json'
ATTRIBUTE | DESCRIPTION |
---|---|
dir_path |
Path to the directory
TYPE:
|
json_name |
Name of the JSON file (.json file)
TYPE:
|