dsParams.put("dbtype", "app-schema");
dsParams.put("url", url.toExternalForm());
DataAccess<FeatureType, Feature> mfDataAccess = DataAccessFinder.getDataStore(dsParams);
assertNotNull(mfDataAccess);
FeatureType mappedFeatureType = mfDataAccess.getSchema(MAPPED_FEATURE);
assertNotNull(mappedFeatureType);
mfSource = (FeatureSource) mfDataAccess.getFeatureSource(MAPPED_FEATURE);
mfFeatures = (FeatureCollection) mfSource.getFeatures();
/**
* Load geologic unit data access
*/
url = FeatureChainingTest.class.getResource(schemaBase + "GeologicUnit.xml");
assertNotNull(url);
dsParams.put("url", url.toExternalForm());
DataAccess<FeatureType, Feature> guDataAccess = DataAccessFinder.getDataStore(dsParams);
assertNotNull(guDataAccess);
FeatureType guType = guDataAccess.getSchema(GEOLOGIC_UNIT);
assertNotNull(guType);
FeatureSource<FeatureType, Feature> guSource = (FeatureSource<FeatureType, Feature>) guDataAccess
.getFeatureSource(GEOLOGIC_UNIT);
guFeatures = (FeatureCollection) guSource.getFeatures();