Revision 20414 trunk/libraries/libDataSourceBaseDrivers/src/org/gvsig/data/datastores/vectorial/file/dgn/DGNStore.java
DGNStore.java | ||
---|---|---|
39 | 39 |
import org.gvsig.data.vectorial.IFeatureCollection; |
40 | 40 |
import org.gvsig.data.vectorial.IFeatureID; |
41 | 41 |
import org.gvsig.data.vectorial.IFeatureType; |
42 |
import org.gvsig.data.vectorial.IsNotFeatureSettingException; |
|
42 | 43 |
import org.gvsig.data.vectorial.filter.FeatureFilterParser; |
43 | 44 |
import org.gvsig.data.vectorial.order.FeatureComparator; |
44 | 45 |
import org.gvsig.exceptions.BaseException; |
... | ... | |
140 | 141 |
descriptorText.setDefaultValue(""); |
141 | 142 |
fType.add(descriptorText); |
142 | 143 |
|
143 |
|
|
144 |
|
|
145 |
|
|
146 |
|
|
147 | 144 |
DefaultAttributeDescriptor descriptorShape = new DefaultAttributeDescriptor(); |
148 | 145 |
descriptorShape.setType(IFeatureAttributeDescriptor.TYPE_GEOMETRY); |
149 | 146 |
descriptorShape.setName("GEOMETRY"); |
... | ... | |
159 | 156 |
featureType = newFeatureType(); |
160 | 157 |
} |
161 | 158 |
|
162 |
protected void doFinishEdition() throws WriteException, ReadException { |
|
159 |
protected void doFinishEdition() throws WriteException, ReadException, IsNotFeatureSettingException {
|
|
163 | 160 |
IFeaturesWriter writer = getFeaturesWriter(); |
164 | 161 |
writer.init(this); |
165 | 162 |
writer.updateFeatureType(featureType); |
... | ... | |
236 | 233 |
return coll; |
237 | 234 |
} |
238 | 235 |
|
239 |
public IFeature getFeatureByID(IFeatureID id) throws ReadException { |
|
236 |
public IFeature getFeatureByID(IFeatureID id) throws ReadException, IsNotFeatureSettingException {
|
|
240 | 237 |
if (this.alterMode){ |
241 | 238 |
if (featureManager.contains(id)) { |
242 | 239 |
return featureManager.getFeature(id); |
... | ... | |
279 | 276 |
return DATASTORE_NAME; |
280 | 277 |
} |
281 | 278 |
|
282 |
public void open() throws OpenException { |
|
279 |
public void open() throws OpenException, IsNotFeatureSettingException {
|
|
283 | 280 |
this.observable.notifyObservers( |
284 | 281 |
new FeatureStoreNotification(this,FeatureStoreNotification.BEFORE_OPEN) |
285 | 282 |
); |
... | ... | |
297 | 294 |
// Value[] cellRow = new Value[7]; |
298 | 295 |
// Value[] complexRow = new Value[7]; |
299 | 296 |
IFeature auxFeature=new DGNFeature(featureType,true); |
297 |
auxFeature.loading(); |
|
300 | 298 |
IFeature cellFeature=new DGNFeature(featureType,false); |
299 |
cellFeature.loading(); |
|
301 | 300 |
IFeature complexFeature=new DGNFeature(featureType,false); |
301 |
complexFeature.loading(); |
|
302 | 302 |
initializeFeatureType(); |
303 | 303 |
// ArrayList arrayFields = new ArrayList(); |
304 | 304 |
// arrayFields.add("ID"); |
... | ... | |
768 | 768 |
// addShape(new FPolygon2D(elementoCompuesto), auxRow); |
769 | 769 |
} |
770 | 770 |
} |
771 |
|
|
771 |
cellFeature.stopLoading(); |
|
772 |
auxFeature.stopLoading(); |
|
773 |
complexFeature.stopLoading(); |
|
772 | 774 |
defaultLegend = LegendFactory.createVectorialUniqueValueLegend(FShape.MULTI); |
773 | 775 |
defaultLegend.setClassifyingFieldNames(new String[] {"Color"} ); |
774 | 776 |
defaultLegend.setClassifyingFieldTypes(new int[]{Types.INTEGER,Types.VARCHAR,Types.INTEGER,Types.INTEGER,Types.FLOAT,Types.DOUBLE,Types.VARCHAR}); |
Also available in: Unified diff