/// <summary> /// Write the given GeoJSON it to the given file. /// </summary> /// <param name="GeoJSONTask">A GeoJSON task.</param> /// <param name="FilenameBuilder">A file name.</param> public static Task <IEnumerable <JObject> > ToGeoJSONFileAsync(this Task <IEnumerable <JObject> > GeoJSONTask, Func <JObject, String> FilenameBuilder) { return(GeoJSONTask.ContinueWith(GeoJSONTasks => GeoJSONTasks.Result.Select(GeoJSON => GeoJSON.ToFile(FilenameBuilder)))); }