{"id":75,"date":"2015-09-04T21:16:37","date_gmt":"2015-09-04T21:16:37","guid":{"rendered":"https:\/\/jongarrido.es\/?p=75"},"modified":"2015-09-04T21:16:37","modified_gmt":"2015-09-04T21:16:37","slug":"how-to-create-a-network-dataset-from-osm-data","status":"publish","type":"post","link":"https:\/\/jongarrido.es\/?p=75","title":{"rendered":"How to create a Network Dataset from OSM Data"},"content":{"rendered":"<p>For this purpose we need:<\/p>\n<ul>\n<li>ArcGis 10.x<\/li>\n<li>OSMEditor Toolbar (<a title=\"ArcGis Osm Editor Toolbar\" href=\"http:\/\/esriosmeditor.codeplex.com\/\">here<\/a>).<\/li>\n<li>Wget for windows (<a title=\"Wget for Win32\" href=\"http:\/\/gnuwin32.sourceforge.net\/packages\/wget.htm\">here<\/a>) (optional).<\/li>\n<\/ul>\n<p>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.<\/p>\n<p><!--more--><\/p>\n<p><strong>Downloading de OSM data.<\/strong><\/p>\n<p>For small amounts of data we can use the OSM tool Download OSM Data from OSMEditor toolbar.<\/p>\n<p>For Huge amounts of data we need to use different ways:<\/p>\n<ul>\n<li>Direct download from OSM CloudMade (<a title=\"Cloudmade\" href=\"http:\/\/downloads.cloudmade.com\/\">here<\/a>).<\/li>\n<li>Using a map request. For this purpose:<\/li>\n<\/ul>\n<p style=\"padding-left: 30px;\">First of all create a bounding box. For example using OSM Viewer with the export tab:<\/p>\n<p style=\"padding-left: 30px;\">Then create the map request with the wget application from command prompt:<\/p>\n<p style=\"padding-left: 30px;\">wget &#8211;timeout=0 -O myOSMDAta.osm \u00abhttp:\/\/overpass-api.de\/api\/xapi_meta?*[bbox=-117.27,32.63<br \/>\n,-116.92,32.85]\u00bb<\/p>\n<p><strong>Importing OSM data to a database<\/strong><\/p>\n<p>For this operation we will use a specific tool from OSM Editor Toolbar: Load OSM File<\/p>\n<p>The target workspace should either be a file geodatabase or an enterprise (SDE) geodatabase.<\/p>\n<p><strong>Creating Network Dataset.<\/strong><\/p>\n<p>Before executing the Create OSM Network Dataset tool from OSM Editor Toolbar we need to do<strong> two important things<\/strong>:<\/p>\n<h3><\/h3>\n<ul>\n<li>Disable background Processing in \u00abgeoprocessing options\u00bb in ArcMap.<\/li>\n<li>Restart ArcMap to unlock the OSM database schema.<\/li>\n<\/ul>\n<p>Then, we need to give 3 parameters to the Create OSM Network Dataset tool:<\/p>\n<ul>\n<li>Input OSM DataSet (the file we&#8217;ve created in the previous step).<\/li>\n<li>OutPutNetworkDataset (the target)<\/li>\n<li>Network configuration File.<\/li>\n<\/ul>\n<p style=\"padding-left: 30px;\">The network configuration File\u00a0 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:<\/p>\n<p style=\"padding-left: 30px;\">C:\\Program Files (x86)\\ArcGIS\\Desktop10.1\\ArcToolbox\\Toolboxes\\ND_ConfigFiles<\/p>\n<p style=\"padding-left: 30px;\">For example DriveGeneric.xml<\/p>\n<p>That&#8217;s all!!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For this purpose we need: ArcGis 10.x OSMEditor Toolbar (here). Wget for windows (here) (optional). 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.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[4,5,15,20],"class_list":["post-75","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-arcgis","tag-arcmap","tag-network-analyst","tag-osm"],"_links":{"self":[{"href":"https:\/\/jongarrido.es\/index.php?rest_route=\/wp\/v2\/posts\/75","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jongarrido.es\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jongarrido.es\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jongarrido.es\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jongarrido.es\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=75"}],"version-history":[{"count":0,"href":"https:\/\/jongarrido.es\/index.php?rest_route=\/wp\/v2\/posts\/75\/revisions"}],"wp:attachment":[{"href":"https:\/\/jongarrido.es\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=75"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jongarrido.es\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=75"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jongarrido.es\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=75"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}