Index: src/Common/SharpMap.Api/IFeatureProvider.cs =================================================================== diff -u -r0153333b695581ca406c286a27467bc30d7aa5f8 -r5fc71a385897af92ccb092f2f969b5709afab85a --- src/Common/SharpMap.Api/IFeatureProvider.cs (.../IFeatureProvider.cs) (revision 0153333b695581ca406c286a27467bc30d7aa5f8) +++ src/Common/SharpMap.Api/IFeatureProvider.cs (.../IFeatureProvider.cs) (revision 5fc71a385897af92ccb092f2f969b5709afab85a) @@ -23,14 +23,15 @@ namespace SharpMap.Api { - - - /// - /// Interface for data providers + /// + /// Interface for data providers /// TODO: move all editing-related properties / functions into a separate interface, IFeatureInteractor, IFeatureCollection? /// public interface IFeatureProvider : IDisposable - { + { + event EventHandler FeaturesChanged; + event EventHandler CoordinateSystemChanged; + /// /// Type of the features provided. /// @@ -40,41 +41,48 @@ bool IsReadOnly { get; } + [Obsolete("Create features somewhere else (e.g. in IFeatureEditor and add them to the repository")] + Func AddNewFeatureFromGeometryDelegate { get; set; } + /// + /// The spatial reference system code (WKT). + /// + string SrsWkt { get; set; } + + /// + /// Gets or sets the coordinate system. + /// + ICoordinateSystem CoordinateSystem { get; set; } + + /// /// Adds a new feature to the feature storage using geometry. /// /// [Obsolete("Create features somewhere else (e.g. in IFeatureEditor and add them to the repository")] - IFeature Add(IGeometry geometry); + IFeature Add(IGeometry geometry); - [Obsolete("Create features somewhere else (e.g. in IFeatureEditor and add them to the repository")] - Func AddNewFeatureFromGeometryDelegate { get; set; } + /// + /// Returns the number of features in the dataset + /// + /// number of features + int GetFeatureCount(); - event EventHandler FeaturesChanged; - event EventHandler CoordinateSystemChanged; + /// + /// Returns the geometry corresponding to the Object ID + /// + /// Object ID + /// geometry + IGeometry GetGeometryByID(int oid); - /// - /// Returns the number of features in the dataset - /// - /// number of features - int GetFeatureCount(); - - /// - /// Returns the geometry corresponding to the Object ID - /// - /// Object ID - /// geometry - IGeometry GetGeometryByID(int oid); - - /// - /// Returns a based on a RowID - /// - /// - /// - /// datarow + /// + /// Returns a based on a RowID + /// + /// + /// + /// datarow IFeature GetFeature(int index); - /// + /// /// Returns true if feature belongs to provider. /// /// @@ -88,22 +96,12 @@ /// int IndexOf(IFeature feature); - /// - /// of dataset - /// - /// boundingbox - IEnvelope GetExtents(); - - /// - /// The spatial reference system code (WKT). - /// - string SrsWkt { get; set;} - /// - /// Gets or sets the coordinate system. + /// of dataset /// - ICoordinateSystem CoordinateSystem { get; set; } + /// boundingbox + IEnvelope GetExtents(); - IEnvelope GetBounds(int recordIndex); - } -} + IEnvelope GetBounds(int recordIndex); + } +} \ No newline at end of file