Revision 20414 trunk/libraries/libDataSourceBaseDrivers/src/org/gvsig/data/datastores/vectorial/file/shp/ShpFeature.java
ShpFeature.java | ||
---|---|---|
3 | 3 |
import java.text.DateFormat; |
4 | 4 |
import java.text.ParseException; |
5 | 5 |
import java.util.Date; |
6 |
import java.util.Iterator; |
|
6 | 7 |
import java.util.List; |
7 | 8 |
import java.util.Locale; |
8 | 9 |
|
... | ... | |
14 | 15 |
import org.gvsig.data.vectorial.IFeatureAttributeDescriptor; |
15 | 16 |
import org.gvsig.data.vectorial.IFeatureID; |
16 | 17 |
import org.gvsig.data.vectorial.IFeatureType; |
18 |
import org.gvsig.data.vectorial.IsNotFeatureSettingException; |
|
17 | 19 |
|
18 | 20 |
import com.iver.cit.gvsig.fmap.core.IGeometry; |
19 | 21 |
|
... | ... | |
30 | 32 |
} |
31 | 33 |
|
32 | 34 |
|
33 |
void load(DbaseFile dbf,IGeometry geometry) throws ReadException{ |
|
34 |
for (int i=0;i<featureType.size();i++) { |
|
35 |
IFeatureAttributeDescriptor descriptor= (IFeatureAttributeDescriptor)featureType.get(i); |
|
35 |
void load(DbaseFile dbf,IGeometry geometry) throws ReadException, IsNotFeatureSettingException{ |
|
36 |
Iterator iterator=featureType.iterator(); |
|
37 |
this.loading(); |
|
38 |
while (iterator.hasNext()) { |
|
39 |
IFeatureAttributeDescriptor descriptor = (IFeatureAttributeDescriptor) iterator.next(); |
|
40 |
int i=descriptor.ordinal(); |
|
36 | 41 |
String fieldType=descriptor.getDataType(); |
37 | 42 |
if (fieldType.equals(IFeatureAttributeDescriptor.TYPE_GEOMETRY)){ |
38 | 43 |
this.setGeometry(i,geometry); |
... | ... | |
83 | 88 |
this.set(i,null); |
84 | 89 |
} |
85 | 90 |
} |
86 |
|
|
91 |
this.stopLoading(); |
|
87 | 92 |
} |
88 | 93 |
|
89 | 94 |
|
Also available in: Unified diff