381 |
def start_clpoint(self, name, qname, attrs): |
def start_clpoint(self, name, qname, attrs): |
382 |
attrib_value = attrs.get((None, 'value'), "0") |
attrib_value = attrs.get((None, 'value'), "0") |
383 |
|
|
384 |
value = self.conv(attrib_value) |
if self.aLayer.GetClassification().GetFieldType() == FIELDTYPE_STRING: |
385 |
|
value = self.encode(attrib_value) |
386 |
|
else: |
387 |
|
value = self.conv(attrib_value) |
388 |
self.cl_group = ClassGroupSingleton(value) |
self.cl_group = ClassGroupSingleton(value) |
389 |
self.cl_group.SetLabel(self.encode(attrs.get((None, 'label'), ""))) |
self.cl_group.SetLabel(self.encode(attrs.get((None, 'label'), ""))) |
390 |
self.cl_prop = ClassGroupProperties() |
self.cl_prop = ClassGroupProperties() |