Trying to import an svg into a label using python expression

2340
0
09-04-2015 01:45 AM
CyrilSauvenay
New Contributor

Hi

I am trying to import a image file (svg) into a label using the labelling python expression.

I tried something like that:

def FindLabel ( [Ligne_Code],  [Ligne_ID] 😞

code =  [Ligne_Code]

ID = [Ligne_ID]

if ID == "73":

      return "D:\ligne_11.svg"

else:

      return ID

I am a newbie in ArcGis (using Qgis ordinary) and in Python, so maybe I did everything wrong,

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?

Thanks a lot.

Cyril

0 Kudos
0 Replies