﻿{"id":8847,"date":"2019-05-31T02:41:59","date_gmt":"2019-05-31T00:41:59","guid":{"rendered":"http:\/\/www.sigterritoires.fr\/?p=8847"},"modified":"2019-05-31T09:00:50","modified_gmt":"2019-05-31T07:00:50","slug":"how-to-make-an-svg-symbol-editable-color-stroke-in-qgis","status":"publish","type":"post","link":"https:\/\/www.sigterritoires.fr\/index.php\/en\/how-to-make-an-svg-symbol-editable-color-stroke-in-qgis\/","title":{"rendered":"How to make an svg symbol editable ( color , stroke ) in QGis"},"content":{"rendered":"\n<p>If you import or\ncreate\nsvg symbols to use &nbsp;them in QGis you\nwill\nnotice\nthat the color options as well as the outline of\nthese symbols are disabled\nin\nQGis. In fact , these settings\nare\ncoded\nin\nhard\nin\nthe svg file and , if you want\nto\nmake them available , you are forced\nto\ncreate\nas\nmany symbols as colors desired . <\/p>\n\n\n\n<!--more-->\n\n\n\n<p>Here is a little tip that will\nsave\nyou time by creating only one symbol\nand activating the color controls and contour in QGis for this symbole.\nLet\u2019s take the following symbol as an example<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"552\" data-attachment-id=\"8848\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/how-to-make-an-svg-symbol-editable-color-stroke-in-qgis\/311-3\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/05\/311.png?fit=1024%2C552&amp;ssl=1\" data-orig-size=\"1024,552\" 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=\"311\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/05\/311.png?fit=640%2C345&amp;ssl=1\" src=\"https:\/\/i1.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/05\/311.png?fit=525%2C283&amp;ssl=1\" alt=\"\" class=\"wp-image-8848\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/05\/311.png?w=1024&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/05\/311.png?resize=300%2C162&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/05\/311.png?resize=768%2C414&amp;ssl=1 768w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/figure>\n\n\n\n<p>The color and border change block is\ninactive\n. The color of the arrows is\nblack because such is the definition\ncontained\nin\nthe svg file . <\/p>\n\n\n\n<p>We will edit simply\nthe svg file to change this state of affairs.\nThe change is very simple , you can\nuse any text editor. \n\nOpen the file : \n\n\n\n<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"283\" data-attachment-id=\"8849\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/how-to-make-an-svg-symbol-editable-color-stroke-in-qgis\/312-3\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/05\/312.png?fit=1024%2C283&amp;ssl=1\" data-orig-size=\"1024,283\" 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=\"312\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/05\/312.png?fit=640%2C177&amp;ssl=1\" src=\"https:\/\/i1.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/05\/312.png?fit=525%2C145&amp;ssl=1\" alt=\"\" class=\"wp-image-8849\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/05\/312.png?w=1024&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/05\/312.png?resize=300%2C83&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/05\/312.png?resize=768%2C212&amp;ssl=1 768w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/figure>\n\n\n\n<p>After the header lines, you find\nthe tag <strong><em>&lt;path<\/em><\/strong>\nand\nthe beginning of the definition of the symbol <strong><em>d\n=<\/em><\/strong> <\/p>\n\n\n\n<p>Between the two, you can find\nsettings such as <strong><em>style = \u00ab\u00a0fill<\/em><\/strong> <strong><em>: #<\/em><\/strong>\n<strong><em>000000&Prime;<\/em><\/strong> or others\n. <\/p>\n\n\n\n<p>The trick is to replace all that is\nbetween &lt;path and the text = following <\/p>\n\n\n\n<p><strong><em>fill<\/em><\/strong> <strong><em>= \u00ab\u00a0<\/em><\/strong> <strong><em>param<\/em><\/strong>\n<strong><em>(fill) #FFF\u00a0\u00bb stroke = \u00ab\u00a0<\/em><\/strong> <strong><em>param<\/em><\/strong> <strong><em>(outline)\n# 000&Prime; stroke-width = \u00ab\u00a0<\/em><\/strong> <strong><em>param<\/em><\/strong> <strong><em>(outline-width)\n1&Prime;<\/em><\/strong> \n\nAs we see in the following\nimage: \n\n\n\n<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"271\" data-attachment-id=\"8850\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/how-to-make-an-svg-symbol-editable-color-stroke-in-qgis\/313-3\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/05\/313.png?fit=1024%2C271&amp;ssl=1\" data-orig-size=\"1024,271\" 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=\"313\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/05\/313.png?fit=640%2C169&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/05\/313.png?fit=525%2C139&amp;ssl=1\" alt=\"\" class=\"wp-image-8850\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/05\/313.png?w=1024&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/05\/313.png?resize=300%2C79&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/05\/313.png?resize=768%2C203&amp;ssl=1 768w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/figure>\n\n\n\n<p>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nIf\nyou use\nthis\nnew file for your style layer , you will\nsee that the options that were inactive are\nnow\navailable\n: \n\n\n\n<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"563\" data-attachment-id=\"8851\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/how-to-make-an-svg-symbol-editable-color-stroke-in-qgis\/314-3\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/05\/314.png?fit=1024%2C563&amp;ssl=1\" data-orig-size=\"1024,563\" 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=\"314\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/05\/314.png?fit=640%2C352&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/05\/314.png?fit=525%2C289&amp;ssl=1\" alt=\"\" class=\"wp-image-8851\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/05\/314.png?w=1024&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/05\/314.png?resize=300%2C165&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/05\/314.png?resize=768%2C422&amp;ssl=1 768w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/figure>\n\n\n\n<p>The symbol\nis\nnow\nwhite by default with black outlines but you can\nmodify them, as well as the thicknesses : &nbsp;\n\n\n\n<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"151\" data-attachment-id=\"8852\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/how-to-make-an-svg-symbol-editable-color-stroke-in-qgis\/315-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/05\/315.png?fit=934%2C221&amp;ssl=1\" data-orig-size=\"934,221\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"315\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/05\/315.png?fit=640%2C151&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/05\/315.png?resize=640%2C151&#038;ssl=1\" alt=\"\" class=\"wp-image-8852\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/05\/315.png?w=934&amp;ssl=1 934w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/05\/315.png?resize=300%2C71&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/05\/315.png?resize=768%2C182&amp;ssl=1 768w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>If you import or create svg symbols to use &nbsp;them in QGis you will notice that the color options as well as the outline of these symbols are disabled in QGis. In fact , these settings&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"give_campaign_id":0,"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"sfsi_plus_gutenberg_text_before_share":"","sfsi_plus_gutenberg_show_text_before_share":"","sfsi_plus_gutenberg_icon_type":"","sfsi_plus_gutenberg_icon_alignemt":"","sfsi_plus_gutenburg_max_per_row":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[1260],"tags":[],"class_list":["post-8847","post","type-post","status-publish","format-standard","hentry","category-non-classe-en"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p6XU0A-2iH","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/posts\/8847","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=8847"}],"version-history":[{"count":0,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/posts\/8847\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/media?parent=8847"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/categories?post=8847"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/tags?post=8847"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}