<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Trying to import an svg into a label using python expression in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/trying-to-import-an-svg-into-a-label-using-python/m-p/654113#M50933</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am trying to import a image file (svg) into a label using the labelling python expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried something like that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;def FindLabel ( [Ligne_Code],&amp;nbsp; [Ligne_ID] &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt; code =&amp;nbsp; [Ligne_Code]&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt; ID = [Ligne_ID]&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt; if ID == "73":&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return "D:\ligne_11.svg"&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt; else:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return ID&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;I am a newbie in ArcGis (using Qgis ordinary) and in Python, so maybe I did everything wrong,&lt;/P&gt;&lt;P&gt;But before all, I would like to know if it is possible to import an image file into a label. If not, does someone know a solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cyril&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Sep 2015 08:45:13 GMT</pubDate>
    <dc:creator>CyrilSauvenay</dc:creator>
    <dc:date>2015-09-04T08:45:13Z</dc:date>
    <item>
      <title>Trying to import an svg into a label using python expression</title>
      <link>https://community.esri.com/t5/python-questions/trying-to-import-an-svg-into-a-label-using-python/m-p/654113#M50933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am trying to import a image file (svg) into a label using the labelling python expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried something like that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;def FindLabel ( [Ligne_Code],&amp;nbsp; [Ligne_ID] &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt; code =&amp;nbsp; [Ligne_Code]&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt; ID = [Ligne_ID]&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt; if ID == "73":&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return "D:\ligne_11.svg"&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt; else:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return ID&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;I am a newbie in ArcGis (using Qgis ordinary) and in Python, so maybe I did everything wrong,&lt;/P&gt;&lt;P&gt;But before all, I would like to know if it is possible to import an image file into a label. If not, does someone know a solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cyril&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2015 08:45:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/trying-to-import-an-svg-into-a-label-using-python/m-p/654113#M50933</guid>
      <dc:creator>CyrilSauvenay</dc:creator>
      <dc:date>2015-09-04T08:45:13Z</dc:date>
    </item>
  </channel>
</rss>

