/// <summary> /// Retrieves a subset using exclusively the features matching the specified values. /// </summary> /// <param name="indices"> /// An integer list of indices to copy into the new FeatureSet. /// </param> /// <returns> /// A FeatureSet with the new items. /// </returns> public FeatureSet CopySubset(List<int> indices) { List<IFeature> f = new List<IFeature>(); foreach (int row in indices) { f.Add(GetFeature(row)); } FeatureSet copy = new FeatureSet(f); copy.Projection = Projection.Copy(); copy.InvalidateEnvelope(); // the new set will likely have a different envelope bounds return copy; }