Revision 20660 trunk/libraries/libFMap_dataFile/src/org/gvsig/data/datastores/vectorial/file/shp/ShpFeature.java
ShpFeature.java | ||
---|---|---|
26 | 26 |
|
27 | 27 |
public class ShpFeature extends DBFFeature{ |
28 | 28 |
protected static Locale ukLocale = new Locale("en", "UK"); |
29 |
protected IExtent extent=null; |
|
29 | 30 |
// private SHPStore store; |
30 | 31 |
// private long featureIndex; |
31 | 32 |
|
... | ... | |
39 | 40 |
|
40 | 41 |
|
41 | 42 |
|
43 |
|
|
44 |
/* (non-Javadoc) |
|
45 |
* @see org.gvsig.data.datastores.vectorial.file.dbf.DBFFeature#load() |
|
46 |
*/ |
|
47 |
protected void load() throws ReadException { |
|
48 |
// TODO Auto-generated method stub |
|
49 |
super.load(); |
|
50 |
this.extent= ((SHPStore)store).getBoundingBox(featureIndex); |
|
51 |
} |
|
52 |
|
|
53 |
|
|
54 |
|
|
55 |
|
|
42 | 56 |
protected void loadValue(IFeatureAttributeDescriptor descriptor) throws ReadException, IsNotFeatureSettingException { |
43 | 57 |
if (descriptor.getDataType().equals(IFeatureAttributeDescriptor.TYPE_GEOMETRY)){ |
44 | 58 |
this.setGeometry(((AttributeDescriptor)descriptor).originalPosition(), ((SHPStore)store).getGeometry(featureIndex) ); |
... | ... | |
53 | 67 |
return new ShpFeatureID((SHPStore)this.store,featureIndex); |
54 | 68 |
} |
55 | 69 |
|
56 |
public IExtent getExtent() {
|
|
57 |
return ((SHPStore)store).getBoundingBox(featureIndex);
|
|
70 |
public IExtent getExtent(){ |
|
71 |
return this.extent;
|
|
58 | 72 |
} |
59 | 73 |
|
60 | 74 |
public List getAllSRS() { |
Also available in: Unified diff