﻿{"id":12525,"date":"2024-03-07T10:00:00","date_gmt":"2024-03-07T09:00:00","guid":{"rendered":"https:\/\/www.sigterritoires.fr\/?p=12525"},"modified":"2025-05-08T09:12:40","modified_gmt":"2025-05-08T07:12:40","slug":"creation-of-a-geopackage-database-for-enc-maps-part-2-add-symbology","status":"publish","type":"post","link":"https:\/\/www.sigterritoires.fr\/index.php\/en\/creation-of-a-geopackage-database-for-enc-maps-part-2-add-symbology\/","title":{"rendered":"Creation of a Geopackage database for ENC maps (part 2: add symbology)"},"content":{"rendered":"\n<p>The first part of the <a href=\"https:\/\/www.sigterritoires.fr\/index.php\/financement-collaboratif-pour-lintegration-de-donnees-marines-dans-qgis\/\" title=\"Collaborative Financing for the Integration of Marine Data in QGIS project\">Collaborative Financing for the Integration of Marine Data in QGIS project<\/a> has been completed, thanks to contributions from ORANGE Marine, Geoconceptos Uruguay, Janez Avzec and Gaetan Mas. Our warmest thanks to all of them. We hereby publish the final content of this part of the project.<br><a href=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/creation-of-a-geopackage-database-for-enc-maps-part-1-building-the-database\/\" title=\"The first part deals with the creation and management of the database\">The first part deals with the creation and management of the database<\/a>, and this second part with the S57 symbology in QGis.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Adding symbology to a geopackage<\/h2>\n\n\n\n<p>The default symbology of a geopackage&rsquo;s tables is contained in a table named layer_styles, which is only created if you use the save default option of the style button.<\/p>\n\n\n\n<p>After cloning the tables in the ENC file, the table does not exist. So we&rsquo;re going to import the table containing all ENC map symbology.<\/p>\n\n\n\n<p><a href=\"https:\/\/www.nasca.ovh\/downloads\/layer_natsurfV1.gpkg\" title=\"Download layer_natsurfV1.gpkg\">Download layer_natsurfV1.gpkg<\/a><\/p>\n\n\n\n<p>This <a href=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/geopackage-format-and-qgis-3\/\">geopackage<\/a> contains a table, named layer_styles, with symbology definitions for all S57 tables, as well as a table named natsurf, which will be used to format the rendering of the \u00ab\u00a0nature of seabed\u00a0\u00bb table (SBDARE).<\/p>\n\n\n\n<p>To integrate these tables into your ENC file (here ENC.gpkg):<\/p>\n\n\n\n<p>In QGis, open the database manager.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>You should already have the geopackage-&gt;ENC.gpkg connection. If not, right-click on &lsquo;Geopackage&rsquo;-&gt;new connection, then point to your ENC.gpkg file.<\/li>\n\n\n\n<li>Connect to the downloaded layers_natsurf.gpkg table (right-click on &lsquo;Geopackage&rsquo;-&gt;new connection, then point to the downloaded geopackage)<\/li>\n\n\n\n<li>Select layer_styles in layers_natsurf.gpkg, then right-click-&gt;add to canvas, and you&rsquo;ll have the layer_styles table in the list of loaded layers.<\/li>\n\n\n\n<li>Select natsurf in layers_natsurf.gpkg, then right-click-&gt;Add to canvas, and the natsurf table will appear in the list of loaded layers.<\/li>\n\n\n\n<li>Select the ENC.gpkg geopackage in the database manager.<\/li>\n\n\n\n<li>In the Table menu, select Import layer\/file.<\/li>\n\n\n\n<li>In the layer list, select layer_styles, then OK<\/li>\n\n\n\n<li>Repeat the operation for the natsurf layer.<\/li>\n<\/ol>\n\n\n\n<p>The current version of layer_styles contains symbology layouts for 153 layers. Please check regularly for updates available for download.<\/p>\n\n\n\n<p>This symbology uses svg symbols that you need to download to your machine. <a href=\"https:\/\/www.nasca.ovh\/downloads\/nauticalV1.7z\" title=\"Clicking here will download a 'nautical' directory\">Clicking here will download a &lsquo;nautical&rsquo; directory<\/a> containing all the necessary svg symbols, as well as a directory called \u00ab\u00a0XML\u00a0\u00bb with additional symbols for QGis.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">SVG symbols<\/h2>\n\n\n\n<p>By default, references to svg symbols are made to a &lsquo;C:\/nautical&rsquo; directory. You have several options:<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">1- Unzip the nautical file into a c:\/nautical directory on your machine<\/h2>\n\n\n\n<p>In this case, you don&rsquo;t need to do anything else. Layer_styles will find the svg symbols with no problem.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">2- You want to save the nautical directory in a directory of your choice<\/h2>\n\n\n\n<p>In this case, you need to modify the layer_styles table so that it finds the symbols.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/01\/Capture-decran-2024-01-29-114340.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"378\" data-attachment-id=\"12344\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/creation-dune-base-de-donnees-geopackage-pour-les-cartes-enc-actualisation-du-projet-en-cours\/capture-decran-2024-01-29-114340\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/01\/Capture-decran-2024-01-29-114340.png?fit=2225%2C1315&amp;ssl=1\" data-orig-size=\"2225,1315\" 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=\"Capture-decran-2024-01-29-114340\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/01\/Capture-decran-2024-01-29-114340.png?fit=640%2C378&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/01\/Capture-decran-2024-01-29-114340.png?resize=640%2C378&#038;ssl=1\" alt=\"\" class=\"wp-image-12344\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/01\/Capture-decran-2024-01-29-114340.png?resize=1024%2C605&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/01\/Capture-decran-2024-01-29-114340.png?resize=300%2C177&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/01\/Capture-decran-2024-01-29-114340.png?resize=768%2C454&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/01\/Capture-decran-2024-01-29-114340.png?resize=1536%2C908&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/01\/Capture-decran-2024-01-29-114340.png?resize=2048%2C1210&amp;ssl=1 2048w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/01\/Capture-decran-2024-01-29-114340.png?w=1280&amp;ssl=1 1280w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/01\/Capture-decran-2024-01-29-114340.png?w=1920&amp;ssl=1 1920w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/figure>\n\n\n\n<p>Open the QGis database manager.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Select the layer_styles table in your geopackage<\/li>\n\n\n\n<li>Open an SQL window<\/li>\n\n\n\n<li>Enter the query:<\/li>\n\n\n\n<li>UPDATE layer_styles<\/li>\n\n\n\n<li>SET styleQML = REPLACE(styleQML, &lsquo;C:\/nautical&rsquo;, &lsquo;Your path&rsquo;);<\/li>\n\n\n\n<li>Click on the Execute button<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">3- You wish to save the nautical directory in your ENC geopackage directory.<\/h2>\n\n\n\n<p>In this case, references to svg symbols will be relative to the Geopackage and you&rsquo;ll be able to use it from several machines. We&rsquo;ll follow the same procedure as above, but the SQL query will be:<\/p>\n\n\n\n<p><strong><em>UPDATE layer_styles<br>SET styleQML = REPLACE(styleQML, &lsquo;C:\/nautical&rsquo;, &lsquo;nautical&rsquo;);<\/em><\/strong><\/p>\n\n\n\n<p>Of course, the project must be configured to store relative paths (Project properties -&gt; General-&gt;Save paths-&gt;Relative).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">XML symbols<\/h2>\n\n\n\n<p>Uploaded XML symbols correspond to additional QGis symbologies. They are used in the formatting of some of the S57 symbols. You can search for them and install them from their classic repositories, but to simplify the work we&rsquo;ve put all the necessary XML files in the download file.<\/p>\n\n\n\n<p>Here&rsquo;s how,<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>open the Style Manager (Preferences-&gt;Style Manager)<\/li>\n\n\n\n<li>Click on the Import\/Export button<\/li>\n\n\n\n<li>In the File field, point to the XML file you wish to upload, then click on Import<\/li>\n\n\n\n<li>Repeat for all uploaded XML files<\/li>\n<\/ol>\n\n\n\n<h1 class=\"wp-block-heading\">Some special symbologies<\/h1>\n\n\n\n<p>The vast majority of S57 layer symbologies require no special care. The symbology is defined by default in the geopackage and is loaded and displayed automatically.<br>But there are three layers that require particular attention.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">1- The LIGHTS layer<\/h2>\n\n\n\n<p>The various lights on ENC maps can be of two types: sector lights, i.e. the color of the light is different depending on the angle from which it is observed, or simple lights, visible on 360\u00b0.<\/p>\n\n\n\n<p>On the other hand, the symbology used on paper charts and that used by digital ENC visualization software is not the same.<\/p>\n\n\n\n<p>The symbology we&rsquo;ve implemented meets all these criteria.<\/p>\n\n\n\n<p>When you load the LIGHTS layer, you&rsquo;ll see it in the layer panel:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/couche_lights.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"275\" height=\"207\" data-attachment-id=\"12500\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/creation-dune-base-de-donnees-geopackage-pour-les-cartes-enc-1ere-partie-constituer-la-base-de-donnees\/couche_lights\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/couche_lights.png?fit=275%2C207&amp;ssl=1\" data-orig-size=\"275,207\" 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=\"couche_lights\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/couche_lights.png?fit=275%2C207&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/couche_lights.png?resize=275%2C207&#038;ssl=1\" alt=\"\" class=\"wp-image-12500\"\/><\/a><\/figure>\n<\/div>\n\n\n<p>By default, the symbology of ENC visualizers is displayed.<\/p>\n\n\n\n<p>The first line corresponds to sector lights, the second to simple lights.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/feux.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"612\" height=\"630\" data-attachment-id=\"12501\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/creation-dune-base-de-donnees-geopackage-pour-les-cartes-enc-1ere-partie-constituer-la-base-de-donnees\/feux\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/feux.png?fit=612%2C630&amp;ssl=1\" data-orig-size=\"612,630\" 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=\"feux\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/feux.png?fit=612%2C630&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/feux.png?resize=612%2C630&#038;ssl=1\" alt=\"\" class=\"wp-image-12501\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/feux.png?w=612&amp;ssl=1 612w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/feux.png?resize=291%2C300&amp;ssl=1 291w\" sizes=\"auto, (max-width: 612px) 100vw, 612px\" \/><\/a><\/figure>\n\n\n\n<p>For sector lights, the symbology is the same whether you use a viewer or a paper map. For simple traffic lights, however, you can choose the type of symbology. If you uncheck the second line and check the third, you&rsquo;ll have a \u00ab\u00a0paper\u00a0\u00bb symbology:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/feux_papier.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"517\" height=\"570\" data-attachment-id=\"12502\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/creation-dune-base-de-donnees-geopackage-pour-les-cartes-enc-1ere-partie-constituer-la-base-de-donnees\/feux_papier\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/feux_papier.png?fit=517%2C570&amp;ssl=1\" data-orig-size=\"517,570\" 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=\"feux_papier\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/feux_papier.png?fit=517%2C570&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/feux_papier.png?resize=517%2C570&#038;ssl=1\" alt=\"\" class=\"wp-image-12502\" style=\"width:840px;height:auto\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/feux_papier.png?w=517&amp;ssl=1 517w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/feux_papier.png?resize=272%2C300&amp;ssl=1 272w\" sizes=\"auto, (max-width: 517px) 100vw, 517px\" \/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">SOUNDG layer (bathymetric soundings)<\/h2>\n\n\n\n<p>The display of sounding values depends on their quality: if they are reliable, the font should be italic, but if they are not completely reliable, they should be displayed in a regular font.<\/p>\n\n\n\n<p>Probe quality is stored in the M_QUAL layer of S57 files.<\/p>\n\n\n\n<p>By default, the SOUNDG layer symbology takes probe quality into account. The pl_M_QUAL layer must therefore be loaded into the QGis project. This is invisible when displayed, but is used to label SOUNDG entities:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/soundg.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"540\" height=\"360\" data-attachment-id=\"12503\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/creation-dune-base-de-donnees-geopackage-pour-les-cartes-enc-1ere-partie-constituer-la-base-de-donnees\/soundg-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/soundg.png?fit=540%2C360&amp;ssl=1\" data-orig-size=\"540,360\" 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=\"soundg\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/soundg.png?fit=540%2C360&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/soundg.png?resize=540%2C360&#038;ssl=1\" alt=\"\" class=\"wp-image-12503\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/soundg.png?w=540&amp;ssl=1 540w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/soundg.png?resize=300%2C200&amp;ssl=1 300w\" sizes=\"auto, (max-width: 540px) 100vw, 540px\" \/><\/a><\/figure>\n\n\n\n<p>The process involves crossing the two layers to obtain the quality value for each probe from the pl_M_qual polygons. Of course, the number of probes can make this step quite time-consuming. If you&rsquo;re working with large zoners and a high number of probes, you can choose to ignore quality. To do this, <a href=\"https:\/\/www.nasca.ovh\/downloads\/soundg_qml.7z\" title=\"download the following qml file: soundg.qml.\">download the following qml file: soundg.qml.<\/a> You&rsquo;ll have two qml files: the one that uses M_qual and the one that doesn&rsquo;t.<\/p>\n\n\n\n<p>Open the SOUNDG layer properties, click on the Style button (bottom left), then on Load Style and point to the downloaded file. All probes will be displayed very quickly, regardless of quality.<\/p>\n\n\n\n<p>The SBDARE layer (type of background)<\/p>\n\n\n\n<p>Managing the symbology of this layer is rather complicated, as it involves processing two list-type fields. The list of bottom types must be combined with the granulometry of each fraction.<\/p>\n\n\n\n<p>The following code is the expression used to generate the labels, which is included by default:<\/p>\n\n\n\n<div class='stb-container stb-style-download 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+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4m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vKUSy+6\/ubP7yy1LX7u1XdFLptH+o7a5Wm3p2nKHkdCA2boytKGQIUOdQmbMxa00+Pvf+sn6\/\/uH159bdtGCUMfRqdjBWQaTCwZs5atueLKqzM9564+UE51vjNQ1AayExSKJXw3rJZ6CMSyIGqjxywa6uK0ZOLMr9OCzlp\/X\/61p\/\/rqUceWj9RcbYD5f8tJ44lkPcfdS2NqeW\/f9bZq1KzFp0aa1t0QlHEmkfKwnb1mAg0E2maGKaGqbmyJSarca+QLR3Y8XZh385XX\/nZT58dKUy+Dkwd9o9lvyUgB38LMgWts7s6FiTqG+fokVhbfWM6bVh2DCEInGo5n8uO+dXS0FQ+9957fUN7XBg+nNL6fw3k16lnAaErI9TmOEDtcMrpMQFy\/B8GjgM5DuQ4kP+3x\/8MAHWpUzAU7qJ7AAAAAElFTkSuQmCC' alt='img'\/><\/div><div class='stb-caption-content'>\u00e9tiquettes SBDARE<\/div><div class='stb-tool'><\/div><\/div><div class='stb-content'> <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>CASE \n  WHEN regexp_substr(\"NATSUR\", '\\\\((\\\\d+):') = '1'THEN \n\tCASE\n\t\tWHEN \"NATQUA\" IS NOT NULL THEN  \n\t\twith_variable('NTS',lpad(regexp_substr(\"NATSUR\", ':(\\\\d+)'),2,'  ') || lpad(regexp_substr(\"NATQUA\", ':(\\\\d+)'),2,'  '),\n\t\t\taggregate(layer:= 'natsurf',aggregate:='max',expression:= \"ETIQ\",\n\t\t\tfilter:= \"NATQUAT\" = trim(right(@NTS,2)) AND \"NATSURT\" = trim(left(@NTS,2))))\n\t\tWHEN \"NATQUA\" IS NULL THEN  \n\t\twith_variable('NTS',regexp_substr(\"NATSUR\", ':(\\\\d+)'),\n\t\t\taggregate(layer:= 'natsurf',aggregate:='max',expression:= \"ETIQ\",\n\t\t\tfilter:= \"NATQUAT\" IS NULL AND \"NATSURT\" = @NTS))\n\t\tELSE '?'\n\t\t\n\tEND\n WHEN regexp_substr(\"NATSUR\", '\\\\((\\\\d+):') = '2' THEN \n\tCASE\n\t\tWHEN  regexp_substr(\"NATQUA\", '\\\\((\\\\d+):') = '1' THEN  \n\t\twith_variable('NTS',lpad(regexp_substr(\"NATSUR\", ':(\\\\d+)'),2,'  ') || lpad(regexp_substr(\"NATQUA\", ':(\\\\d+)'),2,'  '),\n\t\t\taggregate(layer:= 'natsurf',aggregate:='max',expression:= \"ETIQ\",\n\t\t\tfilter:= \"NATQUAT\" = trim(right(@NTS,2)) AND \"NATSURT\" = trim(left(@NTS,2))))  || '.'  || with_variable('NTS2',regexp_substr(\"NATSUR\", ',(\\\\d+)'),\n\t\t\taggregate(layer:= 'natsurf',aggregate:='max',expression:= \"ETIQ\",\n\t\t\tfilter:= \"NATQUAT\" IS NULL AND \"NATSURT\" = @NTS2))\n\t\t\t\n\t\tWHEN \"NATQUA\" IS NULL THEN  \n\t\twith_variable('NTS',regexp_substr(\"NATSUR\", ':(\\\\d+)'),\n\t\t\taggregate(layer:= 'natsurf',aggregate:='max',expression:= \"ETIQ\",\n\t\t\tfilter:= \"NATQUAT\" IS NULL AND \"NATSURT\" = @NTS))  || '.' || \n\t\t\twith_variable('NTS2',regexp_substr(\"NATSUR\", ',(\\\\d+)'),\n\t\t\taggregate(layer:= 'natsurf',aggregate:='max',expression:= \"ETIQ\",\n\t\t\tfilter:= \"NATQUAT\" IS NULL AND \"NATSURT\" = @NTS2))\n\t\tWHEN  regexp_substr(\"NATQUA\", '\\\\((\\\\d+):') = '2' THEN  \n\t with_variable('NTS',lpad(regexp_substr(\"NATSUR\", ':(\\\\d+)'),2,'  ') || lpad(regexp_substr(\"NATQUA\", ':(\\\\d+)'),2,'  '),\n\t\t\taggregate(layer:= 'natsurf',aggregate:='max',expression:= \"ETIQ\",\n\t\t\tfilter:= \"NATQUAT\" = trim(right(@NTS,2)) AND \"NATSURT\" = trim(left(@NTS,2))))  || '.'  || \n\t\t\twith_variable('NTS2',lpad(regexp_substr(\"NATSUR\", ',(\\\\d+)'),2,'  ') || lpad(regexp_substr(\"NATQUA\", ',(\\\\d+)'),2,'  '),\n\t\t\taggregate(layer:= 'natsurf',aggregate:='max',expression:= \"ETIQ\",\n\t\t\tfilter:= \"NATQUAT\" = trim(right(@NTS2,2)) AND \"NATSURT\" = trim(left(@NTS2,2))))\n\t\t\tend\nWHEN regexp_substr(\"NATSUR\", '\\\\((\\\\d+):') = '3' THEN \t \n\t\tCASE\n\t\tWHEN  regexp_substr(\"NATQUA\", '\\\\((\\\\d+):') = '1' THEN  \n\t\twith_variable('NTS',lpad(regexp_substr(\"NATSUR\", ':(\\\\d+)'),2,'  ') || lpad(regexp_substr(\"NATQUA\", ':(\\\\d+)'),2,'  '),\n\t\t\taggregate(layer:= 'natsurf',aggregate:='max',expression:= \"ETIQ\",\n\t\t\tfilter:= \"NATQUAT\" = trim(right(@NTS,2)) AND \"NATSURT\" = trim(left(@NTS,2))))  || '.'  || with_variable('NTS2',regexp_substr(\"NATSUR\", ',(\\\\d+)'),\n\t\t\taggregate(layer:= 'natsurf',aggregate:='max',expression:= \"ETIQ\",\n\t\t\tfilter:= \"NATQUAT\" IS NULL AND \"NATSURT\" = @NTS2))|| '.' || \n\t\t\twith_variable('NTS3',regexp_substr(\"NATSUR\", ',(\\\\d+)\\\\)'),\n\t\t\taggregate(layer:= 'natsurf',aggregate:='max',expression:= \"ETIQ\",\n\t\t\tfilter:= \"NATQUAT\" IS NULL AND \"NATSURT\" = @NTS3) )\n\t\t\t\n\t\tWHEN \"NATQUA\" IS NULL THEN  \n\t\twith_variable('NTS',regexp_substr(\"NATSUR\", ':(\\\\d+)'),\n\t\t\taggregate(layer:= 'natsurf',aggregate:='max',expression:= \"ETIQ\",\n\t\t\tfilter:= \"NATQUAT\" IS NULL AND \"NATSURT\" = @NTS))  || '.' || \n\t\t\twith_variable('NTS2',regexp_substr(\"NATSUR\", ',(\\\\d+)'),\n\t\t\taggregate(layer:= 'natsurf',aggregate:='max',expression:= \"ETIQ\",\n\t\t\tfilter:= \"NATQUAT\" IS NULL AND \"NATSURT\" = @NTS2))|| '.' || \n\t\t\twith_variable('NTS3',regexp_substr(\"NATSUR\", ',(\\\\d+)\\\\)'),\n\t\t\taggregate(layer:= 'natsurf',aggregate:='max',expression:= \"ETIQ\",\n\t\t\tfilter:= \"NATQUAT\" IS NULL AND \"NATSURT\" = @NTS3) )\n\t\tWHEN  regexp_substr(\"NATQUA\", '\\\\((\\\\d+):') = '2' THEN  \n\t with_variable('NTS',lpad(regexp_substr(\"NATSUR\", ':(\\\\d+)'),2,'  ') || lpad(regexp_substr(\"NATQUA\", ':(\\\\d+)'),2,'  '),\n\t\t\taggregate(layer:= 'natsurf',aggregate:='max',expression:= \"ETIQ\",\n\t\t\tfilter:= \"NATQUAT\" = trim(right(@NTS,2)) AND \"NATSURT\" = trim(left(@NTS,2))))  || '.'  || \n\t\t\twith_variable('NTS2',lpad(regexp_substr(\"NATSUR\", ',(\\\\d+)'),2,'  ') || lpad(regexp_substr(\"NATQUA\", ',(\\\\d+)'),2,'  '),\n\t\t\taggregate(layer:= 'natsurf',aggregate:='max',expression:= \"ETIQ\",\n\t\t\tfilter:= \"NATQUAT\" = trim(right(@NTS2,2)) AND \"NATSURT\" = trim(left(@NTS2,2)))) || '.' || \n\t\t\twith_variable('NTS3',regexp_substr(\"NATSUR\", ':(\\\\d+)'),\n\t\t\taggregate(layer:= 'natsurf',aggregate:='max',expression:= \"ETIQ\",\n\t\t\tfilter:= \"NATQUAT\" IS NULL AND \"NATSURT\" = @NTS3) )\n\t\tWHEN  regexp_substr(\"NATQUA\", '\\\\((\\\\d+):') = '3' THEN  \n\t with_variable('NTS',lpad(regexp_substr(\"NATSUR\", ':(\\\\d+)'),2,'  ') || lpad(regexp_substr(\"NATQUA\", ':(\\\\d+)'),2,'  '),\n\t\t\taggregate(layer:= 'natsurf',aggregate:='max',expression:= \"ETIQ\",\n\t\t\tfilter:= \"NATQUAT\" = trim(right(@NTS,2)) AND \"NATSURT\" = trim(left(@NTS,2))))  || '.'  || \n\t\t\twith_variable('NTS2',lpad(regexp_substr(\"NATSUR\", ',(\\\\d+)\\\\)'),2,'  ') || lpad(regexp_substr(\"NATQUA\", ',(\\\\d+)\\\\)'),2,'  '),\n\t\t\taggregate(layer:= 'natsurf',aggregate:='max',expression:= \"ETIQ\",\n\t\t\tfilter:= \"NATQUAT\" = trim(right(@NTS2,2)) AND \"NATSURT\" = trim(left(@NTS2,2)))) || '.' || \n\t\t\twith_variable('NTS4',lpad(regexp_substr(\"NATSUR\", ',(\\\\d+)'),2,'  ') || lpad(regexp_substr(\"NATQUA\", ',(\\\\d+)'),2,'  '),\n\t\t\taggregate(layer:= 'natsurf',aggregate:='max',expression:= \"ETIQ\",\n\t\t\tfilter:= \"NATQUAT\" = trim(right(@NTS4,2)) AND \"NATSURT\" = trim(left(@NTS4,2))))\n\t\t\tend\n\t\t\nEND\n   <\/code><\/pre>\n\n\n\n<p><\/div><\/div>\n\n\n\n<p>This code has been simplified (yes!) by storing the 143 possible combinations of nature and fraction in an external table: natsurf.<\/p>\n\n\n\n<p>For the symbology to work, the natsurf table must be added to the list of project layers:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/naturedesfonds.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"217\" data-attachment-id=\"12504\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/creation-dune-base-de-donnees-geopackage-pour-les-cartes-enc-1ere-partie-constituer-la-base-de-donnees\/naturedesfonds\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/naturedesfonds.png?fit=1025%2C347&amp;ssl=1\" data-orig-size=\"1025,347\" 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=\"naturedesfonds\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/naturedesfonds.png?fit=640%2C217&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/naturedesfonds.png?resize=640%2C217&#038;ssl=1\" alt=\"\" class=\"wp-image-12504\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/naturedesfonds.png?w=1025&amp;ssl=1 1025w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/naturedesfonds.png?resize=300%2C102&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/naturedesfonds.png?resize=768%2C260&amp;ssl=1 768w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">BONUS: Some ways of working with multiple layers<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Load all Geopackage layers<\/h3>\n\n\n\n<p>You can load all Geopackage layers directly by clicking and dragging the geopackage name from the explorer panel to the layers panel.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/chargergpkg1.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"635\" data-attachment-id=\"12560\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/creation-dune-base-de-donnees-geopackage-pour-les-cartes-enc-2eme-partie-ajouter-la-symbologie\/chargergpkg1\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/chargergpkg1.png?fit=668%2C663&amp;ssl=1\" data-orig-size=\"668,663\" 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=\"chargergpkg1\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/chargergpkg1.png?fit=640%2C635&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/chargergpkg1.png?resize=640%2C635&#038;ssl=1\" alt=\"\" class=\"wp-image-12560\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/chargergpkg1.png?w=668&amp;ssl=1 668w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/chargergpkg1.png?resize=300%2C298&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/chargergpkg1.png?resize=150%2C150&amp;ssl=1 150w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/chargergpkg1.png?resize=120%2C120&amp;ssl=1 120w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/figure>\n\n\n\n<p>A window opens where you can select which layers to load. To load all layers, simply click on <strong>Select all<\/strong>, then on <strong>Add layer<\/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\/2024\/03\/chargergpkg2.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"449\" data-attachment-id=\"12561\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/creation-dune-base-de-donnees-geopackage-pour-les-cartes-enc-2eme-partie-ajouter-la-symbologie\/chargergpkg2\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/chargergpkg2.png?fit=2403%2C1687&amp;ssl=1\" data-orig-size=\"2403,1687\" 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=\"chargergpkg2\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/chargergpkg2.png?fit=640%2C449&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/chargergpkg2.png?resize=640%2C449&#038;ssl=1\" alt=\"\" class=\"wp-image-12561\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/chargergpkg2.png?resize=1024%2C719&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/chargergpkg2.png?resize=300%2C211&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/chargergpkg2.png?resize=768%2C539&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/chargergpkg2.png?resize=1536%2C1078&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/chargergpkg2.png?resize=2048%2C1438&amp;ssl=1 2048w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/chargergpkg2.png?w=1280&amp;ssl=1 1280w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/chargergpkg2.png?w=1920&amp;ssl=1 1920w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/figure>\n\n\n\n<p>All layers are now loaded. Depending on the number of S57 files loaded in your database, window formatting can take a long time.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/chargergpkg3.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"238\" data-attachment-id=\"12562\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/creation-dune-base-de-donnees-geopackage-pour-les-cartes-enc-2eme-partie-ajouter-la-symbologie\/chargergpkg3\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/chargergpkg3.png?fit=3437%2C1280&amp;ssl=1\" data-orig-size=\"3437,1280\" 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=\"chargergpkg3\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/chargergpkg3.png?fit=640%2C238&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/chargergpkg3.png?resize=640%2C238&#038;ssl=1\" alt=\"\" class=\"wp-image-12562\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/chargergpkg3.png?resize=1024%2C381&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/chargergpkg3.png?resize=300%2C112&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/chargergpkg3.png?resize=768%2C286&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/chargergpkg3.png?resize=1536%2C572&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/chargergpkg3.png?resize=2048%2C763&amp;ssl=1 2048w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/chargergpkg3.png?w=1280&amp;ssl=1 1280w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/chargergpkg3.png?w=1920&amp;ssl=1 1920w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/figure>\n\n\n\n<p>Layers that consume a lot of resources are the ones we saw above (lights, probes and bottom type). You can uncheck them to speed up loading.<\/p>\n\n\n\n<p>Another, more efficient way is to define the minimum display scale for your layers. With 150 layers loaded, defining them one by one is out of the question. We provide you with a Python script that allows you to define the minimum display scale for all layers selected in the Layers panel. Once your project has been saved, these settings will be used each time the project is opened.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/chargergpkg4.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"301\" data-attachment-id=\"12563\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/creation-dune-base-de-donnees-geopackage-pour-les-cartes-enc-2eme-partie-ajouter-la-symbologie\/chargergpkg4\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/chargergpkg4.png?fit=3711%2C1747&amp;ssl=1\" data-orig-size=\"3711,1747\" 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=\"chargergpkg4\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/chargergpkg4.png?fit=640%2C301&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/chargergpkg4.png?resize=640%2C301&#038;ssl=1\" alt=\"\" class=\"wp-image-12563\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/chargergpkg4.png?resize=1024%2C482&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/chargergpkg4.png?resize=300%2C141&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/chargergpkg4.png?resize=768%2C362&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/chargergpkg4.png?resize=1536%2C723&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/chargergpkg4.png?resize=2048%2C964&amp;ssl=1 2048w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/chargergpkg4.png?w=1280&amp;ssl=1 1280w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/chargergpkg4.png?w=1920&amp;ssl=1 1920w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/figure>\n\n\n\n<p>The Python script for setting the minimum display scale for selected layers is as follows:<\/p>\n\n\n\n<div class='stb-container stb-style-download 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+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ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\/ubP7yy1LX7u1XdFLptH+o7a5Wm3p2nKHkdCA2boytKGQIUOdQmbMxa00+Pvf+sn6\/\/uH159bdtGCUMfRqdjBWQaTCwZs5atueLKqzM9564+UE51vjNQ1AayExSKJXw3rJZ6CMSyIGqjxywa6uK0ZOLMr9OCzlp\/X\/61p\/\/rqUceWj9RcbYD5f8tJ44lkPcfdS2NqeW\/f9bZq1KzFp0aa1t0QlHEmkfKwnb1mAg0E2maGKaGqbmyJSarca+QLR3Y8XZh385XX\/nZT58dKUy+Dkwd9o9lvyUgB38LMgWts7s6FiTqG+fokVhbfWM6bVh2DCEInGo5n8uO+dXS0FQ+9957fUN7XBg+nNL6fw3k16lnAaErI9TmOEDtcMrpMQFy\/B8GjgM5DuQ4kP+3x\/8MAHWpUzAU7qJ7AAAAAElFTkSuQmCC' alt='img'\/><\/div><div class='stb-caption-content'>setminscale.py<\/div><div class='stb-tool'><\/div><\/div><div class='stb-content'><\/div><\/div>\n\n\n\n<pre class=\"wp-block-code\"><code># R\u00e9cup\u00e9rer la vue des couches\nlayer_tree_view = iface.layerTreeView()\n\n# R\u00e9cup\u00e9rer les couches s\u00e9lectionn\u00e9es\nselected_layers = layer_tree_view.selectedLayers()\n\n# D\u00e9finir l'\u00e9chelle minimale pour chaque couche s\u00e9lectionn\u00e9e\nfor layer in selected_layers:\n    # D\u00e9finir l'\u00e9chelle minimale (par exemple, 1:50000)\n    min_scale = 250000\n    \n    # D\u00e9finir l'\u00e9chelle minimale d'affichage pour la couche\n    layer.setScaleBasedVisibility(True)\n    layer.setMinimumScale(min_scale)\n    print(f\"L'\u00e9chelle d'affichage de la couche {layer.name()} a \u00e9t\u00e9 d\u00e9finie sur {min_scale}.\")\n<\/code><\/pre>\n\n\n\n<p>[\/stextbox ]<\/p>\n\n\n\n<p><a href=\"https:\/\/www.nasca.ovh\/downloads\/setminscale.py\" title=\"You can download it here.\">You can download it here.<\/a><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The first part of the Collaborative Financing for the Integration of Marine Data in QGIS project has been completed, thanks to contributions from ORANGE Marine, Geoconceptos Uruguay, Janez Avzec and Gaetan Mas. Our warmest thanks to&hellip;<\/p>\n","protected":false},"author":1,"featured_media":12524,"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":[1260],"tags":[],"class_list":["post-12525","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-non-classe-en"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2024\/03\/entete.png?fit=670%2C450&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p6XU0A-3g1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/posts\/12525","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=12525"}],"version-history":[{"count":0,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/posts\/12525\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/media\/12524"}],"wp:attachment":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/media?parent=12525"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/categories?post=12525"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/tags?post=12525"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}