Converts the feature data contained in a KML or KMZ file to shapefile or File GDB layers
Parameters
Expression | Explanation |
---|---|
Function Name | ImportFromGoogle |
<Input KML> | A String representing the full path to the KML(KMZ) file |
<Output Workspace> | A String - the full path to the output folder or File GDB. |
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, "ImportFromGoogle", "Input KML", "Output Workspace"]) |
.NET using ETGWRun.exe | StartInfo.FileName = ETGWPath StartInfo.Arguments = "ImportFromGoogle" "Input KML" "Output Workspace" |
.NET using ETGWOutX.dll | ImportFromGoogle(Input KML, Output Workspace) |
ArcPy | arcpy.ImportFromGoogle(Input KML, Output Workspace) |
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.