Revision 20414 trunk/libraries/libDataSourceBaseDrivers/src-test/org/gvsig/data/datastores/vectorial/file/dgn/DGNTest.java
DGNTest.java | ||
---|---|---|
18 | 18 |
import org.gvsig.data.vectorial.IFeatureAttributeDescriptor; |
19 | 19 |
import org.gvsig.data.vectorial.IFeatureCollection; |
20 | 20 |
import org.gvsig.data.vectorial.IFeatureType; |
21 |
import org.gvsig.data.vectorial.IsNotFeatureSettingException; |
|
21 | 22 |
import org.gvsig.data.vectorial.expansionadapter.FeatureManager; |
22 | 23 |
import org.gvsig.data.vectorial.expansionadapter.MemoryExpansionAdapter; |
23 | 24 |
|
... | ... | |
52 | 53 |
} catch (OpenException e) { |
53 | 54 |
// TODO Auto-generated catch block |
54 | 55 |
e.printStackTrace(); |
56 |
} catch (IsNotFeatureSettingException e) { |
|
57 |
// TODO Auto-generated catch block |
|
58 |
e.printStackTrace(); |
|
55 | 59 |
} |
56 | 60 |
|
57 | 61 |
IFeatureType ft=store.getDefaultFeatureType(); |
... | ... | |
66 | 70 |
while (iter.hasNext()) { |
67 | 71 |
IFeature feature = (IFeature)iter.next(); |
68 | 72 |
System.out.println("DGN Feature ------------------- "); |
69 |
for (int i=0;i<ft.size();i++){ |
|
70 |
|
|
71 |
IFeatureAttributeDescriptor descriptor=(IFeatureAttributeDescriptor)ft.get(i); |
|
73 |
Iterator iterator=ft.iterator(); |
|
74 |
while (iterator.hasNext()) { |
|
75 |
IFeatureAttributeDescriptor descriptor = (IFeatureAttributeDescriptor) iterator.next(); |
|
76 |
int i=descriptor.ordinal(); |
|
72 | 77 |
String type=descriptor.getDataType(); |
73 | 78 |
if (type.equals(IFeatureAttributeDescriptor.TYPE_BOOLEAN)){ |
74 | 79 |
System.out.println("Boolean ----- "+ feature.getBoolean(i)); |
Also available in: Unified diff