Exports the features of a dataset to a new layer based on an attribute query.
Parameters
Expression | Explanation |
---|---|
Function Name | SelectAndExport |
<input dataset> | A String representing the input layer. |
<output dataset> | A String - the full name of the output layer. |
<SQL Expression> | A String representing the selection expression. Example: Shape_Area < 200 AND Name = 'a' |
ETGWPath used in the table below is the full path to ETGWRun.exe (E.G. "C:\Program Files\ETSpatial Techniques\ETGeo Wizards\ETGWRun.exe")
Language | Syntax |
---|---|
Python | subprocess.call([ETGWPath, "SelectAndExport", "input dataset", "output dataset", "SQL Expression"]) |
.NET using ETGWRun.exe | StartInfo.FileName = ETGWPath StartInfo.Arguments = "SelectAndExport" "input dataset" "output dataset" "SQL Expression" |
.NET using ETGWOutX.dll | SelectAndExport(input dataset, output dataset, SQL Expression) |
ArcPy | arcpy.SelectAndExport(input dataset, output dataset, "SQL Expression") |
Notes:
<> - required parameter
{} - optional parameter
The argument separator for StartInfo.Arguments is space. If a string might contain a space, you need to double quote it.