Beispiel #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)
Beispiel #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"))
Beispiel #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"))
Beispiel #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)