/// <summary> /// Returns features within the specified bounding box /// </summary> /// <param name="bbox"></param> /// <returns></returns> public virtual ICollection <IFeature> GetFeaturesInView(IEnvelope bbox) { ICollection <IGeometry> visibleGeometries = GetGeometriesInView(bbox, -1); if (visibleGeometries.Count > 0) { Collection <IFeature> features = new Collection <IFeature>(); foreach (IGeometry geometry in visibleGeometries) { WrapperFeature wrapperFeature = new WrapperFeature(geometry); features.Add(wrapperFeature); //FeatureDataRow row = attributesTable.NewRow(); //row.Geometry = geometry; } return(features); } return(null); }
/// <summary> /// Returns features within the specified bounding box /// </summary> /// <param name="bbox"></param> /// <returns></returns> public virtual ICollection<IFeature> GetFeaturesInView(IEnvelope bbox) { ICollection<IGeometry> visibleGeometries = GetGeometriesInView(bbox, -1); if (visibleGeometries.Count > 0) { Collection<IFeature> features = new Collection<IFeature>(); foreach (IGeometry geometry in visibleGeometries) { WrapperFeature wrapperFeature = new WrapperFeature(geometry); features.Add(wrapperFeature); //FeatureDataRow row = attributesTable.NewRow(); //row.Geometry = geometry; } return features; } return null; }