Revision 22037 branches/Mobile_Compatible_Hito_1/libFMap_mobile_shp_driver/src-file/org/gvsig/data/datastores/vectorial/file/shp_mem/MemSHPStore.java
MemSHPStore.java | ||
---|---|---|
38 | 38 |
import org.opengis.filter.Filter; |
39 | 39 |
import org.opengis.filter.sort.SortBy; |
40 | 40 |
|
41 |
|
|
42 |
/** |
|
43 |
* This class extends the AbstractFeatureStore class and implements its |
|
44 |
* functionality using the Mem SHP drivers. |
|
45 |
* |
|
46 |
* @see org.gvsig.data.datastores.vectorial.file.shp_mem.simplify.MemoryShpDriver |
|
47 |
* @see org.gvsig.data.datastores.vectorial.file.shp_mem.simplify.DbfMemoryDataSource |
|
48 |
|
|
49 |
* @author jldominguez |
|
50 |
* |
|
51 |
*/ |
|
41 | 52 |
public class MemSHPStore extends AbstractFeatureStore implements |
42 | 53 |
IGeometricDataStore { |
43 | 54 |
|
... | ... | |
155 | 166 |
|
156 | 167 |
public void doOpen() throws OpenException { |
157 | 168 |
try { |
169 |
dbf_drv.start(); |
|
170 |
long cnt = dbf_drv.getRowCount(); |
|
158 | 171 |
shp_drv.open(shp_file); |
159 |
shp_drv.initialize(); |
|
172 |
shp_drv.initialize(cnt);
|
|
160 | 173 |
extent = new Extent(shp_drv.getFullExtent()); |
161 |
dbf_drv.start(); |
|
162 | 174 |
for (int i = 0; i < dbf_drv.getFieldCount(); i++) { |
163 | 175 |
featureType.add(createFeatureAttribute(dbf_drv, i, (DefaultFeatureType) featureType)); |
164 | 176 |
} |
Also available in: Unified diff