Export well-known text (WKT)

This tool can be used to export a vector shapefile file to an Well-Known Text (WKT) file. 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 writer in Whitebox relies on the Java Topology Suite (JTS).

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.dep" + ";" + wd + "input2.dep" + ";" + wd + "input3.dep"
args = [inputFiles]
pluginHost.runPlugin("ExportWellKnownText", 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.dep" + ";" + wd + "input2.dep" + ";" + wd + "input3.dep"
String[] args = [inputFiles]
pluginHost.runPlugin("ExportWellKnownText", args, false)

Credits: