use of mil.nga.giat.geowave.adapter.vector.plugin.GeoWavePluginException in project incubator-rya by apache.
the class GeoWaveGeoIndexer method initInternal.
private void initInternal() throws IOException {
validPredicates = ConfigUtils.getGeoPredicates(conf);
try {
geoToolsDataStore = createDataStore(conf);
geoWaveDataStore = ((GeoWaveGTDataStore) geoToolsDataStore).getDataStore();
} catch (final GeoWavePluginException e) {
logger.error("Failed to create GeoWave data store", e);
}
try {
featureType = getStatementFeatureType(geoToolsDataStore);
} catch (final IOException | SchemaException e) {
throw new IOException(e);
}
featureDataAdapter = new FeatureDataAdapter(featureType);
featureSource = geoToolsDataStore.getFeatureSource(featureType.getName());
if (!(featureSource instanceof FeatureStore)) {
throw new IllegalStateException("Could not retrieve feature store");
}
featureStore = (FeatureStore<SimpleFeatureType, SimpleFeature>) featureSource;
}
Aggregations