﻿{"id":1508,"date":"2015-05-21T05:37:17","date_gmt":"2015-05-21T04:37:17","guid":{"rendered":"http:\/\/www.sigterritoires.fr\/?p=1508"},"modified":"2017-06-01T08:28:03","modified_gmt":"2017-06-01T06:28:03","slug":"importer-des-tables-dans-une-base-de-donnees-spatialite-avec-qgis-2-8","status":"publish","type":"post","link":"https:\/\/www.sigterritoires.fr\/index.php\/importer-des-tables-dans-une-base-de-donnees-spatialite-avec-qgis-2-8\/","title":{"rendered":"Importer des tables dans une base de donn\u00e9es SpatiaLite avec QGis 2.8"},"content":{"rendered":"<p>Nous avons vu dans l&rsquo;article pr\u00e9c\u00e9dent (<a href=\"http:\/\/wp.me\/p64R1U-o5\">Cr\u00e9er une base de donn\u00e9es SpatiaLite avec QGis 2.8 <\/a> ) comment importer un fichier shape dans une base SpatiaLite. La m\u00e9thode est la m\u00eame pour les autres types de donn\u00e9es spatiales (kml,gml,&#8230;). Nous verrons maintenant comment importer des donn\u00e9es non spatialis\u00e9es (Excel, txt,csv,&#8230;) et surtout celles contenant des attributs de localisation (XY, Lat\/Lon,&#8230;) tout en cr\u00e9ant leur g\u00e9om\u00e9tries. Nous verrons aussi comment exporter les tables SpatiaLite sous forme de fichiers shape.<!--more--><\/p>\n<h2>Importation de tables dans SpatiaLite<\/h2>\n<p>Pour importer un fichier de table dans une base de donn\u00e9es de SpatiaLite, proc\u00e9dez comme suit :<br \/>\n1. Ouvrez le gestionnaire de base de donn\u00e9es en cliquant sur <em><strong>Gestionnaire de base de donn\u00e9es<\/strong><\/em> sous le menu\u00a0<em><strong>Base de donn\u00e9e<\/strong><\/em>s. D\u00e9veloppez <em><strong>SpatiaLite<\/strong> <\/em>et s\u00e9lectionnez la base de donn\u00e9es o\u00f9 vous voulez importer vos donn\u00e9es tabulaires dans l&rsquo;arborescence.(ici <em>BaseTest<\/em>)<br \/>\n2. Cliquez sur le menu <em><strong>Table\u00a0| Importer un fichier ou une couche<\/strong><\/em> pour ouvrir la bo\u00eete de dialogue <em><strong>Importer une couche vecteur<\/strong><\/em>.<br \/>\n3. cliquez sur le bouton [&#8230;] affich\u00e9 \u00e0 droite de la liste d\u00e9roulante <em><strong>Saisie\u00a0<\/strong><\/em>et s\u00e9lectionnez le fichier Excel (ici hotels.xls) \u00e0 charger dans la base.<br \/>\n4. cliquez sur le bouton <em><strong>options de mise \u00e0 jour<\/strong><\/em> pour charger le reste de la bo\u00eete de dialogue.<br \/>\nLe Nom de la table de sortie sera rempli avec le nom\u00a0du fichier d&rsquo;entr\u00e9e. Notez que toutes les options li\u00e9es\u00a0aux types\u00a0de donn\u00e9es spatiales ne sont pas modifiables et sont gris\u00e9es (tel qu&rsquo;illustr\u00e9 dans la capture d&rsquo;\u00e9cran suivante).<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q30.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1514\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/importer-des-tables-dans-une-base-de-donnees-spatialite-avec-qgis-2-8\/q30\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q30.png?fit=464%2C467&amp;ssl=1\" data-orig-size=\"464,467\" 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=\"q30\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q30.png?fit=464%2C467&amp;ssl=1\" class=\"aligncenter size-full wp-image-1514\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q30.png?resize=464%2C467\" alt=\"param\u00e9trage du chargement d'une table excel dans spatialite\" width=\"464\" height=\"467\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q30.png?w=464&amp;ssl=1 464w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q30.png?resize=150%2C150&amp;ssl=1 150w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q30.png?resize=298%2C300&amp;ssl=1 298w\" sizes=\"auto, (max-width: 464px) 100vw, 464px\" \/><\/a><\/p>\n<p>C&rsquo;est parce que SpatiaLite traite l&rsquo;entr\u00e9e sous forme de tableau non spatial, m\u00eame s&rsquo;il poss\u00e8de des coordonn\u00e9es enregistr\u00e9es dans la table. Nous allons ajouter la composante spatiale \u00e0 la table dans une \u00e9tape ult\u00e9rieure.<br \/>\n5. cliquez sur le bouton <em><strong>OK<\/strong><\/em> pour importer le fichier.<br \/>\n6. apr\u00e8s quelques instants, vous serez avis\u00e9 que l&rsquo;importation est termin\u00e9e.<\/p>\n<p>Pour afficher le nouveau tableau, vous devrez actualiser l&rsquo;arborescence en s\u00e9lectionnant <em><strong>BaseTest.sqlite<\/strong><\/em> dans l&rsquo;arborescence puis cliquez sur <em><strong>Actualiser<\/strong> <\/em>sous\u00a0<em><strong>Base de donn\u00e9es<\/strong><\/em> ou appuyez sur la touche <em><strong>F5<\/strong><\/em> de votre clavier. La table des H\u00f4tels \u00a0devrait maintenant appara\u00eetre avec\u00a0l&rsquo;ic\u00f4ne de table \u00e0 c\u00f4t\u00e9 d&rsquo;elle.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q31.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1515\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/importer-des-tables-dans-une-base-de-donnees-spatialite-avec-qgis-2-8\/q31\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q31.png?fit=715%2C582&amp;ssl=1\" data-orig-size=\"715,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=\"q31\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q31.png?fit=630%2C513&amp;ssl=1\" class=\"aligncenter size-large wp-image-1515\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q31-630x513.png?resize=630%2C513\" alt=\"r\u00e9sultat du chargement de la table excel dans spatialite\" width=\"630\" height=\"513\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q31.png?resize=630%2C513&amp;ssl=1 630w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q31.png?resize=300%2C244&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q31.png?w=715&amp;ssl=1 715w\" sizes=\"auto, (max-width: 630px) 100vw, 630px\" \/><\/a><\/p>\n<p>Remarquez les champs <em>Google_Longitude<\/em> et <em>Google_Latitude<\/em>. Ces champs contiennent les coordonn\u00e9es des h\u00f4tels (EPSG 4326). Cliquez sur l&rsquo;onglet \u00a0<em><strong>Table<\/strong> <\/em>sur le panneau d&rsquo;informations pour afficher les entr\u00e9es de la table. Notez que l&rsquo;onglet <em><strong>Aper\u00e7u<\/strong> <\/em>n&rsquo;est pas disponible, car la table s\u00e9lectionn\u00e9e n&rsquo;a pas de g\u00e9om\u00e9trie.<\/p>\n<div class='stb-container stb-style-warning stb-caption-box'><div class='stb-caption'><div class='stb-logo'><img class='stb-logo__image' src='data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN\/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz\/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH\/w\/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA\/g88wAAKCRFRHgg\/P9eM4Ors7ONo62Dl8t6r8G\/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt\/qIl7gRoXgugdfeLZrIPQLUAoOnaV\/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl\/AV\/1s+X48\/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H\/LcL\/\/wd0yLESWK5WCoU41EScY5EmozzMqUiiUK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Pu+Tk5HhKUF9WB8nPSG1D4RPG31eF86eHMG+aAGYK6pN38Ta\/FVyDVVuaWDr+vioM3yOSmqp3u6rbj4CKVoE0NDT4lmV5KSnRkBhhcBWk0Kwr0ophpOJv\/Dt+xargnu5akBIJHL0tIJ4C9CCxiuDYtrTatHbs2LFn7549+0Liow8YgZbdA2mo\/+alqDU2bqQheijI5qHoqcq3tWs4Qd7Rry9CE6GhocGvrv5sd6tBPM9rfOONFStTwwbEryB0\/ysY\/YYHdZKVhGRbxALLauOcJFgWWkYXQr9ahDagkGhIo6Ji46adO3dUtimPhMPh+GuvLVt9e1HRkGMNieCSd\/ALpO4g+N6F\/xdUSgStaz7EOhE1Nb766lB90e2331FZWVnW4p7P1tdKT0+\/8okn5i4aN25cSWpaGo4SXF+h1IV\/ycA0dMK6hmlobN68ZcekSRN\/8+m2bW+dqa\/VmgZd2jXXXHNzYeHNhTcMvWFIz55X58ViseiFemNCC2KKOnDgwNFPtm6tWrNmzftvv\/3W67Zt7zpbg66tncYO8Xi8SywWizXNkwvE4h86dOioZVmHALs1nUbt8rsol0Eug1wG+Z8a\/x0A3thDl\/BwJ7kAAAAASUVORK5CYII=' alt='img'\/><\/div><div class='stb-caption-content'>Mise \u00e0 jour 1\/6\/2017<\/div><div class='stb-tool'><\/div><\/div><div class='stb-content'><\/p>\n<p>Attention au type de donn\u00e9es affect\u00e9 \u00e0 vos champs de coordonn\u00e9es (ici Google_Longitude et Google_Latitude). Selon un algorithme qui m&rsquo;a toujours \u00e9chapp\u00e9, le passage du format de cellule Excel \u00e0 type de donn\u00e9e en base de donn\u00e9es a des r\u00e9sultats bizarres. Il se peut que vous vous retrouviez avec des champs de coordonn\u00e9es de type texte. En dans ce cas, il n&rsquo;y aura pas d&rsquo;erreurs affich\u00e9es par la suite, sauf que vos g\u00e9om\u00e9tries seront nulles et vous n&rsquo;aurez aucun point \u00e0 l&rsquo;affichage. C&rsquo;est donc \u00e0 ce stade qu&rsquo;il faut corriger le tir, apr\u00e8s ce sera trop tard et il faudra tout recommencer \u00e0 z\u00e9ro.<\/p>\n<p>Si vos champs X et Y son en texte, ouvrez\u00a0 un fen\u00eatre SQL dans le gestionnaire de base de donn\u00e9es (deuxi\u00e8me bouton des quatre) puis rentrez une par une les requ\u00eates SQL suivantes pour cr\u00e9er un nouveau champ num\u00e9rique et le renseigner avec le contenu du champ texte:<\/p>\n<p>ALTER TABLE <em>votre_table<\/em> ADD Xm double precision<br \/>\nUPDATE <em>votre_table<\/em> SET Xm=X<br \/>\nALTER TABLE<em> votre_table<\/em> ADD Ym double precision<br \/>\nUPDATE <em>votre_table<\/em> SET Ym=Y<\/p>\n<p>o\u00f9 X et Y sont vos champs texte.<\/p>\n<p><\/div><\/div>\n<p>&nbsp;<\/p>\n<p>\u00c0 ce stade, l&rsquo;importation de la table est termin\u00e9e. Toutefois, comme les coordonn\u00e9es sont pr\u00e9sentes dans la table, on peut cr\u00e9er une colonne geometry de type point et l&rsquo;ajouter \u00e0 la table. Ceci transformera le tableau en\u00a0une couche de points.<\/p>\n<h2>Ajout d&rsquo;une colonne <em>geometry<\/em><\/h2>\n<p>1. avec la table <em>hotels<\/em> s\u00e9lectionn\u00e9e dans l&rsquo;arborescence, cliquez sur\u00a0\u00a0<em><strong>Table | \u00c9diter\u00a0la Table<\/strong><\/em> pour ouvrir la fen\u00eatre <em><strong>Propri\u00e9t\u00e9s de la table<\/strong><\/em>.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q32.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1516\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/importer-des-tables-dans-une-base-de-donnees-spatialite-avec-qgis-2-8\/q32\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q32.png?fit=572%2C470&amp;ssl=1\" data-orig-size=\"572,470\" 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=\"q32\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q32.png?fit=572%2C470&amp;ssl=1\" class=\"aligncenter size-full wp-image-1516\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q32.png?resize=572%2C470\" alt=\"fen\u00eatre propri\u00e9t\u00e9s de la table\" width=\"572\" height=\"470\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q32.png?w=572&amp;ssl=1 572w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q32.png?resize=300%2C247&amp;ssl=1 300w\" sizes=\"auto, (max-width: 572px) 100vw, 572px\" \/><\/a><br \/>\n2. cliquez sur le bouton \u00a0<em><strong>ajouter une colonne g\u00e9om\u00e9trique<\/strong><\/em>. Dans la nouvelle fen\u00eatre, d\u00e9finissez les options suivantes pour cr\u00e9er le champ de la g\u00e9om\u00e9trie :<\/p>\n<ul>\n<li>Nom :le nom du champ qui contiendra les informations de g\u00e9om\u00e9trie<\/li>\n<li>Type : le type de g\u00e9om\u00e9trie, ici POINT<\/li>\n<li>Dimensions : le nombre de dimensions (valeurs) pour la g\u00e9om\u00e9trie (2 pour XY, 3 pour XYZ)<\/li>\n<li><a href=\"https:\/\/www.sigterritoires.fr\/index.php\/introduction-aux-systemes-de-reference\/\">SRID<\/a> : le syst\u00e8me de coordonn\u00e9es du champ g\u00e9om\u00e9trie<\/li>\n<\/ul>\n<p><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q33.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1517\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/importer-des-tables-dans-une-base-de-donnees-spatialite-avec-qgis-2-8\/q33\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q33.png?fit=306%2C214&amp;ssl=1\" data-orig-size=\"306,214\" 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=\"q33\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q33.png?fit=306%2C214&amp;ssl=1\" class=\"aligncenter size-full wp-image-1517\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q33.png?resize=306%2C214\" alt=\"param\u00e9trage de l'ajout d'un champ g\u00e9ometrie dans spatialite\" width=\"306\" height=\"214\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q33.png?w=306&amp;ssl=1 306w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q33.png?resize=300%2C210&amp;ssl=1 300w\" sizes=\"auto, (max-width: 306px) 100vw, 306px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q38.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1522\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/importer-des-tables-dans-une-base-de-donnees-spatialite-avec-qgis-2-8\/q38\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q38.png?fit=710%2C680&amp;ssl=1\" data-orig-size=\"710,680\" 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=\"q38\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q38.png?fit=630%2C603&amp;ssl=1\" class=\"aligncenter size-large wp-image-1522\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q38-630x603.png?resize=630%2C603\" alt=\"aper\u00e7u de la couche de points cr\u00e9\u00e9e\" width=\"630\" height=\"603\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q38.png?resize=630%2C603&amp;ssl=1 630w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q38.png?resize=300%2C287&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q38.png?w=710&amp;ssl=1 710w\" sizes=\"auto, (max-width: 630px) 100vw, 630px\" \/><\/a>3. Fermez les propri\u00e9t\u00e9s de la table. Pour afficher la table nouvellement \u00e9dit\u00e9e, vous devrez actualiser l&rsquo;arborescence en s\u00e9lectionnant <em>BaseTest.sqlite<\/em> dans l&rsquo;arborescence et en cliquant sur <em><strong>Actualiser<\/strong> <\/em>sous <em><strong>Base de donn\u00e9es<\/strong><\/em> ou appuyer sur la touche <strong>F5<\/strong> de votre clavier.<br \/>\nLa table <em><strong>hotels<\/strong> <\/em>devrait maintenant appara\u00eetre avec l&rsquo;ic\u00f4ne de point \u00e0 c\u00f4t\u00e9 de lui.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q34.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1518\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/importer-des-tables-dans-une-base-de-donnees-spatialite-avec-qgis-2-8\/q34\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q34.png?fit=720%2C689&amp;ssl=1\" data-orig-size=\"720,689\" 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=\"q34\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q34.png?fit=630%2C603&amp;ssl=1\" class=\"aligncenter size-large wp-image-1518\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q34-630x603.png?resize=630%2C603\" alt=\"table avec la g\u00e9ometrie\" width=\"630\" height=\"603\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q34.png?resize=630%2C603&amp;ssl=1 630w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q34.png?resize=300%2C287&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q34.png?w=720&amp;ssl=1 720w\" sizes=\"auto, (max-width: 630px) 100vw, 630px\" \/><\/a><\/p>\n<p>Maintenant que la table <em>hotels<\/em> poss\u00e8de un champ de g\u00e9om\u00e9trie, nous devons le remplir avec les coordonn\u00e9es disponibles de chaque enregistrement. Nous ferons ceci en avec une requ\u00eate de mise \u00e0 jour SQL et en utilisant la fonction SpatiaLite <em>MakePoint<\/em> :<\/p>\n<p>1. Ouvrez la <em>fen\u00eatre SQL<\/em> en cliquant sur le menu <em><strong>Base de donn\u00e9es -&gt; Fen\u00eatre SQL<\/strong><\/em>.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q35.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1519\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/importer-des-tables-dans-une-base-de-donnees-spatialite-avec-qgis-2-8\/q35\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q35.png?fit=300%2C221&amp;ssl=1\" data-orig-size=\"300,221\" 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=\"q35\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q35.png?fit=300%2C221&amp;ssl=1\" class=\"aligncenter size-full wp-image-1519\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q35.png?resize=300%2C221\" alt=\"ouverture de la fen\u00eatre sql du gestionnaire de base de donn\u00e9es\" width=\"300\" height=\"221\" \/><\/a><br \/>\n2. Entrez la requ\u00eate suivante dans la zone de texte de requ\u00eate SQL :<\/p>\n<p><strong>UPDATE hotels<\/strong><br \/>\n<strong> SET geom = MakePoint(Google_Longitude,Google_Latitude,4326) ;<\/strong><\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q36.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1520\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/importer-des-tables-dans-une-base-de-donnees-spatialite-avec-qgis-2-8\/q36\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q36.png?fit=758%2C562&amp;ssl=1\" data-orig-size=\"758,562\" 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=\"q36\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q36.png?fit=630%2C467&amp;ssl=1\" class=\"aligncenter size-large wp-image-1520\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q36-630x467.png?resize=630%2C467\" alt=\"requ\u00eate sql pour ajouter les coordonn\u00e9es \u00e0 la g\u00e9om\u00e9trie d'une table spatialite\" width=\"630\" height=\"467\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q36.png?resize=630%2C467&amp;ssl=1 630w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q36.png?resize=300%2C222&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q36.png?w=758&amp;ssl=1 758w\" sizes=\"auto, (max-width: 630px) 100vw, 630px\" \/><\/a><\/p>\n<p>MakePoint est une fonction de SpatiaLite qui cr\u00e9e un nouvel objet point.<\/p>\n<p>3. cliquez sur le bouton Execute (F5) pour ex\u00e9cuter la requ\u00eate. La requ\u00eate ne retournera aucun r\u00e9sultat mais indiquera le nombre de lignes modifi\u00e9es.<br \/>\n4. dans la fen\u00eatre SQL, cliquez sur le bouton <em><strong>Fermer<\/strong> <\/em>pour fermer la fen\u00eatre.<\/p>\n<p>5. pour afficher les modifications apport\u00e9es \u00e0 la table <em>hotels<\/em>, vous devrez actualiser l&rsquo;arborescence.<br \/>\n<a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q37.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1521\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/importer-des-tables-dans-une-base-de-donnees-spatialite-avec-qgis-2-8\/q37\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q37.png?fit=720%2C689&amp;ssl=1\" data-orig-size=\"720,689\" 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=\"q37\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q37.png?fit=630%2C603&amp;ssl=1\" class=\"aligncenter size-large wp-image-1521\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q37-630x603.png?resize=630%2C603\" alt=\"avertissement d'absence d'index spatial\" width=\"630\" height=\"603\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q37.png?resize=630%2C603&amp;ssl=1 630w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q37.png?resize=300%2C287&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q37.png?w=720&amp;ssl=1 720w\" sizes=\"auto, (max-width: 630px) 100vw, 630px\" \/><\/a><br \/>\n6. Sous la section <em>SpatiaLite<\/em> de l&rsquo;onglet <em><strong>information<\/strong><\/em>, notez qu&rsquo;un avertissement s&rsquo;affiche indiquant qu&rsquo;aucun index spatial n&rsquo;a \u00e9t\u00e9 d\u00e9fini. Pour am\u00e9liorer la vitesse d&rsquo;acc\u00e8s, il est pr\u00e9f\u00e9rable qu&rsquo;un index spatial soit cr\u00e9\u00e9. Cliquez sur cr\u00e9er.<\/p>\n<p>7. Pour afficher un aper\u00e7u de la g\u00e9om\u00e9trie, cliquez sur l&rsquo;onglet <em><strong>Aper\u00e7u<\/strong><\/em>.<br \/>\n<a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q38.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1522\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/importer-des-tables-dans-une-base-de-donnees-spatialite-avec-qgis-2-8\/q38\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q38.png?fit=710%2C680&amp;ssl=1\" data-orig-size=\"710,680\" 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=\"q38\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q38.png?fit=630%2C603&amp;ssl=1\" class=\"aligncenter size-large wp-image-1522\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q38-630x603.png?resize=630%2C603\" alt=\"aper\u00e7u de la couche de points cr\u00e9\u00e9e\" width=\"630\" height=\"603\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q38.png?resize=630%2C603&amp;ssl=1 630w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q38.png?resize=300%2C287&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q38.png?w=710&amp;ssl=1 710w\" sizes=\"auto, (max-width: 630px) 100vw, 630px\" \/><\/a><\/p>\n<h2>Export de tables \u00e0 partir de SpatiaLite sous forme de shapefile<\/h2>\n<p>Pour exporter une table sous forme de <a href=\"https:\/\/www.sigterritoires.fr\/index.php\/frshapefile-vs-geopackage-quel-format-choisir\/\">shapefile<\/a>, effectuez les op\u00e9rations suivantes :<br \/>\n1. Ouvrez le gestionnaire de base de donn\u00e9es en cliquant sur <em><strong>Gestionnaire de base de donn\u00e9es<\/strong><\/em> sous <em><strong>Base de donn\u00e9e<\/strong><\/em>s. D\u00e9veloppez <em><strong>SpatiaLite<\/strong><\/em>, puis s\u00e9lectionnez la base de donn\u00e9es dont vous souhaitez exporter une table dans le panneau de l&rsquo;arborescence.<br \/>\n2. dans l&rsquo;arborescence, s\u00e9lectionnez la table que vous souhaitez exporter.<br \/>\n3.Cliquez sur <em><strong>Table | Exporter vers fichier<\/strong><\/em> pour ouvrir la bo\u00eete de dialogue <em><strong>Exporter un fichier vecteur.<\/strong><\/em><br \/>\n4. cliquez sur le bouton <em><strong>[&#8230;]<\/strong><\/em> \u00e0 droite de la zone <em><strong>fichier en sortie<\/strong><\/em> et donnez un nom du fichier de sortie. Notez que vous ne pouvez exporter qu&rsquo;au format shapefile en utilisant cet outil.<br \/>\n5. D\u00e9finissez les options de codage, de <a href=\"https:\/\/www.sigterritoires.fr\/index.php\/projection-qgis-crs\/\">SRC<\/a> Source et de SRC cible, ou bien vous pouvez les laisser d\u00e9s\u00e9lectionn\u00e9es afin d&rsquo;utiliser les valeurs par d\u00e9faut. S\u00e9lectionnez <em><strong>Ecraser l&rsquo;existant<\/strong><\/em> si vous souhaitez remplacer un fichier existant.<br \/>\nLa capture d&rsquo;\u00e9cran suivante montre l&rsquo;exportation vers un shapefile de la table hotels.<br \/>\n<a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q39.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1523\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/importer-des-tables-dans-une-base-de-donnees-spatialite-avec-qgis-2-8\/q39\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q39.png?fit=528%2C236&amp;ssl=1\" data-orig-size=\"528,236\" 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=\"q39\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q39.png?fit=528%2C236&amp;ssl=1\" class=\"aligncenter size-full wp-image-1523\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q39.png?resize=528%2C236\" alt=\"export d'une table spatialite vers un fichier shape\" width=\"528\" height=\"236\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q39.png?w=528&amp;ssl=1 528w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2015\/05\/q39.png?resize=300%2C134&amp;ssl=1 300w\" sizes=\"auto, (max-width: 528px) 100vw, 528px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Nous avons vu dans l&rsquo;article pr\u00e9c\u00e9dent (Cr\u00e9er une base de donn\u00e9es SpatiaLite avec QGis 2.8 ) comment importer un fichier shape dans une base SpatiaLite. La m\u00e9thode est la m\u00eame pour les autres types de donn\u00e9es&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"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":[62,172],"tags":[151,202,201,58,199,134],"class_list":["post-1508","post","type-post","status-publish","format-standard","hentry","category-qgis-2","category-tutoriel","tag-excel","tag-export","tag-import","tag-qgis","tag-spatialite","tag-table"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p6XU0A-ok","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/posts\/1508","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=1508"}],"version-history":[{"count":0,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/posts\/1508\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/media?parent=1508"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/categories?post=1508"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/tags?post=1508"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}