Import well-known text (WKT)

This tool can be used to import a Well-Known Text (WKT) file to a vector shapefile. WKT is a text based mark-up format that is commonly used to store geographical data, and particularly vector features. It is widely used for data exchange among GIS programs. The WKT reader in Whitebox relies on the Java Topology Suite (JTS).
One of the limitations of the shapefile format is that it can only store geometries of one type, i.e. all the records in a file must be of the same ShapeType. This is not the case for the WKT format. As such, at present, only WKT files containing geometries of a singular type (e.g. all records are Points, LineStrings, or Polygons) can be imported with this tool.

See Also:

Scripting:

The following is an example of a Python script using this tool:

wd = pluginHost.getWorkingDirectory()
# You may have multiple input files but they must
# be separated by semicolons in the string.
inputFiles = wd + "input1.wkt" + ";" + wd + "input2.wkt" + ";" + wd + "input3.wkt"
args = [inputFiles]
pluginHost.runPlugin("ImportWellKnownText", args, False)

This is a Groovy script also using this tool:

def wd = pluginHost.getWorkingDirectory()
// You may have multiple input files but they must
// be separated by semicolons in the string.
def inputFiles = wd + "input1.wkt" + ";" + wd + "input2.wkt" + ";" + wd + "input3.wkt"
String[] args = [inputFiles]
pluginHost.runPlugin("ImportWellKnownText", args, false)

Credits: