Revision 20598 trunk/libraries/libDataSourceBaseDrivers/src/org/gvsig/data/datastores/vectorial/file/shp/SHPStore.java
SHPStore.java | ||
---|---|---|
181 | 181 |
|
182 | 182 |
public IFeature getFeatureByID(IFeatureID id) throws ReadException { |
183 | 183 |
if (this.alterMode){ |
184 |
if (featureManager.contains(id)) { |
|
185 |
try { |
|
186 |
return featureManager.getFeature(id,this); |
|
187 |
} catch (IsNotFeatureSettingException e) { |
|
188 |
throw new ReadException(this.getName(),e); |
|
189 |
} |
|
190 |
} |
|
184 |
if (featureManager.contains(id)) { |
|
185 |
return featureManager.getFeature(id,this); |
|
186 |
} |
|
191 | 187 |
} |
192 | 188 |
long position=((ShpFeatureID)id).getIndex(); |
193 | 189 |
ShpFeature feature=new ShpFeature(getDefaultFeatureType(),this,position); |
Also available in: Unified diff