This tool can be used to list each of the unique values contained within a categorical field within a vector file's attribute table. The output is an HTML formated report containing a table of the unique values and their frequency of occurrence within the data. The user must specify the name of an input shapefile and the name of one of the field contained it the associated attribute table. The specified field should not contained floating-point numerical data, since the number of categories will likely equal the number of records, which may be quite large. The tool effectively provides tabular output that is equivalent to the graphical output provided by the Attribute Histogram tool.
The following is an example of a Python script that uses this tool:
wd = pluginHost.getWorkingDirectory()
inputData = wd + "countries.shp" + ";" + "GOVT_TYPE"
args = [inputData]
pluginHost.runPlugin("ListUniqueValues", args, False)
This is a Groovy script also using this tool:
def wd = pluginHost.getWorkingDirectory()
def inputData = wd + "countries.shp" + ";" + "GOVT_TYPE"
String[] args = [inputData]
pluginHost.runPlugin("ListUniqueValues", args, False)