﻿{"id":4769,"date":"2018-01-23T06:15:01","date_gmt":"2018-01-23T05:15:01","guid":{"rendered":"http:\/\/www.sigterritoires.fr\/?p=4769"},"modified":"2018-02-27T19:56:02","modified_gmt":"2018-02-27T18:56:02","slug":"start-with-postgresql-postgis-introduction-to-pgadmin-4","status":"publish","type":"post","link":"https:\/\/www.sigterritoires.fr\/index.php\/en\/start-with-postgresql-postgis-introduction-to-pgadmin-4\/","title":{"rendered":"Start with PostgreSQL \/ Postgis -Introduction to pgAdmin 4"},"content":{"rendered":"<p>Following up a previous article (<a href=\"http:\/\/www.sigterritoires.fr\/index.php\/debuter-avec-postgrespostgis\">D\u00e9buter avec Postgres\/Postgis<\/a> ), we will address an introduction to Postgres\/postgis database management. We will load a <a href=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/shapefile-vs-geopackage\/\">shapefile<\/a>, connect and load the <a href=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/starting-with-postgres-postgis\/\">Postgis<\/a> layer from QGis.<\/p>\n<p>The most \u00a0suitable method to manage PostgreSQL databases is by using the pgAdmin4 GUI.<\/p>\n<p>This tool is setup automatically during PostgreSQL installation. You can launch it from the programme bar:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i1.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"4749\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/debuter-avec-postgresql-postgis-introduction-a-pgadmin4\/_i1\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i1.png?fit=629%2C587&amp;ssl=1\" data-orig-size=\"629,587\" 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=\"_i1\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i1.png?fit=629%2C587&amp;ssl=1\" class=\"aligncenter size-full wp-image-4749\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i1.png?resize=629%2C587\" alt=\"\" width=\"629\" height=\"587\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i1.png?w=629&amp;ssl=1 629w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i1.png?resize=300%2C280&amp;ssl=1 300w\" sizes=\"auto, (max-width: 629px) 100vw, 629px\" \/><\/a><\/p>\n<p><!--more--><\/p>\n<p>No special management procedure is needed when loading a shapefile as a Postgis layer into your new database. But it&rsquo;s easier to understand the operation by following the changes in the database.<\/p>\n<p>Nevertheless, you can rest assured that, for the time being, you will not have to create anything else. When installing the Postgis, we have, already , requested the creation of a sample database. And, it is this database that we will be using for the purpose of this article.<\/p>\n<p>pgAdmin4 allows you to manage a PostgreSQL \/ Postgis database without worrying about the corresponding SQL syntax.<\/p>\n<p>When you launch the application, the first screen allows you to connect to the desired server and database.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i2.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"4751\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/debuter-avec-postgresql-postgis-introduction-a-pgadmin4\/_i2\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i2.png?fit=897%2C410&amp;ssl=1\" data-orig-size=\"897,410\" 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=\"_i2\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i2.png?fit=640%2C293&amp;ssl=1\" class=\"aligncenter size-full wp-image-4751\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i2.png?resize=640%2C293\" alt=\"\" width=\"640\" height=\"293\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i2.png?w=897&amp;ssl=1 897w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i2.png?resize=300%2C137&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i2.png?resize=768%2C351&amp;ssl=1 768w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>Right-clicking on an element opens the contextual menu that proposes the different available operations for this element.<\/p>\n<p>During the installation procedure, we have created, automatically, two databases :<\/p>\n<ul>\n<li>a classic PostgreSQL database called <em> <strong> postgres <\/strong> <\/em><\/li>\n<li>a PostgreSQL \/ Postgis database called <em> <strong> postgis_24_sample <\/strong> <\/em><\/li>\n<\/ul>\n<p>And, it is the latter, that we will be using to load a shapefile. But before, take a look and observe which are the differences between these two databases.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i3.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"4752\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/debuter-avec-postgresql-postgis-introduction-a-pgadmin4\/_i3\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i3.png?fit=1433%2C845&amp;ssl=1\" data-orig-size=\"1433,845\" 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=\"_i3\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i3.png?fit=640%2C378&amp;ssl=1\" class=\"aligncenter size-full wp-image-4752\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i3.png?resize=640%2C377\" alt=\"\" width=\"640\" height=\"377\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i3.png?w=1433&amp;ssl=1 1433w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i3.png?resize=300%2C177&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i3.png?resize=768%2C453&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i3.png?resize=1024%2C604&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i3.png?resize=1200%2C708&amp;ssl=1 1200w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i3.png?w=1280&amp;ssl=1 1280w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>If you have a look at each database extensions, you will discover that the Postgis database has a series of specific extensions that can be used to manage spatial information. It is the presence of these extensions that makes a PostgreSQL database a Postgres \/ Postgis database.<\/p>\n<p>When you create a database, you must add these extensions to make it applicable with Postgis.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i4.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"4753\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/debuter-avec-postgresql-postgis-introduction-a-pgadmin4\/_i4\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i4.png?fit=637%2C1021&amp;ssl=1\" data-orig-size=\"637,1021\" 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=\"_i4\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i4.png?fit=637%2C1021&amp;ssl=1\" class=\"aligncenter size-full wp-image-4753\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i4.png?resize=637%2C1021\" alt=\"\" width=\"637\" height=\"1021\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i4.png?w=637&amp;ssl=1 637w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i4.png?resize=187%2C300&amp;ssl=1 187w\" sizes=\"auto, (max-width: 637px) 100vw, 637px\" \/><\/a>Right-clicking <em> <strong> extensions <\/strong> <\/em> and <em> <strong> Create &#8211; &gt; Extension <\/strong> <\/em>, you will have the list of available extensions.<\/p>\n<h2>Add a shapefile to a Postgis database.<\/h2>\n<p>First, what does it mean to add a shapefile to a Postgis database? A \u00ab\u00a0file\u00a0\u00bb shapefile is actually a group of files with the same name and different extensions. For example:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2016\/02\/pg26.png\" rel=\"attachment wp-att-3018\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"3018\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/debuter-avec-postgrsqlpostgis-introduction-a-pgadmin3\/pg26\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2016\/02\/pg26.png?fit=598%2C174&amp;ssl=1\" data-orig-size=\"598,174\" 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=\"pg26\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2016\/02\/pg26.png?fit=598%2C174&amp;ssl=1\" class=\"aligncenter wp-image-3018 size-full\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2016\/02\/pg26.png?resize=598%2C174\" alt=\"exemple de fichier shapefile\" width=\"598\" height=\"174\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2016\/02\/pg26.png?w=598&amp;ssl=1 598w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2016\/02\/pg26.png?resize=300%2C87&amp;ssl=1 300w\" sizes=\"auto, (max-width: 598px) 100vw, 598px\" \/><\/a><br \/>\nAll of these files constitute the \u00ab\u00a0shapefile\u00a0\u00bb <em> ouessantCLC_L93 <\/em>. One file contains the geometries, another the attribute data, and so on.<\/p>\n<p>The information included in the files will be loaded as a<em> Table <\/em>into the database. Only one table will include all the information scattered in the shapefile files.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i6.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"4756\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/debuter-avec-postgresql-postgis-introduction-a-pgadmin4\/_i6\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i6.png?fit=687%2C851&amp;ssl=1\" data-orig-size=\"687,851\" 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=\"_i6\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i6.png?fit=640%2C793&amp;ssl=1\" class=\"aligncenter size-full wp-image-4756\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i6.png?resize=640%2C793\" alt=\"\" width=\"640\" height=\"793\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i6.png?w=687&amp;ssl=1 687w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i6.png?resize=242%2C300&amp;ssl=1 242w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a>In the previous image you can examine at which level the data will be stored, and you will notice that the \u00ab\u00a0Tables\u00a0\u00bb level is a sub-level of a \u00ab\u00a0Schema\u00a0\u00bb which is a sub-level of \u00ab\u00a0Database\u00a0\u00bb. When loading the shapefile, you will have to specify which database, and, possibly, which schema to use.<\/p>\n<p>In our example database there is a \u00ab\u00a0Public\u00a0\u00bb schema which, unlike the other available schemas, includes all the functions (1454). We will explain this concept later. Let&rsquo;s just remember that we add functions to a schema as and when needed. In our example, all functions are already loaded, it avoids these additional operations.<\/p>\n<p>We can load the shapefile with the \u00ab\u00a0Postgis 2.0 Shapefile and DBF Loader\u00a0\u00bb programme.<\/p>\n<p>You can launch it as a stand-alone application, from the Windows programme bar:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i7.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"4757\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/debuter-avec-postgresql-postgis-introduction-a-pgadmin4\/_i7\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i7.png?fit=394%2C611&amp;ssl=1\" data-orig-size=\"394,611\" 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=\"_i7\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i7.png?fit=394%2C611&amp;ssl=1\" class=\"aligncenter size-full wp-image-4757\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i7.png?resize=394%2C611\" alt=\"\" width=\"394\" height=\"611\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i7.png?w=394&amp;ssl=1 394w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i7.png?resize=193%2C300&amp;ssl=1 193w\" sizes=\"auto, (max-width: 394px) 100vw, 394px\" \/><\/a><\/p>\n<p>Unlike pgAdmin III, you will not find a button in pgAdmin 4 to launch this application.<\/p>\n<p>The application window opens:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2016\/02\/pg29.png\" rel=\"attachment wp-att-3021\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"3021\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/debuter-avec-postgrsqlpostgis-introduction-a-pgadmin3\/pg29\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2016\/02\/pg29.png?fit=412%2C634&amp;ssl=1\" data-orig-size=\"412,634\" 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=\"pg29\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2016\/02\/pg29.png?fit=412%2C634&amp;ssl=1\" class=\"aligncenter wp-image-3021 size-full\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2016\/02\/pg29.png?resize=412%2C634\" alt=\"shapefile loadfer dans postgis\" width=\"412\" height=\"634\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2016\/02\/pg29.png?w=412&amp;ssl=1 412w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2016\/02\/pg29.png?resize=195%2C300&amp;ssl=1 195w\" sizes=\"auto, (max-width: 412px) 100vw, 412px\" \/><\/a><br \/>\nYou must first establish the connection with your database<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i8.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"4758\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/debuter-avec-postgresql-postgis-introduction-a-pgadmin4\/_i8\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i8.png?fit=727%2C615&amp;ssl=1\" data-orig-size=\"727,615\" 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=\"_i8\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i8.png?fit=640%2C541&amp;ssl=1\" class=\"aligncenter size-full wp-image-4758\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i8.png?resize=640%2C541\" alt=\"\" width=\"640\" height=\"541\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i8.png?w=727&amp;ssl=1 727w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i8.png?resize=300%2C254&amp;ssl=1 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>Click \u00ab\u00a0<em> <strong> Add File <\/strong> <\/em>\u00a0\u00bb and navigate to select the shapefile to load. Click <em> <strong> Open <\/strong> <\/em>, the file information \u00a0to be loaded will appear in the Import List<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2016\/02\/pg30.png\" rel=\"attachment wp-att-3022\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"3022\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/debuter-avec-postgrsqlpostgis-introduction-a-pgadmin3\/pg30\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2016\/02\/pg30.png?fit=598%2C632&amp;ssl=1\" data-orig-size=\"598,632\" 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=\"pg30\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2016\/02\/pg30.png?fit=598%2C632&amp;ssl=1\" class=\"aligncenter wp-image-3022 size-full\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2016\/02\/pg30.png?resize=598%2C632\" alt=\"pg30\" width=\"598\" height=\"632\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2016\/02\/pg30.png?w=598&amp;ssl=1 598w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2016\/02\/pg30.png?resize=284%2C300&amp;ssl=1 284w\" sizes=\"auto, (max-width: 598px) 100vw, 598px\" \/><\/a><br \/>\nClick the <em> <strong> Import <\/strong> <\/em> &#8230; button<br \/>\n<a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i9.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"4759\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/debuter-avec-postgresql-postgis-introduction-a-pgadmin4\/_i9\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i9.png?fit=602%2C632&amp;ssl=1\" data-orig-size=\"602,632\" 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=\"_i9\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i9.png?fit=602%2C632&amp;ssl=1\" class=\"aligncenter size-full wp-image-4759\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i9.png?resize=602%2C632\" alt=\"\" width=\"602\" height=\"632\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i9.png?w=602&amp;ssl=1 602w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i9.png?resize=286%2C300&amp;ssl=1 286w\" sizes=\"auto, (max-width: 602px) 100vw, 602px\" \/><\/a><br \/>\nHere! It is done. And now you can observe in your pgAdmin 4 (after refreshing) the imported table with your data.<\/p>\n<h2><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i10.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"4760\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/debuter-avec-postgresql-postgis-introduction-a-pgadmin4\/_i10\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i10.png?fit=393%2C477&amp;ssl=1\" data-orig-size=\"393,477\" 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=\"_i10\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i10.png?fit=393%2C477&amp;ssl=1\" class=\"aligncenter size-full wp-image-4760\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i10.png?resize=393%2C477\" alt=\"\" width=\"393\" height=\"477\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i10.png?w=393&amp;ssl=1 393w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i10.png?resize=247%2C300&amp;ssl=1 247w\" sizes=\"auto, (max-width: 393px) 100vw, 393px\" \/><\/a>Fill in the coordinate system<\/h2>\n<p>Perhaps you have noticed in the Import List window that the SRID (coordinate system) is at zero. This indicates that the loader was unable to correctly interpret the shapefile&rsquo;s .prj file. In our case it should be 2154 (Lambert 93 EPSG code \/ RGF93).<br \/>\nWe will update the information in the geometry column of the table we have just created.<\/p>\n<p>Open the SQL window of pgAdmin 4:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i11.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"4762\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/debuter-avec-postgresql-postgis-introduction-a-pgadmin4\/_i11\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i11.png?fit=580%2C381&amp;ssl=1\" data-orig-size=\"580,381\" 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=\"_i11\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i11.png?fit=580%2C381&amp;ssl=1\" class=\"aligncenter size-full wp-image-4762\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i11.png?resize=580%2C381\" alt=\"\" width=\"580\" height=\"381\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i11.png?w=580&amp;ssl=1 580w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i11.png?resize=300%2C197&amp;ssl=1 300w\" sizes=\"auto, (max-width: 580px) 100vw, 580px\" \/><\/a><\/p>\n<p>In the Edit SQL window type the following query:<\/p>\n<p><em> <strong> SELECT UpdateGeometrySRID (&lsquo;ouessantclc_l93&rsquo;, &lsquo;geom&rsquo;, 2154); <\/strong> <\/em><\/p>\n<p>You only have to change the name of the table (ouessantclc_l93) ) using the name of your table, and the code of the SRID (2154) using the EPSG code of your coordinate system.<\/p>\n<p>Run the query by clicking the<em> Execute button<\/em> (indicated by the blue arrow on the image).<br \/>\nYou will receive a message stating that the request has been executed successfully:<br \/>\n<a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i12.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"4763\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/debuter-avec-postgresql-postgis-introduction-a-pgadmin4\/_i12\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i12.png?fit=852%2C455&amp;ssl=1\" data-orig-size=\"852,455\" 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=\"_i12\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i12.png?fit=640%2C342&amp;ssl=1\" class=\"aligncenter size-full wp-image-4763\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i12.png?resize=640%2C342\" alt=\"\" width=\"640\" height=\"342\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i12.png?w=852&amp;ssl=1 852w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i12.png?resize=300%2C160&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i12.png?resize=768%2C410&amp;ssl=1 768w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<h2>Load the Postgis layer into QGis<\/h2>\n<p>To verify that everything went smoothly, open QGis and select the Postgis layer loading button<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2016\/02\/pg33.png\" rel=\"attachment wp-att-3026\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"3026\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/debuter-avec-postgrsqlpostgis-introduction-a-pgadmin3\/pg33\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2016\/02\/pg33.png?fit=663%2C524&amp;ssl=1\" data-orig-size=\"663,524\" 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=\"pg33\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2016\/02\/pg33.png?fit=640%2C506&amp;ssl=1\" class=\"aligncenter wp-image-3026 size-full\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2016\/02\/pg33.png?resize=640%2C506\" alt=\"pg33\" width=\"640\" height=\"506\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2016\/02\/pg33.png?w=663&amp;ssl=1 663w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2016\/02\/pg33.png?resize=300%2C237&amp;ssl=1 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><br \/>\nThe login window opens. The first time you connect to a database you must configure your connection.<\/p>\n<p>Click \u00ab\u00a0<em> <strong> New <\/strong> <\/em>\u00a0\u00bb and fill in the login information<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i13.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"4764\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/debuter-avec-postgresql-postgis-introduction-a-pgadmin4\/_i13\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i13.png?fit=773%2C715&amp;ssl=1\" data-orig-size=\"773,715\" 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=\"_i13\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i13.png?fit=640%2C592&amp;ssl=1\" class=\"aligncenter size-full wp-image-4764\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i13.png?resize=640%2C592\" alt=\"\" width=\"640\" height=\"592\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i13.png?w=773&amp;ssl=1 773w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i13.png?resize=300%2C277&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i13.png?resize=768%2C710&amp;ssl=1 768w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>You have everything you need in the console window pgAdmin 4. At the Server level if you right click on \u00ab\u00a0PostgreSQL 10\u00a0\u00bb &#8211; &gt; <em> Properties <\/em>, you will have all the necessary information: <strong> Host <\/strong> and <strong> Port <\/strong>. The <strong> Name <\/strong> is only used to display the pull-down menu of connections. You are free to enter any name. Leave\u00a0<strong>Service <\/strong>\u00a0blank.<\/p>\n<p>The database where you loaded the shapefile is \u00ab\u00a0postgis_24_sample\u00a0\u00bb.<\/p>\n<p>You must enter the username: we will use \u00a0\u00ab\u00a0postgres\u00a0\u00bb and the password that you defined for this user when running the installation.<\/p>\n<p>Click <em> <strong> Test Connection <\/strong> <\/em> to make sure all information is entered, and then click OK.<\/p>\n<p>The new connection is added to the list. Click \u00ab\u00a0<strong> <em> Connect <\/em> <\/strong>\u00ab\u00a0. You will have the different <em> Schemes <\/em> available together with their specific list of spatial tables:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i14.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"4765\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/debuter-avec-postgresql-postgis-introduction-a-pgadmin4\/_i14\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i14.png?fit=770%2C504&amp;ssl=1\" data-orig-size=\"770,504\" 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=\"_i14\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i14.png?fit=640%2C419&amp;ssl=1\" class=\"aligncenter size-full wp-image-4765\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i14.png?resize=640%2C419\" alt=\"\" width=\"640\" height=\"419\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i14.png?w=770&amp;ssl=1 770w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i14.png?resize=300%2C196&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/01\/i14.png?resize=768%2C503&amp;ssl=1 768w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a>Select the line matching the layer loaded with the <em> <strong> Public <\/strong> <\/em> schema and click the <em> <strong> Add <\/strong> <\/em> button.<\/p>\n<p>The coordinate system definition window is displayed. Select the <a href=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/qgis-projections-crs\/\">SRC<\/a> of the data (in this example Lambert 93)<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2016\/02\/pg36.png\" rel=\"attachment wp-att-3029\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"3029\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/debuter-avec-postgrsqlpostgis-introduction-a-pgadmin3\/pg36\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2016\/02\/pg36.png?fit=615%2C598&amp;ssl=1\" data-orig-size=\"615,598\" 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=\"pg36\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2016\/02\/pg36.png?fit=615%2C598&amp;ssl=1\" class=\"aligncenter wp-image-3029 size-full\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2016\/02\/pg36.png?resize=615%2C598\" alt=\"pg36\" width=\"615\" height=\"598\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2016\/02\/pg36.png?w=615&amp;ssl=1 615w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2016\/02\/pg36.png?resize=300%2C292&amp;ssl=1 300w\" sizes=\"auto, (max-width: 615px) 100vw, 615px\" \/><\/a>The layer is loaded in QGis.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2016\/02\/pg37.png\" rel=\"attachment wp-att-3030\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"3030\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/debuter-avec-postgrsqlpostgis-introduction-a-pgadmin3\/pg37\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2016\/02\/pg37.png?fit=1671%2C740&amp;ssl=1\" data-orig-size=\"1671,740\" 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=\"pg37\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2016\/02\/pg37.png?fit=640%2C283&amp;ssl=1\" class=\"aligncenter wp-image-3030 size-large\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2016\/02\/pg37-1024x453.png?resize=640%2C283\" alt=\"pg37\" width=\"640\" height=\"283\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2016\/02\/pg37.png?resize=1024%2C453&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2016\/02\/pg37.png?resize=300%2C133&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2016\/02\/pg37.png?resize=768%2C340&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2016\/02\/pg37.png?resize=1200%2C531&amp;ssl=1 1200w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2016\/02\/pg37.png?w=1671&amp;ssl=1 1671w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2016\/02\/pg37.png?w=1280&amp;ssl=1 1280w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>You can now work on this layer as on any other layer you were used to (display, symbology, geometric update or attribute, &#8230;)<\/p>\n<p>&nbsp;<\/p>\n<p>*<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Following up a previous article (D\u00e9buter avec Postgres\/Postgis ), we will address an introduction to Postgres\/postgis database management. We will load a shapefile, connect and load the Postgis layer from QGis. The most \u00a0suitable method to&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_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":"","jetpack_post_was_ever_published":false},"categories":[1296,1338],"tags":[],"class_list":["post-4769","post","type-post","status-publish","format-standard","hentry","category-posts-en","category-postgresql-en"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p6XU0A-1eV","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/posts\/4769","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=4769"}],"version-history":[{"count":0,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/posts\/4769\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/media?parent=4769"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/categories?post=4769"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/tags?post=4769"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}