Import from Open Street Map

Running programmatically

Converts spatial data encoded in Open Street Map - .osm (XML based) and .pbf (optimized binary) formats to shapefile or File GDB layer/s.

Inputs

Outputs

Notes:

Running Programmatically

(Go to TOP)

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.
  • "Point"
  • "Polygon"
  • "Polyline"
  • "All"

Running the function

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:

(Go to TOP)