85 |
lc = layer.GetClassification() |
lc = layer.GetClassification() |
86 |
field = lc.GetField() |
field = lc.GetField() |
87 |
|
|
|
defaultProps = lc.GetDefaultGroup().GetProperties() |
|
|
|
|
88 |
for i in self.layer_ids(layer): |
for i in self.layer_ids(layer): |
89 |
value = None |
value = None |
90 |
|
|
103 |
# |
# |
104 |
|
|
105 |
group = lc.FindGroup(value) |
group = lc.FindGroup(value) |
|
if not group.IsVisible(): |
|
|
continue |
|
106 |
|
|
107 |
#prop = lc.GetProperties(value) |
#prop = lc.GetProperties(value) |
|
prop = group.GetProperties() |
|
108 |
else: |
else: |
109 |
prop = defaultProps |
group = lc.GetDefaultGroup() |
110 |
|
|
111 |
|
prop = group.GetProperties() |
112 |
|
|
113 |
|
if not group.IsVisible(): |
114 |
|
continue |
115 |
|
|
116 |
# don't recreate new objects if they are the same as before |
# don't recreate new objects if they are the same as before |
117 |
if prop != old_prop: |
if prop != old_prop: |