Revision 26220 branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/impl/DefaultFeature.java
DefaultFeature.java | ||
---|---|---|
133 | 133 |
} |
134 | 134 |
|
135 | 135 |
public void initializeValues(Feature feature) { |
136 |
FeatureType type = this.getType(); |
|
136 |
FeatureType myType=this.getType(); |
|
137 |
FeatureType type =feature.getType(); |
|
137 | 138 |
Iterator iterator = type.iterator(); |
138 | 139 |
|
139 | 140 |
while (iterator.hasNext()) { |
140 | 141 |
FeatureAttributeDescriptor attribute = (FeatureAttributeDescriptor) iterator |
141 | 142 |
.next(); |
142 |
this.set(attribute, feature.get(attribute.getName())); |
|
143 |
FeatureAttributeDescriptor myAttribute=myType.getAttributeDescriptor(attribute.getName()); |
|
144 |
if (myAttribute != null) |
|
145 |
this.set(myAttribute, feature.get(attribute.getIndex())); |
|
143 | 146 |
} |
144 | 147 |
} |
145 | 148 |
|
Also available in: Unified diff