Please note that this is a simple example and all the features must be of the same FeatureType.
This class is used by {@link DataUtilities#source(SimpleFeature[])}. @author Jody Garnett @since 8.0 @source $URL$ @version 8.0
107010711072107310741075107610771078107910801081108210831084
featureType = FeatureTypes.EMPTY; } else { featureType = featureArray[0].getFeatureType(); } DataStore arrayStore = new ArrayDataStore(featureArray); String typeName = featureType.getTypeName(); try { return arrayStore.getFeatureSource(typeName); } catch (IOException e) { throw new IllegalStateException("Unable to find "+typeName+" ArrayDataStore in an inconsistent" + "state", e); } }