Converts spatial data storred in GeoPackage file to shapefile or File GDB layer/s.
Parameters
Expression | Explanation |
---|---|
Function Name | ImportFromGeoPackage |
<Input GeoPackage> | A String - the full name of the .gpkg file to be converted. |
<output workspace> | A String - the full name of the output falder or File GDB. |
{Input layer list} | A String representing a list (separator - ";") of the names of the layers to be converted. |
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, "ImportFromGeoPackage", "Input GeoJSON", "output workspace", "Input layer list"]) |
.NET using ETGWRun.exe | StartInfo.FileName = ETGWPath StartInfo.Arguments = "ImportFromGeoPackage" "Input GeoJSON" "output workspace" "Input layer list" |
.NET using ETGWOutX.dll | ImportFromGeoPackage(Input GeoJSON, output workspace, Input layer list) |
ArcPy | arcpy.ImportFromGeoPackage(Input GeoJSON, output workspace, Input layer list) |
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.