Create classification dataset (from table with categories and feature fields)
Create a classification dataset from attribute table rows that match the given categories and store the result as a pickle file.
Parameters
- Table [vector]
- Fields with features [field]
Fields used as features. Values may be given as strings, but must be castable to float.
- Field with class values [field]
- Field with class names [field]
Field used as class name. If not specified, class values are used as class names.
- Field with class colors [field]
Field used as class color. Values may be given as hex-colors, rgb-colors or int-colors.
Outputs
- Output dataset [fileDestination]
Pickle file destination.
Command-line usage
>qgis_process help enmapbox:CreateClassificationDatasetFromTableWithCategoriesAndFeatureFields
:
----------------
Arguments
----------------
table: Table
Argument type: vector
Acceptable values:
- Path to a vector layer
featureFields: Fields with features
Argument type: field
Acceptable values:
- The name of an existing field
- ; delimited list of existing field names
valueField: Field with class values
Argument type: field
Acceptable values:
- The name of an existing field
- ; delimited list of existing field names
nameField: Field with class names (optional)
Argument type: field
Acceptable values:
- The name of an existing field
- ; delimited list of existing field names
colorField: Field with class colors (optional)
Argument type: field
Acceptable values:
- The name of an existing field
- ; delimited list of existing field names
outputClassificationDataset: Output dataset
Argument type: fileDestination
Acceptable values:
- Path for new file
----------------
Outputs
----------------
outputClassificationDataset: <outputFile>
Output dataset