﻿{"id":11017,"date":"2023-07-06T09:00:00","date_gmt":"2023-07-06T07:00:00","guid":{"rendered":"https:\/\/www.sigterritoires.fr\/?p=11017"},"modified":"2023-07-05T15:48:31","modified_gmt":"2023-07-05T13:48:31","slug":"netwotk-analysis-with-qgis","status":"publish","type":"post","link":"https:\/\/www.sigterritoires.fr\/index.php\/en\/netwotk-analysis-with-qgis\/","title":{"rendered":"Netwotk Analysis with QGis"},"content":{"rendered":"\n<p>We&rsquo;ll look at how to download and prepare OpenStreetMap data for a network analysis, then at all the QGis processes grouped together under the heading Network Analysis.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>We&rsquo;ll look here at examples of road network analysis, but it&rsquo;s clear that the same possibilities apply to any type of network: pipes, hydrographic, etc.<\/p>\n\n\n\n<p>One of the most common uses of network analysis is to find the shortest (or fastest) path. This requires a topologically flawless network, i.e. one in which all sections are well connected to each other, and in which the digitization of the section has been carried out in the direction of travel (from the starting point to the end point of the section).<\/p>\n\n\n\n<p>The hardest part of the job is bringing the network up to standard.<\/p>\n\n\n\n<p>As far as the road network is concerned, we have data in OpenStreetMap that meets all these conditions.<\/p>\n\n\n\n<p>For a given area, we have three sources of data, all available on the <a href=\"http:\/\/download.geofabrik.de\" title=\"Geofabrik\">Geofabrik<\/a> website: shapefiles, compressed .osm files and pbf files.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/page_uruguay_geofabrik.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"348\" data-attachment-id=\"10956\" data-permalink=\"https:\/\/www.sigterritoires.fr\/page_uruguay_geofabrik\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/page_uruguay_geofabrik.png?fit=1128%2C612&amp;ssl=1\" data-orig-size=\"1128,612\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"page_uruguay_geofabrik\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/page_uruguay_geofabrik.png?fit=640%2C348&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/page_uruguay_geofabrik.png?resize=640%2C348&#038;ssl=1\" alt=\"network analysis :download page on geofabrik.de with the different types of format available.\" class=\"wp-image-10956\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/page_uruguay_geofabrik.png?resize=1024%2C556&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/page_uruguay_geofabrik.png?resize=300%2C163&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/page_uruguay_geofabrik.png?resize=768%2C417&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/page_uruguay_geofabrik.png?resize=150%2C81&amp;ssl=1 150w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/page_uruguay_geofabrik.png?resize=250%2C136&amp;ssl=1 250w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/page_uruguay_geofabrik.png?w=1128&amp;ssl=1 1128w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Preparing OSM data<\/h2>\n\n\n\n<p>Depending on the type of file you have chosen and your software configuration, the data preparation stage before you can use the network analysis tools can be more or less time-consuming and complicated.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">If you only have QGis<\/h3>\n\n\n\n<p>If you don&rsquo;t have a PostgreSQL \/ <a href=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/starting-with-postgres-postgis\/\">Postgis<\/a> database, the format to download is the <a href=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/shapefile-vs-geopackage\/\">shapefile<\/a> format. You won&rsquo;t get all the information contained in the other formats, but for road network (or hydrographic) analysis you&rsquo;ll have everything you need.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/couches_shp_osm.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"750\" data-attachment-id=\"10957\" data-permalink=\"https:\/\/www.sigterritoires.fr\/couches_shp_osm\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/couches_shp_osm.png?fit=963%2C1128&amp;ssl=1\" data-orig-size=\"963,1128\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"couches_shp_osm\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/couches_shp_osm.png?fit=640%2C750&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/couches_shp_osm.png?resize=640%2C750&#038;ssl=1\" alt=\"layers contained in the OSM shp file (geofabrik)\" class=\"wp-image-10957\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/couches_shp_osm.png?resize=874%2C1024&amp;ssl=1 874w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/couches_shp_osm.png?resize=256%2C300&amp;ssl=1 256w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/couches_shp_osm.png?resize=768%2C900&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/couches_shp_osm.png?resize=128%2C150&amp;ssl=1 128w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/couches_shp_osm.png?w=963&amp;ssl=1 963w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p>To work with QGis network analysis processes, we&rsquo;ll be using the <strong><em>gis_osm_roads_free_1<\/em><\/strong> layer.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">If you have QGis and Postgis<\/h3>\n\n\n\n<p>Depending on the tools you use to load an OSM file into Postgis, you may choose either OSM or pbf format.<\/p>\n\n\n\n<p><strong><em>osm2pgrouting <\/em><\/strong>is a command-line utility for loading .osm format files into a PostgreSQL \/ Postgis database.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>If you have osm2pgrouting<\/strong><\/h3>\n\n\n\n<p>As its name suggests, it prepares OSM data by default for use with Postgis routing tools (pgrouting).<\/p>\n\n\n\n<p>An example command line is shown below:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>osm2pgrouting.exe \u2013clean=1 -f fichier_telecharg\u00e9.osm -d base_de_donn\u00e9es -p 5433 -h localhost --schema uruguay -U postgres -W ******  -c mapconfig_for_cars.xml\n<\/code><\/pre>\n\n\n\n<p>-d indicates which database on your server the data should be loaded into<\/p>\n\n\n\n<p>-p corresponds to the PostgreSQL server listening port<\/p>\n\n\n\n<p>-W is the user password<\/p>\n\n\n\n<p>-c the configuration file to be used for loading. osm2pgrouting offers three files, adapted for cars, pedestrians and bicycles.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/osm2pgrouting_ligne_de_cmmande.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"343\" data-attachment-id=\"10958\" data-permalink=\"https:\/\/www.sigterritoires.fr\/osm2pgrouting_ligne_de_cmmande\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/osm2pgrouting_ligne_de_cmmande.png?fit=3465%2C1857&amp;ssl=1\" data-orig-size=\"3465,1857\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"osm2pgrouting_ligne_de_cmmande\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/osm2pgrouting_ligne_de_cmmande.png?fit=640%2C343&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/osm2pgrouting_ligne_de_cmmande.png?resize=640%2C343&#038;ssl=1\" alt=\"ligne de commande de osm2pgrouting pour charger dans postgis un fichier .osm\" class=\"wp-image-10958\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/osm2pgrouting_ligne_de_cmmande.png?resize=1024%2C549&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/osm2pgrouting_ligne_de_cmmande.png?resize=300%2C161&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/osm2pgrouting_ligne_de_cmmande.png?resize=768%2C412&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/osm2pgrouting_ligne_de_cmmande.png?resize=1536%2C823&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/osm2pgrouting_ligne_de_cmmande.png?resize=2048%2C1098&amp;ssl=1 2048w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/osm2pgrouting_ligne_de_cmmande.png?resize=150%2C80&amp;ssl=1 150w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/osm2pgrouting_ligne_de_cmmande.png?resize=250%2C134&amp;ssl=1 250w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/osm2pgrouting_ligne_de_cmmande.png?w=1280&amp;ssl=1 1280w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/osm2pgrouting_ligne_de_cmmande.png?w=1920&amp;ssl=1 1920w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/figure>\n\n\n\n<p>The loading result is as follows:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/resultat_osm2pgrouting_dans_postgresql.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"511\" height=\"1024\" data-attachment-id=\"10959\" data-permalink=\"https:\/\/www.sigterritoires.fr\/resultat_osm2pgrouting_dans_postgresql\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/resultat_osm2pgrouting_dans_postgresql.png?fit=723%2C1449&amp;ssl=1\" data-orig-size=\"723,1449\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"resultat_osm2pgrouting_dans_postgresql\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/resultat_osm2pgrouting_dans_postgresql.png?fit=511%2C1024&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/resultat_osm2pgrouting_dans_postgresql.png?resize=511%2C1024&#038;ssl=1\" alt=\"tables created by osm2pgrouting in the postgis database\" class=\"wp-image-10959\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/resultat_osm2pgrouting_dans_postgresql.png?resize=511%2C1024&amp;ssl=1 511w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/resultat_osm2pgrouting_dans_postgresql.png?resize=150%2C300&amp;ssl=1 150w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/resultat_osm2pgrouting_dans_postgresql.png?resize=75%2C150&amp;ssl=1 75w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/resultat_osm2pgrouting_dans_postgresql.png?w=723&amp;ssl=1 723w\" sizes=\"auto, (max-width: 511px) 100vw, 511px\" \/><\/a><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\">If you have osm2pgsql<\/h3>\n\n\n\n<p><strong><em>osm2pgsql <\/em><\/strong>is a command-line utility for loading all OSM data from a .pbf file into a PostgreSQL \/ Postgis database.<\/p>\n\n\n\n<p>An example command line is<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><em>C:\\osm2pgsql\\osm2pgsql-bin\\osm2pgsql.exe -c -d postgis_33_sample -U postgres -W -H localhost -P 5433 -S default.style uruguay-latest.osm.pbf<\/em><\/code><\/pre>\n\n\n\n<p>The parameters are similar to those used by <strong><em>osm2pgrouting<\/em><\/strong>, except for the <strong><em>-S parameter<\/em><\/strong> which defines the style file to be used. You&rsquo;ll find this default style file in the <strong><em>osm2pgsql-bin<\/em><\/strong> directory, in the <strong><em>osm2pgsq<\/em><\/strong>l installation directory. It indicates which columns are to be created in the postgis table.<\/p>\n\n\n\n<p>For our network analysis work, it&rsquo;s likely that at some point we&rsquo;ll use the maximum authorized speed of the sections to calculate the fastest route. Unfortunately, this parameter (maxspeed) is not included in the list of attributes to be created. For it to be created, a line must be added to the default.style file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><em>node,way maxspeed text linear<\/em><\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/default.style_modifie.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"557\" data-attachment-id=\"10960\" data-permalink=\"https:\/\/www.sigterritoires.fr\/default-style_modifie\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/default.style_modifie.png?fit=669%2C582&amp;ssl=1\" data-orig-size=\"669,582\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"default.style_modifie\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/default.style_modifie.png?fit=640%2C557&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/default.style_modifie.png?resize=640%2C557&#038;ssl=1\" alt=\"add line to default.style file for osm2pgsql\" class=\"wp-image-10960\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/default.style_modifie.png?w=669&amp;ssl=1 669w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/default.style_modifie.png?resize=300%2C261&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/default.style_modifie.png?resize=150%2C130&amp;ssl=1 150w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/default.style_modifie.png?resize=172%2C150&amp;ssl=1 172w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/figure>\n\n\n\n<p>UOnce the command line has been executed:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/osm2pgsql_ligne_de_commande.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"10961\" data-permalink=\"https:\/\/www.sigterritoires.fr\/osm2pgsql_ligne_de_commande\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/osm2pgsql_ligne_de_commande.png?fit=3457%2C1877&amp;ssl=1\" data-orig-size=\"3457,1877\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"osm2pgsql_ligne_de_commande\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/osm2pgsql_ligne_de_commande.png?fit=640%2C348&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/osm2pgsql_ligne_de_commande.png?resize=640%2C347&#038;ssl=1\" alt=\"run osm2pgsql command line to load into postgis\" class=\"wp-image-10961\" width=\"640\" height=\"347\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/osm2pgsql_ligne_de_commande.png?resize=1024%2C556&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/osm2pgsql_ligne_de_commande.png?resize=300%2C163&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/osm2pgsql_ligne_de_commande.png?resize=768%2C417&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/osm2pgsql_ligne_de_commande.png?resize=1536%2C834&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/osm2pgsql_ligne_de_commande.png?resize=2048%2C1112&amp;ssl=1 2048w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/osm2pgsql_ligne_de_commande.png?resize=150%2C81&amp;ssl=1 150w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/osm2pgsql_ligne_de_commande.png?resize=250%2C136&amp;ssl=1 250w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/osm2pgsql_ligne_de_commande.png?w=1280&amp;ssl=1 1280w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/osm2pgsql_ligne_de_commande.png?w=1920&amp;ssl=1 1920w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/figure>\n\n\n\n<p>You&rsquo;ll have four new tables in your Postgis database:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/tables_postgis_osm2pgsql.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"318\" data-attachment-id=\"10962\" data-permalink=\"https:\/\/www.sigterritoires.fr\/tables_postgis_osm2pgsql\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/tables_postgis_osm2pgsql.png?fit=1062%2C528&amp;ssl=1\" data-orig-size=\"1062,528\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"tables_postgis_osm2pgsql\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/tables_postgis_osm2pgsql.png?fit=640%2C318&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/tables_postgis_osm2pgsql.png?resize=640%2C318&#038;ssl=1\" alt=\"\npostgis tables created by osm2pgsql\" class=\"wp-image-10962\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/tables_postgis_osm2pgsql.png?resize=1024%2C509&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/tables_postgis_osm2pgsql.png?resize=300%2C149&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/tables_postgis_osm2pgsql.png?resize=768%2C382&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/tables_postgis_osm2pgsql.png?resize=150%2C75&amp;ssl=1 150w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/tables_postgis_osm2pgsql.png?resize=250%2C124&amp;ssl=1 250w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/tables_postgis_osm2pgsql.png?w=1062&amp;ssl=1 1062w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">Loading in QGis<\/h2>\n\n\n\n<p><strong><em>For shp files<\/em><\/strong>, load the <strong><em>gis_osm_roads_free_1<\/em><\/strong> layer.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/chargement_shp_qgis.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"326\" data-attachment-id=\"10964\" data-permalink=\"https:\/\/www.sigterritoires.fr\/chargement_shp_qgis\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/chargement_shp_qgis.png?fit=3276%2C1671&amp;ssl=1\" data-orig-size=\"3276,1671\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"chargement_shp_qgis\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/chargement_shp_qgis.png?fit=640%2C326&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/chargement_shp_qgis.png?resize=640%2C326&#038;ssl=1\" alt=\"load osm shapefile into qgis\" class=\"wp-image-10964\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/chargement_shp_qgis.png?resize=1024%2C522&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/chargement_shp_qgis.png?resize=300%2C153&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/chargement_shp_qgis.png?resize=768%2C392&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/chargement_shp_qgis.png?resize=1536%2C783&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/chargement_shp_qgis.png?resize=2048%2C1045&amp;ssl=1 2048w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/chargement_shp_qgis.png?resize=150%2C77&amp;ssl=1 150w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/chargement_shp_qgis.png?resize=250%2C128&amp;ssl=1 250w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/chargement_shp_qgis.png?w=1280&amp;ssl=1 1280w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/chargement_shp_qgis.png?w=1920&amp;ssl=1 1920w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/figure>\n\n\n\n<p>For <strong><em>osm <\/em><\/strong>files processed with <strong><em>osm2pgrouting<\/em><\/strong>, load the <strong><em>ways <\/em><\/strong>table.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/chargement_pgrouting_qgis.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"324\" data-attachment-id=\"10965\" data-permalink=\"https:\/\/www.sigterritoires.fr\/chargement_pgrouting_qgis\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/chargement_pgrouting_qgis.png?fit=3333%2C1689&amp;ssl=1\" data-orig-size=\"3333,1689\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"chargement_pgrouting_qgis\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/chargement_pgrouting_qgis.png?fit=640%2C324&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/chargement_pgrouting_qgis.png?resize=640%2C324&#038;ssl=1\" alt=\"load file from osm2pgrouting into qgis\" class=\"wp-image-10965\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/chargement_pgrouting_qgis.png?resize=1024%2C519&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/chargement_pgrouting_qgis.png?resize=300%2C152&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/chargement_pgrouting_qgis.png?resize=768%2C389&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/chargement_pgrouting_qgis.png?resize=1536%2C778&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/chargement_pgrouting_qgis.png?resize=2048%2C1038&amp;ssl=1 2048w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/chargement_pgrouting_qgis.png?resize=150%2C76&amp;ssl=1 150w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/chargement_pgrouting_qgis.png?resize=250%2C127&amp;ssl=1 250w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/chargement_pgrouting_qgis.png?w=1280&amp;ssl=1 1280w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/chargement_pgrouting_qgis.png?w=1920&amp;ssl=1 1920w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/figure>\n\n\n\n<p><strong>For pbf files<\/strong> processed with <strong><em>osm2pgsql<\/em><\/strong>, load the <strong><em>planet_osm_line <\/em><\/strong>table. Contrary to popular belief, the <strong><em>planet_osm_roads<\/em><\/strong> table contains only the main roads. In the <strong><em>planet_osm_line<\/em><\/strong> table, you&rsquo;ll have all linear entities, not just the road network. To have only the roads, you need to apply a filter on the <strong><em>highway <\/em><\/strong>attribute to retain only those rows where this attribute is not NULL. If you want to work on the hydrographic network, the IS NOT NULL filter must be applied to the <strong><em>waterway <\/em><\/strong>attribute, and if you want to work on the railway network, the <strong><em>railway <\/em><\/strong>attribute must be filtered.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/chargement_osm2pgsql_qgis.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"326\" data-attachment-id=\"10966\" data-permalink=\"https:\/\/www.sigterritoires.fr\/chargement_osm2pgsql_qgis\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/chargement_osm2pgsql_qgis.png?fit=3273%2C1668&amp;ssl=1\" data-orig-size=\"3273,1668\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"chargement_osm2pgsql_qgis\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/chargement_osm2pgsql_qgis.png?fit=640%2C326&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/chargement_osm2pgsql_qgis.png?resize=640%2C326&#038;ssl=1\" alt=\"loading tables from osm2pgsql into qgis.\" class=\"wp-image-10966\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/chargement_osm2pgsql_qgis.png?resize=1024%2C522&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/chargement_osm2pgsql_qgis.png?resize=300%2C153&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/chargement_osm2pgsql_qgis.png?resize=768%2C391&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/chargement_osm2pgsql_qgis.png?resize=1536%2C783&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/chargement_osm2pgsql_qgis.png?resize=2048%2C1044&amp;ssl=1 2048w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/chargement_osm2pgsql_qgis.png?resize=150%2C76&amp;ssl=1 150w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/chargement_osm2pgsql_qgis.png?resize=250%2C127&amp;ssl=1 250w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/chargement_osm2pgsql_qgis.png?w=1280&amp;ssl=1 1280w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/chargement_osm2pgsql_qgis.png?w=1920&amp;ssl=1 1920w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/figure>\n\n\n\n<p>If you&rsquo;re working on the scale of a small town or village, you can use a specific symbology.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/symbologie_osm_qgis.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"355\" data-attachment-id=\"10969\" data-permalink=\"https:\/\/www.sigterritoires.fr\/symbologie_osm_qgis\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/symbologie_osm_qgis.png?fit=2643%2C1467&amp;ssl=1\" data-orig-size=\"2643,1467\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"symbologie_osm_qgis\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/symbologie_osm_qgis.png?fit=640%2C355&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/symbologie_osm_qgis.png?resize=640%2C355&#038;ssl=1\" alt=\"network symbology with direction arrows\" class=\"wp-image-10969\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/symbologie_osm_qgis.png?resize=1024%2C568&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/symbologie_osm_qgis.png?resize=300%2C167&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/symbologie_osm_qgis.png?resize=768%2C426&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/symbologie_osm_qgis.png?resize=1536%2C853&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/symbologie_osm_qgis.png?resize=2048%2C1137&amp;ssl=1 2048w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/symbologie_osm_qgis.png?resize=150%2C83&amp;ssl=1 150w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/symbologie_osm_qgis.png?resize=250%2C139&amp;ssl=1 250w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/symbologie_osm_qgis.png?w=1280&amp;ssl=1 1280w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/symbologie_osm_qgis.png?w=1920&amp;ssl=1 1920w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/figure>\n\n\n\n<p>You can download these symbols in xml format <a href=\"https:\/\/www.nasca.ovh\/downloads\/oneway.xml\" title=\"from this link\">from this link<\/a>. To use them, open the style manager, click on import\/export and point to the downloaded <strong><em>oneway.xml<\/em><\/strong> file.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/symboles_oneway_qgis-1.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"286\" data-attachment-id=\"10971\" data-permalink=\"https:\/\/www.sigterritoires.fr\/symboles_oneway_qgis-1\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/symboles_oneway_qgis-1.png?fit=2751%2C1230&amp;ssl=1\" data-orig-size=\"2751,1230\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"symboles_oneway_qgis-1\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/symboles_oneway_qgis-1.png?fit=640%2C286&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/symboles_oneway_qgis-1.png?resize=640%2C286&#038;ssl=1\" alt=\"symboles pour oneway osm avec Qgis\" class=\"wp-image-10971\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/symboles_oneway_qgis-1.png?resize=1024%2C458&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/symboles_oneway_qgis-1.png?resize=300%2C134&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/symboles_oneway_qgis-1.png?resize=768%2C343&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/symboles_oneway_qgis-1.png?resize=1536%2C687&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/symboles_oneway_qgis-1.png?resize=2048%2C916&amp;ssl=1 2048w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/symboles_oneway_qgis-1.png?resize=150%2C67&amp;ssl=1 150w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/symboles_oneway_qgis-1.png?resize=250%2C112&amp;ssl=1 250w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/symboles_oneway_qgis-1.png?w=1280&amp;ssl=1 1280w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/symboles_oneway_qgis-1.png?w=1920&amp;ssl=1 1920w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/figure>\n\n\n\n<p>To apply them, open the layer properties <strong><em>gis_osm_roadfs_free_1 -&gt; symbology<\/em><\/strong>. Select <strong><em>Categorized, value-&gt; oneway.<\/em><\/strong><\/p>\n\n\n\n<p>You&rsquo;ll get three classes with values B, F and T.<\/p>\n\n\n\n<p>Apply the symbol<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>oneway_both to value B,<\/li>\n\n\n\n<li>oneway_forward to value F,<\/li>\n\n\n\n<li>oneway_opposite to value T.<\/li>\n<\/ul>\n\n\n\n<p>You also have <strong><em>network_speed <\/em><\/strong>tags, which display the maximum speed of the section and must use the layer&rsquo;s <strong><em>maxspeed <\/em><\/strong>field.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We&rsquo;ll look at how to download and prepare OpenStreetMap data for a network analysis, then at all the QGis processes grouped together under the heading Network Analysis.<\/p>\n","protected":false},"author":1,"featured_media":10969,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"give_campaign_id":0,"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"sfsi_plus_gutenberg_text_before_share":"","sfsi_plus_gutenberg_show_text_before_share":"","sfsi_plus_gutenberg_icon_type":"","sfsi_plus_gutenberg_icon_alignemt":"","sfsi_plus_gutenburg_max_per_row":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1377],"tags":[2329,2327,2331,2333,2335,2337,2339,1349,1386,2341,2343],"class_list":["post-11017","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-qgis-en","tag-analysis-en","tag-download","tag-network-en","tag-ogr2pgsql-en","tag-osm-en","tag-osm2pgrouting-en","tag-pbf-en","tag-postgis-en","tag-qgis-en","tag-shp-en","tag-symbologie-en"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2023\/06\/symbologie_osm_qgis.png?fit=2643%2C1467&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p6XU0A-2RH","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/posts\/11017","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/comments?post=11017"}],"version-history":[{"count":0,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/posts\/11017\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/media\/10969"}],"wp:attachment":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/media?parent=11017"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/categories?post=11017"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/tags?post=11017"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}