﻿{"id":11019,"date":"2023-07-06T09:00:00","date_gmt":"2023-07-06T07:00:00","guid":{"rendered":"https:\/\/www.sigterritoires.fr\/?p=11019"},"modified":"2023-07-05T15:46:33","modified_gmt":"2023-07-05T13:46:33","slug":"analise-de-rede-com-qgis","status":"publish","type":"post","link":"https:\/\/www.sigterritoires.fr\/index.php\/pt\/analise-de-rede-com-qgis\/","title":{"rendered":"An\u00e1lise de rede com QGis"},"content":{"rendered":"\n<p>Vamos ver como descarregar e preparar os dados do OpenStreetMap para uma an\u00e1lise de rede, e depois todos os processos QGis agrupados sob o t\u00edtulo An\u00e1lise de Rede.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>Aqui veremos exemplos de an\u00e1lise de redes rodovi\u00e1rias, mas \u00e9 claro que as mesmas possibilidades se aplicam a qualquer tipo de rede: tubagens, hidrografia, etc.<\/p>\n\n\n\n<p>Uma das utiliza\u00e7\u00f5es mais comuns da an\u00e1lise de redes \u00e9 encontrar o <a href=\"https:\/\/www.sigterritoires.fr\/index.php\/pt\/ferramentas-de-analise-de-rede-qgis-caminho-mais-curto\/\">caminho mais curto<\/a> (ou mais r\u00e1pido). Para tal, \u00e9 necess\u00e1ria uma rede topologicamente sem falhas, ou seja, uma rede em que todas as sec\u00e7\u00f5es estejam bem ligadas entre si e em que a digitaliza\u00e7\u00e3o da sec\u00e7\u00e3o tenha sido efectuada no sentido da viagem (do ponto de partida ao ponto de chegada da sec\u00e7\u00e3o).<\/p>\n\n\n\n<p>A parte mais dif\u00edcil do trabalho \u00e9 a normaliza\u00e7\u00e3o da rede.<\/p>\n\n\n\n<p>No que respeita \u00e0 rede rodovi\u00e1ria, dispomos, em princ\u00edpio, de dados que satisfazem todas estas condi\u00e7\u00f5es no OpenStreetMap.<\/p>\n\n\n\n<p>Para uma determinada \u00e1rea, temos tr\u00eas fontes de dados, todas dispon\u00edveis no site <a href=\"http:\/\/download.geofabrik.de\" title=\"Geofabrik\">Geofabrik<\/a>: shapefiles, ficheiros .osm comprimidos e ficheiros pbf.<\/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=\"An\u00e1lise de rede :p\u00e1gina de descarregamento no s\u00edtio Web geofabrik.de com os diferentes tipos de formato dispon\u00edveis.\" 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\">Prepara\u00e7\u00e3o dos dados OSM<\/h2>\n\n\n\n<p>Dependendo do tipo de ficheiro escolhido e da configura\u00e7\u00e3o do software, a fase de prepara\u00e7\u00e3o dos dados, antes de poder utilizar as ferramentas de an\u00e1lise de rede, pode ser mais ou menos longa e complicada.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Se tiver apenas o QGis<\/h3>\n\n\n\n<p>Se n\u00e3o tiver uma base de dados PostgreSQL \/ Postgis, o formato a descarregar \u00e9 o formato shapefile. N\u00e3o ter\u00e1 toda a informa\u00e7\u00e3o contida nos outros formatos, mas para a an\u00e1lise da rede rodovi\u00e1ria (ou hidrogr\u00e1fica) ter\u00e1 tudo o que precisa.<\/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=\"camadas contidas no ficheiro OSM shp (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>Para trabalhar com os processos de an\u00e1lise de redes QGis, utilizaremos a camada <strong><em>gis_osm_roads_free_1<\/em><\/strong>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Se tiver o QGis e o Postgis<\/h3>\n\n\n\n<p>Em fun\u00e7\u00e3o das ferramentas de que disp\u00f5e para carregar um ficheiro OSM no Postgis, escolher\u00e1 o formato OSM ou o formato pbf.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Se tiver o osm2pgrouting<\/h3>\n\n\n\n<p><strong><em>osm2pgrouting <\/em><\/strong>\u00e9 um utilit\u00e1rio de linha de comandos que permite carregar ficheiros no formato .osm para uma base de dados PostgreSQL \/ Postgis.<\/p>\n\n\n\n<p>Como o nome sugere, por defeito, prepara os dados OSM para serem utilizados com as ferramentas de encaminhamento Postgis (pgrouting).<\/p>\n\n\n\n<p>Um exemplo de linha de comando \u00e9 mostrado abaixo:<\/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 indica em que base de dados do seu servidor os dados devem ser carregados<\/p>\n\n\n\n<p>-p corresponde \u00e0 porta de escuta do servidor PostgreSQL<\/p>\n\n\n\n<p>-W \u00e9 a palavra-passe do utilizador<\/p>\n\n\n\n<p>-c o ficheiro de configura\u00e7\u00e3o a utilizar para o carregamento. osm2pgrouting prop\u00f5e tr<\/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=\"linha de comando osm2pgrouting para carregar um ficheiro .osm no postgis\" 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>O resultado do carregamento \u00e9 o seguinte:<\/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=\"tabelas criadas pelo osm2pgrouting na base de dados postgis\" 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\">Se tiver o osm2pgsql<\/h3>\n\n\n\n<p>osm2pgsql \u00e9 um programa de linha de comandos que permite carregar todos os dados OSM numa base de dados PostgreSQL \/ Postgis a partir de um ficheiro .pbf.<\/p>\n\n\n\n<p>Um exemplo de linha de comando \u00e9 o seguinte<\/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>Os par\u00e2metros s\u00e3o semelhantes aos utilizados pelo <strong><em>osm2pgrouting<\/em><\/strong>, exceto o par\u00e2metro <strong><em>-S <\/em><\/strong>que define o ficheiro de estilo a ser utilizado. Este arquivo de estilo padr\u00e3o pode ser encontrado no diret\u00f3rio <strong><em>osm2pgsql-bin<\/em><\/strong> no diret\u00f3rio de instala\u00e7\u00e3o do <strong><em>osm2pgsql<\/em><\/strong>. Ele indica quais colunas devem ser criadas na tabela postgis.<\/p>\n\n\n\n<p>Para o nosso trabalho de an\u00e1lise de rede, \u00e9 prov\u00e1vel que, a dada altura, utilizemos a velocidade m\u00e1xima autorizada dos tro\u00e7os para calcular o itiner\u00e1rio mais r\u00e1pido. Infelizmente, este par\u00e2metro (maxspeed) n\u00e3o est\u00e1 inclu\u00eddo na lista de atributos a criar. Para o criar, \u00e9 necess\u00e1rio acrescentar uma linha ao ficheiro <strong><em>default.style<\/em><\/strong>:<\/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=\"linha para adicionar ao ficheiro default.style do 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>Quando a linha de comando tiver sido executada:<\/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=\"executar a linha de comando do osm2pgsql para carregar no 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>Ter\u00e1 quatro novas tabelas na sua base de dados Postgis:<\/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=\"tabelas postgis criadas pelo 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\">Carregamento no QGis<\/h2>\n\n\n\n<p><strong>Para os ficheiros shp<\/strong>, carregue a camada <strong><em>gis_osm_roads_free_1<\/em><\/strong>.<\/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=\"carregar a forma do osm no 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>PoPara os ficheiros <strong><em>osm <\/em><\/strong>processados com <strong><em>osm2pgrouting<\/em><\/strong>, carregar a tabela <strong><em>ways<\/em><\/strong>.<\/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=\"carregar o ficheiro do osm2pgrouting no 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>Para os ficheiros pbf<\/strong> processados com <strong><em>osm2pgsql<\/em><\/strong>, carregar a tabela <strong><em>planet_osm_line<\/em><\/strong>. Ao contr\u00e1rio do que se possa pensar, a tabela <strong><em>planet_osm_roads<\/em><\/strong> cont\u00e9m apenas as estradas principais. Na tabela <strong><em>planet_osm_line<\/em><\/strong> ter\u00e1 todas as entidades lineares e n\u00e3o apenas a rede rodovi\u00e1ria. Para ter apenas as estradas, \u00e9 necess\u00e1rio aplicar um filtro ao atributo <strong><em>highway <\/em><\/strong>para reter apenas as linhas em que este atributo n\u00e3o \u00e9 NULL. Se pretender trabalhar sobre a rede hidrogr\u00e1fica, \u00e9 necess\u00e1rio aplicar o filtro IS NOT NULL ao atributo <strong><em>waterway <\/em><\/strong>e, se pretender trabalhar sobre a rede ferrovi\u00e1ria, \u00e9 necess\u00e1rio filtrar o atributo <strong><em>railway<\/em><\/strong>.<\/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=\"carregamento de tabelas do osm2pgsql no 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>Se estiver a trabalhar \u00e0 escala de uma pequena cidade ou aldeia, pode utilizar uma simbologia espec\u00edfica.<\/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=\"simbologia de rede com setas de dire\u00e7\u00e3o\" 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>Pode descarregar estes s\u00edmbolos em formato xml a partir <a href=\"https:\/\/www.nasca.ovh\/downloads\/oneway.xml\" title=\"desta liga\u00e7\u00e3o\">desta liga\u00e7\u00e3o<\/a>. Para os utilizar, abra o gestor de estilos, clique em importar\/exportar e aponte para o ficheiro <strong><em>oneway.xml<\/em><\/strong> descarregado.<\/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=\"mbolos para oneway_osm com 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>Para os aplicar, abra as propriedades da camada <strong><em>gis_osm_roadfs_free_1 -&gt; simbologia<\/em><\/strong>. Seleccione <strong><em>Categorised, value-&gt; oneway<\/em><\/strong>.<\/p>\n\n\n\n<p>Ter\u00e1 tr\u00eas classes com os valores B, F e T.<\/p>\n\n\n\n<p>Aplicar o s\u00edmbolo<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>oneway_both ao valor B,<\/li>\n\n\n\n<li>oneway_forward ao valor F,<\/li>\n\n\n\n<li>oneway_opposite ao valor T.<\/li>\n<\/ul>\n\n\n\n<p>Existem tamb\u00e9m etiquetas <strong><em>network_speed<\/em><\/strong> que indicam a velocidade m\u00e1xima da sec\u00e7\u00e3o e que devem utilizar o campo <strong><em>maxspeed <\/em><\/strong>na camada.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Vamos ver como descarregar e preparar os dados do OpenStreetMap para uma an\u00e1lise de rede, e depois todos os processos QGis agrupados sob o t\u00edtulo An\u00e1lise de Rede.<\/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":[2134],"tags":[2309,2311,2313,2315,2317,2319,2321,2158,2160,2323,2325],"class_list":["post-11019","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-qgis","tag-analise-de-rede","tag-analysis-pt","tag-network-pt","tag-ogr2pgsql-pt","tag-osm-pt","tag-osm2pgrouting-pt","tag-pbf-pt","tag-postgis-pt","tag-qgis-pt","tag-shp-pt","tag-simbologia-pt"],"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-2RJ","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/posts\/11019","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=11019"}],"version-history":[{"count":0,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/posts\/11019\/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=11019"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/categories?post=11019"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/tags?post=11019"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}