Converts spatial data encoded in Open Street Map - .osm (XML based) and .pbf (optimized binary) formats to shapefile or File GDB layer/s.
Parameters
Expression | Explanation |
---|---|
Function Name | ImportFromOSM |
<Input OSM> | A String - the full name of the .osm or .pbf file to be converted. |
<output dataset> | A String - the full name of the output layer. |
<Option> | A String - the convertion option. Valid values.
|
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, "ImportFromOSM", "Input OSM", "output dataset", "Option"]) |
.NET using ETGWRun.exe | StartInfo.FileName = ETGWPath StartInfo.Arguments = "ImportFromOSM" "Input OSM" "output dataset" "Option" |
.NET using ETGWOutX.dll | ImportFromOSM(Input OSM, output dataset, Option) |
ArcPy | arcpy.ImportFromOSM(Input OSM, output dataset, Option) |
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.