By jongarrido | septiembre 4, 2015 | 0 Comment
For this purpose we need:
The first step to create a OSM network is to download the OSM data. Then we will need to import the OSM data to a database and finally we will create de Network Dataset.
Downloading de OSM data.
For small amounts of data we can use the OSM tool Download OSM Data from OSMEditor toolbar.
For Huge amounts of data we need to use different ways:
First of all create a bounding box. For example using OSM Viewer with the export tab:
Then create the map request with the wget application from command prompt:
wget –timeout=0 -O myOSMDAta.osm «http://overpass-api.de/api/xapi_meta?*[bbox=-117.27,32.63
,-116.92,32.85]»
Importing OSM data to a database
For this operation we will use a specific tool from OSM Editor Toolbar: Load OSM File
The target workspace should either be a file geodatabase or an enterprise (SDE) geodatabase.
Creating Network Dataset.
Before executing the Create OSM Network Dataset tool from OSM Editor Toolbar we need to do two important things:
Then, we need to give 3 parameters to the Create OSM Network Dataset tool:
The network configuration File defines the rules for generating your network dataset from the OSM data. We can use for the initial creation of the Network Dataset a sample configuration file located in:
C:\Program Files (x86)\ArcGIS\Desktop10.1\ArcToolbox\Toolboxes\ND_ConfigFiles
For example DriveGeneric.xml
That’s all!!