QGIS Algorithm provided by QGIS List unique values (qgis:listuniquevalues). This algorithm generates a report with information about the unique values found in a given attribute (or attributes) of a vector layer.

qgis_listuniquevalues(
  INPUT = qgisprocess:::qgis_default_value(),
  FIELDS = qgisprocess:::qgis_default_value(),
  OUTPUT = qgisprocess:::qgis_default_value(),
  OUTPUT_HTML_FILE = qgisprocess:::qgis_default_value(),
  ...,
  .complete_output = .complete_output_option(),
  .quiet = .quiet_option(),
  .messages = .message_option()
)

Arguments

INPUT

source - Input layer. Path to a vector layer.

FIELDS

field - Target field(s). The name of an existing field. ; delimited list of existing field names.

OUTPUT

sink - Unique values. Path for new vector layer.

OUTPUT_HTML_FILE

fileDestination - HTML report. Path for new file.

...

further parameters passed to qgisprocess::qgis_run_algorithm()

.complete_output

logical specifying if complete out of qgisprocess::qgis_run_algorithm() should be used (TRUE) or first output (most likely the main) should read (FALSE). Default value is TRUE.

.quiet

logical specifying if parameter .quiet for qgisprocess::qgis_run_algorithm() Default value is TRUE.

.messages

logical specifying if messages from qgisprocess::qgis_run_algorithm() should be printed (TRUE) or not (FALSE). Default value is FALSE.

Details

Outputs description

  • OUTPUT - outputVector - Unique values

  • OUTPUT_HTML_FILE - outputHtml - HTML report

  • TOTAL_VALUES - outputNumber - Total unique values

  • UNIQUE_VALUES - outputString - Unique values