Configuration
This section outlines the configuration schema.
preprocessor-config.yaml
PreprocessorConfig
type |
object |
|||
properties |
||||
|
Processors |
|||
Mapping of processor configurations |
||||
type |
object |
|||
additionalProperties |
#/definitions/ProcessorConfig |
|||
|
Paths |
|||
Mapping of paths |
||||
type |
object |
|||
additionalProperties |
type |
string |
||
|
Filesystems |
|||
Mapping of filesystem configurations |
||||
type |
object |
|||
additionalProperties |
type |
object |
||
#/definitions/FilesystemConfig |
||||
|
Collections |
|||
Mapping of collections to process |
||||
type |
object |
|||
additionalProperties |
#/definitions/CollectionConfig |
|||
|
Mode |
|||
Running mode of the preprocessor. |
||||
type |
string |
|||
enum |
create, update |
|||
|
Update |
|||
Update toggles, either update data, metadata or both |
||||
type |
object |
|||
properties |
||||
|
Data |
|||
type |
boolean |
|||
|
Metadata |
|||
type |
boolean |
|||
definitions |
||||
|
ProcessorType |
|||
An enumeration. |
||||
type |
string |
|||
enum |
mapchete, local |
|||
|
LocalProcessorConfig |
|||
type |
object |
|||
properties |
||||
|
Process |
|||
type |
string |
|||
|
GridType |
|||
An enumeration. |
||||
type |
string |
|||
enum |
mercator, geodetic |
|||
|
PyramidConfig |
|||
type |
object |
|||
properties |
||||
|
default |
mercator |
||
allOf |
#/definitions/GridType |
|||
|
Metatiling |
|||
type |
integer |
|||
default |
1 |
|||
|
ResamplingType |
|||
An enumeration. |
||||
type |
string |
|||
enum |
nearest, cubic, bilinear |
|||
|
MapcheteOutputConfig |
|||
type |
object |
|||
properties |
||||
|
Bands |
|||
type |
integer |
|||
default |
1 |
|||
|
Zoom Levels |
|||
type |
integer |
|||
default |
8 |
|||
|
MapcheteProcessorConfig |
|||
type |
object |
|||
properties |
||||
|
Process |
|||
type |
string |
|||
|
Pyramid |
|||
default |
grid |
mercator |
||
metatiling |
1 |
|||
allOf |
#/definitions/PyramidConfig |
|||
|
default |
nearest |
||
allOf |
#/definitions/ResamplingType |
|||
|
Config Dir |
|||
type |
string |
|||
default |
/home/nikola/Tests/test_pydantic |
|||
|
Output |
|||
default |
bands |
1 |
||
zoom_levels |
8 |
|||
allOf |
#/definitions/MapcheteOutputConfig |
|||
|
ProcessorConfig |
|||
type |
object |
|||
properties |
||||
|
#/definitions/ProcessorType |
|||
|
Regex |
|||
type |
string |
|||
|
#/definitions/LocalProcessorConfig |
|||
|
#/definitions/MapcheteProcessorConfig |
|||
|
PathConfig |
|||
type |
object |
|||
properties |
||||
|
Path |
|||
type |
string |
|||
|
StorageType |
|||
An enumeration. |
||||
type |
string |
|||
enum |
swift, s3, local, sshfs |
|||
|
S3FilesystemConfig |
|||
type |
object |
|||
properties |
||||
|
Access Key Id |
|||
type |
string |
|||
default |
||||
|
Secret Access Key |
|||
type |
string |
|||
default |
||||
|
Public |
|||
type |
boolean |
|||
default |
False |
|||
|
SwiftFileystemConfig |
|||
type |
object |
|||
properties |
||||
|
User |
|||
type |
string |
|||
|
Key |
|||
type |
string |
|||
|
Region Name |
|||
type |
string |
|||
|
Authurl |
|||
type |
string |
|||
|
Auth Version |
|||
type |
string |
|||
|
Tenant Name |
|||
type |
string |
|||
|
LocalFilesystemConfig |
|||
type |
object |
|||
properties |
||||
|
FilesystemConfig |
|||
type |
object |
|||
properties |
||||
|
#/definitions/StorageType |
|||
|
#/definitions/S3FilesystemConfig |
|||
|
#/definitions/SwiftFileystemConfig |
|||
|
#/definitions/LocalFilesystemConfig |
|||
|
InputType |
|||
An enumeration. |
||||
type |
string |
|||
enum |
archive, file, http |
|||
|
ArchiveDataAssetConfig |
|||
type |
object |
|||
properties |
||||
|
Key |
|||
type |
string |
|||
|
Asset |
|||
type |
string |
|||
|
Regex |
|||
type |
string |
|||
|
ArchiveConfig |
|||
type |
object |
|||
properties |
||||
|
Asset Map |
|||
type |
array |
|||
items |
#/definitions/ArchiveDataAssetConfig |
|||
|
FileDataAssetConfig |
|||
type |
object |
|||
properties |
||||
|
Key |
|||
type |
string |
|||
|
Asset |
|||
type |
string |
|||
|
FileConfig |
|||
type |
object |
|||
properties |
||||
|
Asset Map |
|||
type |
array |
|||
items |
#/definitions/FileDataAssetConfig |
|||
|
HTTPConfig |
|||
type |
object |
|||
properties |
||||
|
Asset Map |
|||
type |
array |
|||
items |
#/definitions/FileDataAssetConfig |
|||
|
Streaming |
|||
type |
boolean |
|||
|
DataInputConfig |
|||
type |
object |
|||
properties |
||||
|
#/definitions/InputType |
|||
|
#/definitions/ArchiveConfig |
|||
|
#/definitions/FileConfig |
|||
|
#/definitions/HTTPConfig |
|||
|
DataType |
|||
An enumeration. |
||||
type |
string |
|||
enum |
uint8, int8, uint16, int16, uint32, int32, float32, float64, complex64, complex128 |
|||
|
OutputDriver |
|||
An enumeration. |
||||
type |
string |
|||
enum |
GTiff |
|||
|
GeoTiffDriverConfig |
|||
type |
object |
|||
properties |
||||
|
Cog |
|||
type |
boolean |
|||
default |
True |
|||
|
Overviews |
|||
type |
boolean |
|||
default |
True |
|||
|
DataOutputConfig |
|||
type |
object |
|||
properties |
||||
|
Path |
|||
type |
string |
|||
|
Asset |
|||
type |
string |
|||
|
Processors |
|||
type |
array |
|||
items |
type |
string |
||
|
default |
uint16 |
||
allOf |
#/definitions/DataType |
|||
|
default |
GTiff |
||
allOf |
#/definitions/OutputDriver |
|||
|
Gtiff |
|||
default |
cog |
True |
||
overviews |
True |
|||
allOf |
#/definitions/GeoTiffDriverConfig |
|||
|
Nodata |
|||
type |
integer |
|||
default |
null |
|||
|
DataConfig |
|||
type |
object |
|||
properties |
||||
|
#/definitions/DataInputConfig |
|||
|
#/definitions/DataOutputConfig |
|||
|
FilesystemCollectionConfig |
|||
type |
object |
|||
properties |
||||
|
Source |
|||
type |
string |
|||
|
Target |
|||
type |
string |
|||
|
MetadataAssetConfig |
|||
type |
object |
|||
properties |
||||
|
File Name Regex |
|||
type |
string |
|||
|
Input Asset |
|||
type |
string |
|||
|
Output Asset |
|||
type |
string |
|||
|
MetadataReaderType |
|||
An enumeration. |
||||
type |
string |
|||
enum |
xml, json |
|||
|
PropertyConfig |
|||
type |
object |
|||
properties |
||||
|
From Property |
|||
type |
string |
|||
|
To Property |
|||
type |
string |
|||
|
Format Function |
|||
type |
string |
|||
|
MetadataReaderConfig |
|||
type |
object |
|||
properties |
||||
|
#/definitions/MetadataReaderType |
|||
|
Asset |
|||
type |
string |
|||
|
File Regex |
|||
type |
string |
|||
|
Property Mapping |
|||
type |
array |
|||
items |
#/definitions/PropertyConfig |
|||
|
StaticMetadataConfig |
|||
type |
object |
|||
properties |
||||
|
Name |
|||
type |
string |
|||
|
Value |
|||
type |
string |
|||
|
MetadataConfig |
|||
type |
object |
|||
properties |
||||
|
Assets |
|||
type |
array |
|||
items |
#/definitions/MetadataAssetConfig |
|||
|
Readers |
|||
type |
array |
|||
items |
#/definitions/MetadataReaderConfig |
|||
|
Static |
|||
type |
array |
|||
items |
#/definitions/StaticMetadataConfig |
|||
|
Extractors |
|||
type |
array |
|||
items |
#/definitions/MetadataExtractorConfig |
|||
|
MetadataExtractorConfig |
|||
type |
object |
|||
properties |
||||
|
Function |
|||
Function to run when extracting data |
||||
type |
string |
|||
|
Asset |
|||
Asset to run the extractor on |
||||
type |
string |
|||
|
CollectionConfig |
|||
type |
object |
|||
properties |
||||
|
Data |
|||
type |
array |
|||
items |
#/definitions/DataConfig |
|||
|
Filesystems |
|||
default |
source |
null |
||
target |
null |
|||
allOf |
#/definitions/FilesystemCollectionConfig |
|||
|
Metadata |
|||
default |
assets |
|||
readers |
||||
static |
||||
extractors |
||||
allOf |
#/definitions/MetadataConfig |