01: package org.geotools.data.ogr;
02:
03: import org.geotools.data.AbstractFeatureSource;
04: import org.geotools.data.DataStore;
05: import org.geotools.data.FeatureListener;
06: import org.geotools.feature.FeatureType;
07:
08: public class OGRFeatureSource extends AbstractFeatureSource {
09:
10: private OGRDataStore store;
11: private FeatureType schema;
12:
13: public OGRFeatureSource(OGRDataStore store, FeatureType schema) {
14: this .store = store;
15: this .schema = schema;
16: }
17:
18: public void addFeatureListener(FeatureListener listener) {
19: store.listenerManager.addFeatureListener(this , listener);
20:
21: }
22:
23: public DataStore getDataStore() {
24: return store;
25: }
26:
27: public FeatureType getSchema() {
28: return schema;
29: }
30:
31: public void removeFeatureListener(FeatureListener listener) {
32: store.listenerManager.removeFeatureListener(this, listener);
33: }
34:
35: }
|