ArcDeveloper.GeoJSONFeatureCollection.CreateFeatureCollectionFromList C# (CSharp) Method

CreateFeatureCollectionFromList() public static method

Creates the GeoJSON feature collection from list of ArcDeveloper.REST.Core.Interfaces.IFeature.
public static CreateFeatureCollectionFromList ( List features ) : GeoJSONFeatureCollection
features List The features.
return GeoJSONFeatureCollection
        public static GeoJSONFeatureCollection CreateFeatureCollectionFromList(List<IFeature> features)
        {
            GeoJSONFeatureCollection featCollection = new GeoJSONFeatureCollection();
            foreach(IFeature feat in features)
            {
                featCollection.Features.Add(GeoJSONFeature.CreateFromIFeature(feat));
            }
             return featCollection;
        }