public static SimpleFeatureCollection createFeatureCollection ( SimpleFeature ... features ) { DefaultFeatureCollection fcollection = new DefaultFeatureCollection ( ) ; for ( SimpleFeature feature : features ) { fcollection . add ( feature ) ; } return fcollection ; }
Create a featurecollection from a vector of features