Example #1
0
 def add_attribute(self, attrib, value):
     if attrib == "" or value == "":
         gterror("attribute keys or values must not be empty!")
     gtlib.gt_feature_node_add_attribute(self.gn, attrib, value)
Example #2
0
 def add_attribute(self, attrib, value):
     if attrib == "" or value == "":
         gterror("attribute keys or values must not be empty!")
     gtlib.gt_feature_node_add_attribute(self.gn, str(attrib).encode("UTF-8"), str(value).encode("UTF-8"))
Example #3
0
 def add_attribute(self, attrib, value):
     if attrib == "" or value == "":
         gterror("attribute keys or values must not be empty!")
     gtlib.gt_feature_node_add_attribute(self.gn,
                                         str(attrib).encode("UTF-8"),
                                         str(value).encode("UTF-8"))
Example #4
0
 def add_attribute(self, attrib, value):
     if attrib == "" or value == "":
         gterror("attribute keys or values must not be empty!")
     gtlib.gt_feature_node_add_attribute(self.gn, attrib, value)