﻿{"id":5753,"date":"2018-07-24T04:15:25","date_gmt":"2018-07-24T02:15:25","guid":{"rendered":"http:\/\/www.sigterritoires.fr\/?p=5753"},"modified":"2018-10-17T12:59:47","modified_gmt":"2018-10-17T10:59:47","slug":"the-new-qgis-2-12-tagging-engine","status":"publish","type":"post","link":"https:\/\/www.sigterritoires.fr\/index.php\/en\/the-new-qgis-2-12-tagging-engine\/","title":{"rendered":"The new QGis 2.12 tagging engine"},"content":{"rendered":"<p>The QGis tagging engine has been significantly enriched in version 2.12. In this article we will discuss advances:<\/p>\n<ul>\n<li>Quadrant from the data<\/li>\n<li>Priority from the data<\/li>\n<li>Control over the action of polygons as obstacles<\/li>\n<li>Draw labels that fit completely into a polygon<\/li>\n<li>Rule-based tagging<\/li>\n<\/ul>\n<p><!--more--><\/p>\n<h2><strong>Quadrant from the data<\/strong><\/h2>\n<p>For point layer labels, you could set the quadrant of the label using the option <strong><em>Offset Over Point<\/em><\/strong>. In this case, all the labels of the layer were forced in the selected quadrant. Now you can link the quadrant to use in each label of the layer with a field from the attribute table. Each label will be forced into the quadrant indicated by this field. If the value of the field is <strong><em>null<\/em><\/strong>, the label will be placed according to the classical algorithm and will be positioned automatically.<\/p>\n<p>First, which are the values \u200b\u200bto use? The following image shows the link between the quadrant and the value to be specified in the table field:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5754\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/the-new-qgis-2-12-tagging-engine\/tut1-4\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tut1-1.png?fit=630%2C471&amp;ssl=1\" data-orig-size=\"630,471\" 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=\"tut1\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tut1-1.png?fit=630%2C471&amp;ssl=1\" class=\"alignnone size-medium wp-image-5754\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tut1-1-300x224.png?resize=300%2C224\" alt=\"\" width=\"300\" height=\"224\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tut1-1.png?resize=300%2C224&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tut1-1.png?w=630&amp;ssl=1 630w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>To configure the placement of the label according to a field (integer type), which we have called \u00ab\u00a0quadrant\u00a0\u00bb<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5755\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/the-new-qgis-2-12-tagging-engine\/tut2-3\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tut2-1.png?fit=630%2C466&amp;ssl=1\" data-orig-size=\"630,466\" 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=\"tut2\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tut2-1.png?fit=630%2C466&amp;ssl=1\" class=\"alignnone size-medium wp-image-5755\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tut2-1-300x222.png?resize=300%2C222\" alt=\"\" width=\"300\" height=\"222\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tut2-1.png?resize=300%2C222&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tut2-1.png?w=630&amp;ssl=1 630w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>In the layer <strong><em>Properties<\/em><\/strong>, Tab <strong><em>Labels<\/em><\/strong> Tab <strong><em>-&gt; Location<\/em><\/strong> , <strong><em>Check<\/em><\/strong> <strong><em>Around Point<\/em><\/strong> , Deploy <strong><em>Quadrant<\/em><\/strong> and select <strong><em>Field Type: String, Integer, Double<\/em><\/strong> , and then check the field containing the quadrants to use.<\/p>\n<p>In order to place automatically the tags regardless of the quadrant, leave the value of the Quadrant field to <strong><em>null<\/em><\/strong>.<\/p>\n<h2><strong>Priority from the data<\/strong><\/h2>\n<p>Until now you could set the priority of the tags of a layer relative to other layers. Now you can define the priority of tags within a layer, based on the value of a field in the attribute table.<\/p>\n<p>Let\u2019s take for example the toponyms of cities. You can force the display of tags by population, if you have this value in the attribute table. Entities with a higher value in this field will have priority over those with lower values.<\/p>\n<p>To configure this setting:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5757\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/the-new-qgis-2-12-tagging-engine\/tag3-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag3.png?fit=630%2C341&amp;ssl=1\" data-orig-size=\"630,341\" 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=\"tag3\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag3.png?fit=630%2C341&amp;ssl=1\" class=\"alignnone size-medium wp-image-5757\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag3-300x162.png?resize=300%2C162\" alt=\"\" width=\"300\" height=\"162\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag3.png?resize=300%2C162&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag3.png?w=630&amp;ssl=1 630w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>In <strong><em>Properties<\/em><\/strong> the Layer tab <strong><em>Tags -&gt; Location<\/em><\/strong> in the <strong><em>Priority<\/em><\/strong> block <strong><em>\u00a0 <\/em><\/strong>Deploy <strong><em>Values \u200b\u200bdefined by the data<\/em><\/strong> and select <strong><em>Field Type: String, Integer, Double<\/em><\/strong>, and then check the field containing the values \u200b\u200bto use.<\/p>\n<h2><strong>Definition of a barrier layer for the Tags.<\/strong><\/h2>\n<p>You can now define an independent layer of the tagged layer as a barrier for tags. This means that you force the tags to not overlap with features in another layer.<\/p>\n<p>Suppose you have a <strong><em>Commons<\/em><\/strong> layer and a <strong><em>stream<\/em><\/strong> layer. You want to display the tags with the names of the communes but you do not want these tags to hide sections of the watercourse. You will, therefore, define the <strong><em>Stream<\/em><\/strong> layer as an obstacle to the <strong><em>common<\/em><\/strong> layer tags.<\/p>\n<p>Here is the Commons layer, tagged by default:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5758\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/the-new-qgis-2-12-tagging-engine\/tag4-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag4.png?fit=630%2C353&amp;ssl=1\" data-orig-size=\"630,353\" 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=\"tag4\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag4.png?fit=630%2C353&amp;ssl=1\" class=\"alignnone size-medium wp-image-5758\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag4-300x168.png?resize=300%2C168\" alt=\"\" width=\"300\" height=\"168\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag4.png?resize=300%2C168&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag4.png?w=630&amp;ssl=1 630w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>We configure the <strong><em>watercourse<\/em><\/strong> layer not to overlap with labels:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5759\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/the-new-qgis-2-12-tagging-engine\/tag5-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag5.png?fit=630%2C255&amp;ssl=1\" data-orig-size=\"630,255\" 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=\"tag5\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag5.png?fit=630%2C255&amp;ssl=1\" class=\"alignnone size-medium wp-image-5759\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag5-300x121.png?resize=300%2C121\" alt=\"\" width=\"300\" height=\"121\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag5.png?resize=300%2C121&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag5.png?w=630&amp;ssl=1 630w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>And we get the following result:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5760\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/the-new-qgis-2-12-tagging-engine\/tag6-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag6.png?fit=630%2C359&amp;ssl=1\" data-orig-size=\"630,359\" 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=\"tag6\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag6.png?fit=630%2C359&amp;ssl=1\" class=\"alignnone size-medium wp-image-5760\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag6-300x171.png?resize=300%2C171\" alt=\"\" width=\"300\" height=\"171\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag6.png?resize=300%2C171&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag6.png?w=630&amp;ssl=1 630w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>You can see that the tag at the top left is superimposed on the watercourse. There is not enough room to respect the obstacle. In this case, the tag is positioned regardless of the obstacle.<\/p>\n<h2><strong>Control over the action of polygons as obstacles<\/strong><\/h2>\n<p>When you have a continuous layer of polygons, the default option for placing the labels of the other layers, which is to try to put the minimum on the inner surface of the polygons, is not very convenient.<\/p>\n<p>For example:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5761\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/the-new-qgis-2-12-tagging-engine\/tag7-3\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag7-1.png?fit=630%2C446&amp;ssl=1\" data-orig-size=\"630,446\" 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=\"tag7\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag7-1.png?fit=630%2C446&amp;ssl=1\" class=\"alignnone size-medium wp-image-5761\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag7-1-300x212.png?resize=300%2C212\" alt=\"\" width=\"300\" height=\"212\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag7-1.png?resize=300%2C212&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag7-1.png?w=630&amp;ssl=1 630w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Both tags that spill out of the town are not very aesthetic. Now you can fix this problem:<\/p>\n<p>&nbsp;<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5762\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/the-new-qgis-2-12-tagging-engine\/tag8-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag8.png?fit=630%2C336&amp;ssl=1\" data-orig-size=\"630,336\" 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=\"tag8\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag8.png?fit=630%2C336&amp;ssl=1\" class=\"alignnone size-medium wp-image-5762\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag8-300x160.png?resize=300%2C160\" alt=\"\" width=\"300\" height=\"160\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag8.png?resize=300%2C160&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag8.png?w=630&amp;ssl=1 630w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>Open the properties of the <strong><em>Commons -&gt; Tags<\/em><\/strong> layer , select the <strong><em>Rendering<\/em><\/strong> tab , and select in <strong>Minimize tag placement<\/strong> the option <strong><em>Over the entity boundaries.<\/em><\/strong><\/p>\n<p>You get the following result:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5763\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/the-new-qgis-2-12-tagging-engine\/tag9-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag9.png?fit=630%2C463&amp;ssl=1\" data-orig-size=\"630,463\" 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=\"tag9\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag9.png?fit=630%2C463&amp;ssl=1\" class=\"alignnone size-medium wp-image-5763\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag9-300x220.png?resize=300%2C220\" alt=\"\" width=\"300\" height=\"220\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag9.png?resize=300%2C220&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag9.png?w=630&amp;ssl=1 630w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p><strong>Caution<\/strong> : You must tag the polygon layer so that this option is taken into account by other tag layers.<\/p>\n<h2><strong>Draw tags that fit completely into a polygon<\/strong><\/h2>\n<p>In Return you have a new option that only draws tags that fit completely into the corresponding polygon.<\/p>\n<p>For example:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5764\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/the-new-qgis-2-12-tagging-engine\/tag10-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag10.png?fit=630%2C353&amp;ssl=1\" data-orig-size=\"630,353\" 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=\"tag10\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag10.png?fit=630%2C353&amp;ssl=1\" class=\"alignnone size-medium wp-image-5764\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag10-300x168.png?resize=300%2C168\" alt=\"\" width=\"300\" height=\"168\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag10.png?resize=300%2C168&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag10.png?w=630&amp;ssl=1 630w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>You can force QGis to place the tags completely inside or if there is not enough space, to omit them.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5765\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/the-new-qgis-2-12-tagging-engine\/tag11-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag11.png?fit=630%2C339&amp;ssl=1\" data-orig-size=\"630,339\" 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=\"tag11\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag11.png?fit=630%2C339&amp;ssl=1\" class=\"alignnone size-medium wp-image-5765\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag11-300x161.png?resize=300%2C161\" alt=\"\" width=\"300\" height=\"161\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag11.png?resize=300%2C161&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag11.png?w=630&amp;ssl=1 630w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>Open the properties of the layer \u00a0 <strong><em>-&gt; Tags<\/em><\/strong>, select the <strong><em>Rendering<\/em><\/strong> tab , and then select the <strong><em>Draw only tags that are entirely in the entity<\/em><\/strong> \u00a0and check the box <strong><em>.<\/em><\/strong><\/p>\n<p>You will get a result like this:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5766\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/the-new-qgis-2-12-tagging-engine\/tag12\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag12.png?fit=630%2C355&amp;ssl=1\" data-orig-size=\"630,355\" 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=\"tag12\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag12.png?fit=630%2C355&amp;ssl=1\" class=\"alignnone size-medium wp-image-5766\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag12-300x169.png?resize=300%2C169\" alt=\"\" width=\"300\" height=\"169\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag12.png?resize=300%2C169&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag12.png?w=630&amp;ssl=1 630w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<h2><strong>Rule-based tagging<\/strong><\/h2>\n<p>This is the most powerful option of this new version of the tagging engine.<\/p>\n<p>Let&rsquo;s take the following map as an example:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5767\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/the-new-qgis-2-12-tagging-engine\/tag13\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag13.png?fit=630%2C459&amp;ssl=1\" data-orig-size=\"630,459\" 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=\"tag13\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag13.png?fit=630%2C459&amp;ssl=1\" class=\"alignnone size-medium wp-image-5767\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag13-300x219.png?resize=300%2C219\" alt=\"\" width=\"300\" height=\"219\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag13.png?resize=300%2C219&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag13.png?w=630&amp;ssl=1 630w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>To get the same map but with conditional formatting of labels like this:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5768\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/the-new-qgis-2-12-tagging-engine\/tag14\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag14.png?fit=630%2C459&amp;ssl=1\" data-orig-size=\"630,459\" 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=\"tag14\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag14.png?fit=630%2C459&amp;ssl=1\" class=\"alignnone size-medium wp-image-5768\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag14-300x219.png?resize=300%2C219\" alt=\"\" width=\"300\" height=\"219\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag14.png?resize=300%2C219&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag14.png?w=630&amp;ssl=1 630w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>You must return a complex expression, such as this one:<\/p>\n<p><strong><em>CASE WHEN length (\u00ab\u00a0htmlname\u00a0\u00bb)&gt; 13 AND strpos (\u00ab\u00a0htmlname\u00a0\u00bb, \u00a0\u00bb)&gt; 6 THEN replace (\u00ab\u00a0htmlname\u00a0\u00bb, \u00a0\u00bb, \u00a0\u00bb) WHEN length (\u00ab\u00a0htmlname\u00a0\u00bb)&gt; 20 AND \u00ab\u00a0htmlname\u00a0\u00bb LIKE &lsquo; % Golf Course &lsquo;THEN regexp_replace (&lsquo; htmlname &lsquo;,&rsquo; Golf Course &lsquo;,&rsquo; Golf Course &lsquo;) WHEN length (\u00ab\u00a0htmlname\u00a0\u00bb)&gt; 20 AND \u00ab\u00a0htmlname\u00a0\u00bb LIKE&rsquo; Nature Reserve &lsquo;THEN regexp_replace (\u00ab\u00a0htmlname\u00a0\u00bb,&rsquo; Nature Reserve &lsquo;,&rsquo; Nature Reserve &lsquo;) WHEN length (\u00ab\u00a0htmlname\u00a0\u00bb)&gt; 20 AND \u00ab\u00a0htmlname\u00a0\u00bb LIKE&rsquo;% Church Of England% &lsquo;THEN regexp_replace (\u00ab\u00a0htmlname\u00a0\u00bb,&rsquo; Church Of England &lsquo;,&rsquo; Church Of England &lsquo;) WHEN length ( \u00ab\u00a0htmlname\u00a0\u00bb)&gt; 13 AND \u00ab\u00a0htmlname\u00a0\u00bb LIKE &lsquo;% Of The%&rsquo; THEN regexp_replace (\u00ab\u00a0htmlname\u00a0\u00bb, \u00ab\u00a0Of The &lsquo;,&rsquo; Of The &lsquo;) WHEN length (\u00a0\u00bb htmlname \u00ab\u00a0)&gt; 13 AND\u00a0\u00bb htmlname \u00ab\u00a0LIKE&rsquo;% of% &lsquo;AND \u00ab\u00a0fontcolour\u00a0\u00bb &lt;&gt; 2 AND \u00ab\u00a0fontcolour\u00a0\u00bb &lt;&gt; 4 THEN regexp_replace (\u00ab\u00a0htmlname\u00a0\u00bb, \u00ab\u00a0of&rsquo;, &lsquo;of&rsquo;) WHEN\u00a0\u00bb htmlname \u00ab\u00a0LIKE &lsquo;% \/%&rsquo; THEN regexp_replace (\u00a0\u00bb htmlname \u00ab\u00a0, &lsquo; \/ &lsquo;,&rsquo; \/ &lsquo;) WHEN length (\u00ab\u00a0htmlname\u00a0\u00bb)&gt; 30 THEN replace (\u00ab\u00a0htmlname\u00a0\u00bb,&rsquo; &lsquo;,&rsquo; &lsquo;) ELSE \u00ab\u00a0htmlname\u00a0\u00bb END<\/em><\/strong><\/p>\n<p>Now you can do the same thing by entering formatting rules in the same way as formatting styles:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5769\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/the-new-qgis-2-12-tagging-engine\/tag15\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag15.png?fit=630%2C190&amp;ssl=1\" data-orig-size=\"630,190\" 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=\"tag15\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag15.png?fit=630%2C190&amp;ssl=1\" class=\"alignnone size-medium wp-image-5769\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag15-300x90.png?resize=300%2C90\" alt=\"\" width=\"300\" height=\"90\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag15.png?resize=300%2C90&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag15.png?w=630&amp;ssl=1 630w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>In <strong><em>Properties<\/em><\/strong> Layer <strong><em>-&gt; Tags<\/em><\/strong>, select <strong><em>Rule-Based Tags<\/em><\/strong><\/p>\n<p>Here are the rules that allow you to have the same formatting as the previous complex expression:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5770\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/the-new-qgis-2-12-tagging-engine\/tag16\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag16.png?fit=630%2C329&amp;ssl=1\" data-orig-size=\"630,329\" 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=\"tag16\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag16.png?fit=630%2C329&amp;ssl=1\" class=\"alignnone size-medium wp-image-5770\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag16-300x157.png?resize=300%2C157\" alt=\"\" width=\"300\" height=\"157\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag16.png?resize=300%2C157&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tag16.png?w=630&amp;ssl=1 630w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The QGis tagging engine has been significantly enriched in version 2.12. In this article we will discuss advances: Quadrant from the data Priority from the data Control over the action of polygons as obstacles Draw labels&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_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,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[1260],"tags":[],"class_list":["post-5753","post","type-post","status-publish","format-standard","hentry","category-non-classe-en"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"The QGis tagging engine has been significantly enriched in version 2.12. In this article we will discuss advances: Quadrant from the data Priority from the data Control over the action of polygons as obstacles Draw labels that fit completely into a polygon Rule-based tagging Quadrant from the data For point layer labels, you could set\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Atilio Francois\"\/>\n\t<meta name=\"google-site-verification\" content=\"ByXHZUbGNn7RNv-Xk5A-ysTZrM65VLIO2RxfSJ2nIEQ\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/the-new-qgis-2-12-tagging-engine\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"fr_FR\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Blog SIG &amp; Territoires | le portail des professionnels du SIG\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"The new QGis 2.12 tagging engine | Blog SIG &amp; Territoires\" \/>\n\t\t<meta property=\"og:description\" content=\"The QGis tagging engine has been significantly enriched in version 2.12. In this article we will discuss advances: Quadrant from the data Priority from the data Control over the action of polygons as obstacles Draw labels that fit completely into a polygon Rule-based tagging Quadrant from the data For point layer labels, you could set\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/the-new-qgis-2-12-tagging-engine\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2018-07-24T02:15:25+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2018-10-17T10:59:47+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/atilio.francois\/\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@SigTerritoires\" \/>\n\t\t<meta name=\"twitter:title\" content=\"The new QGis 2.12 tagging engine | Blog SIG &amp; Territoires\" \/>\n\t\t<meta name=\"twitter:description\" content=\"The QGis tagging engine has been significantly enriched in version 2.12. In this article we will discuss advances: Quadrant from the data Priority from the data Control over the action of polygons as obstacles Draw labels that fit completely into a polygon Rule-based tagging Quadrant from the data For point layer labels, you could set\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@SigTerritoires\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.sigterritoires.fr\\\/index.php\\\/en\\\/the-new-qgis-2-12-tagging-engine\\\/#article\",\"name\":\"The new QGis 2.12 tagging engine | Blog SIG & Territoires\",\"headline\":\"The new QGis 2.12 tagging engine\",\"author\":{\"@id\":\"https:\\\/\\\/www.sigterritoires.fr\\\/index.php\\\/author\\\/admin\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.sigterritoires.fr\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"http:\\\/\\\/www.sigterritoires.fr\\\/wp-content\\\/uploads\\\/2018\\\/07\\\/tut1-1-300x224.png\",\"@id\":\"https:\\\/\\\/www.sigterritoires.fr\\\/index.php\\\/en\\\/the-new-qgis-2-12-tagging-engine\\\/#articleImage\"},\"datePublished\":\"2018-07-24T04:15:25+02:00\",\"dateModified\":\"2018-10-17T12:59:47+02:00\",\"inLanguage\":\"fr-FR\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.sigterritoires.fr\\\/index.php\\\/en\\\/the-new-qgis-2-12-tagging-engine\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sigterritoires.fr\\\/index.php\\\/en\\\/the-new-qgis-2-12-tagging-engine\\\/#webpage\"},\"articleSection\":\"Non class\\u00e9, English\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.sigterritoires.fr\\\/index.php\\\/en\\\/the-new-qgis-2-12-tagging-engine\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.sigterritoires.fr#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.sigterritoires.fr\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.sigterritoires.fr\\\/index.php\\\/en\\\/category\\\/non-classe-en\\\/#listItem\",\"name\":\"Non class\\u00e9\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.sigterritoires.fr\\\/index.php\\\/en\\\/category\\\/non-classe-en\\\/#listItem\",\"position\":2,\"name\":\"Non class\\u00e9\",\"item\":\"https:\\\/\\\/www.sigterritoires.fr\\\/index.php\\\/en\\\/category\\\/non-classe-en\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.sigterritoires.fr\\\/index.php\\\/en\\\/the-new-qgis-2-12-tagging-engine\\\/#listItem\",\"name\":\"The new QGis 2.12 tagging engine\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.sigterritoires.fr#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.sigterritoires.fr\\\/index.php\\\/en\\\/the-new-qgis-2-12-tagging-engine\\\/#listItem\",\"position\":3,\"name\":\"The new QGis 2.12 tagging engine\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.sigterritoires.fr\\\/index.php\\\/en\\\/category\\\/non-classe-en\\\/#listItem\",\"name\":\"Non class\\u00e9\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.sigterritoires.fr\\\/#person\",\"name\":\"Atilio Francois\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.sigterritoires.fr\\\/index.php\\\/en\\\/the-new-qgis-2-12-tagging-engine\\\/#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f76dc2a720162999bce81d6c99b6d7b9517d6600ad7ceb5ed5268f02cefaa0ee?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Atilio Francois\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.sigterritoires.fr\\\/index.php\\\/author\\\/admin\\\/#author\",\"url\":\"https:\\\/\\\/www.sigterritoires.fr\\\/index.php\\\/author\\\/admin\\\/\",\"name\":\"Atilio Francois\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.sigterritoires.fr\\\/index.php\\\/en\\\/the-new-qgis-2-12-tagging-engine\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f76dc2a720162999bce81d6c99b6d7b9517d6600ad7ceb5ed5268f02cefaa0ee?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Atilio Francois\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.sigterritoires.fr\\\/index.php\\\/en\\\/the-new-qgis-2-12-tagging-engine\\\/#webpage\",\"url\":\"https:\\\/\\\/www.sigterritoires.fr\\\/index.php\\\/en\\\/the-new-qgis-2-12-tagging-engine\\\/\",\"name\":\"The new QGis 2.12 tagging engine | Blog SIG & Territoires\",\"description\":\"The QGis tagging engine has been significantly enriched in version 2.12. In this article we will discuss advances: Quadrant from the data Priority from the data Control over the action of polygons as obstacles Draw labels that fit completely into a polygon Rule-based tagging Quadrant from the data For point layer labels, you could set\",\"inLanguage\":\"fr-FR\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sigterritoires.fr\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.sigterritoires.fr\\\/index.php\\\/en\\\/the-new-qgis-2-12-tagging-engine\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.sigterritoires.fr\\\/index.php\\\/author\\\/admin\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.sigterritoires.fr\\\/index.php\\\/author\\\/admin\\\/#author\"},\"datePublished\":\"2018-07-24T04:15:25+02:00\",\"dateModified\":\"2018-10-17T12:59:47+02:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.sigterritoires.fr\\\/#website\",\"url\":\"https:\\\/\\\/www.sigterritoires.fr\\\/\",\"name\":\"Blog SIG & Territoires\",\"description\":\"le portail des professionnels du SIG\",\"inLanguage\":\"fr-FR\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.sigterritoires.fr\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"The new QGis 2.12 tagging engine | Blog SIG & Territoires","description":"The QGis tagging engine has been significantly enriched in version 2.12. In this article we will discuss advances: Quadrant from the data Priority from the data Control over the action of polygons as obstacles Draw labels that fit completely into a polygon Rule-based tagging Quadrant from the data For point layer labels, you could set","canonical_url":"https:\/\/www.sigterritoires.fr\/index.php\/en\/the-new-qgis-2-12-tagging-engine\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"google-site-verification":"ByXHZUbGNn7RNv-Xk5A-ysTZrM65VLIO2RxfSJ2nIEQ","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.sigterritoires.fr\/index.php\/en\/the-new-qgis-2-12-tagging-engine\/#article","name":"The new QGis 2.12 tagging engine | Blog SIG & Territoires","headline":"The new QGis 2.12 tagging engine","author":{"@id":"https:\/\/www.sigterritoires.fr\/index.php\/author\/admin\/#author"},"publisher":{"@id":"https:\/\/www.sigterritoires.fr\/#person"},"image":{"@type":"ImageObject","url":"http:\/\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/tut1-1-300x224.png","@id":"https:\/\/www.sigterritoires.fr\/index.php\/en\/the-new-qgis-2-12-tagging-engine\/#articleImage"},"datePublished":"2018-07-24T04:15:25+02:00","dateModified":"2018-10-17T12:59:47+02:00","inLanguage":"fr-FR","mainEntityOfPage":{"@id":"https:\/\/www.sigterritoires.fr\/index.php\/en\/the-new-qgis-2-12-tagging-engine\/#webpage"},"isPartOf":{"@id":"https:\/\/www.sigterritoires.fr\/index.php\/en\/the-new-qgis-2-12-tagging-engine\/#webpage"},"articleSection":"Non class\u00e9, English"},{"@type":"BreadcrumbList","@id":"https:\/\/www.sigterritoires.fr\/index.php\/en\/the-new-qgis-2-12-tagging-engine\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.sigterritoires.fr#listItem","position":1,"name":"Home","item":"https:\/\/www.sigterritoires.fr","nextItem":{"@type":"ListItem","@id":"https:\/\/www.sigterritoires.fr\/index.php\/en\/category\/non-classe-en\/#listItem","name":"Non class\u00e9"}},{"@type":"ListItem","@id":"https:\/\/www.sigterritoires.fr\/index.php\/en\/category\/non-classe-en\/#listItem","position":2,"name":"Non class\u00e9","item":"https:\/\/www.sigterritoires.fr\/index.php\/en\/category\/non-classe-en\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.sigterritoires.fr\/index.php\/en\/the-new-qgis-2-12-tagging-engine\/#listItem","name":"The new QGis 2.12 tagging engine"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.sigterritoires.fr#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.sigterritoires.fr\/index.php\/en\/the-new-qgis-2-12-tagging-engine\/#listItem","position":3,"name":"The new QGis 2.12 tagging engine","previousItem":{"@type":"ListItem","@id":"https:\/\/www.sigterritoires.fr\/index.php\/en\/category\/non-classe-en\/#listItem","name":"Non class\u00e9"}}]},{"@type":"Person","@id":"https:\/\/www.sigterritoires.fr\/#person","name":"Atilio Francois","image":{"@type":"ImageObject","@id":"https:\/\/www.sigterritoires.fr\/index.php\/en\/the-new-qgis-2-12-tagging-engine\/#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/f76dc2a720162999bce81d6c99b6d7b9517d6600ad7ceb5ed5268f02cefaa0ee?s=96&d=mm&r=g","width":96,"height":96,"caption":"Atilio Francois"}},{"@type":"Person","@id":"https:\/\/www.sigterritoires.fr\/index.php\/author\/admin\/#author","url":"https:\/\/www.sigterritoires.fr\/index.php\/author\/admin\/","name":"Atilio Francois","image":{"@type":"ImageObject","@id":"https:\/\/www.sigterritoires.fr\/index.php\/en\/the-new-qgis-2-12-tagging-engine\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/f76dc2a720162999bce81d6c99b6d7b9517d6600ad7ceb5ed5268f02cefaa0ee?s=96&d=mm&r=g","width":96,"height":96,"caption":"Atilio Francois"}},{"@type":"WebPage","@id":"https:\/\/www.sigterritoires.fr\/index.php\/en\/the-new-qgis-2-12-tagging-engine\/#webpage","url":"https:\/\/www.sigterritoires.fr\/index.php\/en\/the-new-qgis-2-12-tagging-engine\/","name":"The new QGis 2.12 tagging engine | Blog SIG & Territoires","description":"The QGis tagging engine has been significantly enriched in version 2.12. In this article we will discuss advances: Quadrant from the data Priority from the data Control over the action of polygons as obstacles Draw labels that fit completely into a polygon Rule-based tagging Quadrant from the data For point layer labels, you could set","inLanguage":"fr-FR","isPartOf":{"@id":"https:\/\/www.sigterritoires.fr\/#website"},"breadcrumb":{"@id":"https:\/\/www.sigterritoires.fr\/index.php\/en\/the-new-qgis-2-12-tagging-engine\/#breadcrumblist"},"author":{"@id":"https:\/\/www.sigterritoires.fr\/index.php\/author\/admin\/#author"},"creator":{"@id":"https:\/\/www.sigterritoires.fr\/index.php\/author\/admin\/#author"},"datePublished":"2018-07-24T04:15:25+02:00","dateModified":"2018-10-17T12:59:47+02:00"},{"@type":"WebSite","@id":"https:\/\/www.sigterritoires.fr\/#website","url":"https:\/\/www.sigterritoires.fr\/","name":"Blog SIG & Territoires","description":"le portail des professionnels du SIG","inLanguage":"fr-FR","publisher":{"@id":"https:\/\/www.sigterritoires.fr\/#person"}}]},"og:locale":"fr_FR","og:site_name":"Blog SIG &amp; Territoires | le portail des professionnels du SIG","og:type":"article","og:title":"The new QGis 2.12 tagging engine | Blog SIG &amp; Territoires","og:description":"The QGis tagging engine has been significantly enriched in version 2.12. In this article we will discuss advances: Quadrant from the data Priority from the data Control over the action of polygons as obstacles Draw labels that fit completely into a polygon Rule-based tagging Quadrant from the data For point layer labels, you could set","og:url":"https:\/\/www.sigterritoires.fr\/index.php\/en\/the-new-qgis-2-12-tagging-engine\/","article:published_time":"2018-07-24T02:15:25+00:00","article:modified_time":"2018-10-17T10:59:47+00:00","article:publisher":"https:\/\/www.facebook.com\/atilio.francois\/","twitter:card":"summary","twitter:site":"@SigTerritoires","twitter:title":"The new QGis 2.12 tagging engine | Blog SIG &amp; Territoires","twitter:description":"The QGis tagging engine has been significantly enriched in version 2.12. In this article we will discuss advances: Quadrant from the data Priority from the data Control over the action of polygons as obstacles Draw labels that fit completely into a polygon Rule-based tagging Quadrant from the data For point layer labels, you could set","twitter:creator":"@SigTerritoires"},"aioseo_meta_data":{"post_id":"5753","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2020-12-21 13:58:27","updated":"2025-06-04 16:36:54","seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.sigterritoires.fr\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/category\/non-classe-en\/\" title=\"Non class\u00e9\">Non class\u00e9<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tThe new QGis 2.12 tagging engine\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.sigterritoires.fr"},{"label":"Non class\u00e9","link":"https:\/\/www.sigterritoires.fr\/index.php\/en\/category\/non-classe-en\/"},{"label":"The new QGis 2.12 tagging engine","link":"https:\/\/www.sigterritoires.fr\/index.php\/en\/the-new-qgis-2-12-tagging-engine\/"}],"jetpack_shortlink":"https:\/\/wp.me\/p6XU0A-1uN","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/posts\/5753","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=5753"}],"version-history":[{"count":0,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/posts\/5753\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/media?parent=5753"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/categories?post=5753"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/tags?post=5753"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}