Interface IFeatureSource
Represents an FDO feature source
Inherited Members
Namespace: OSGeo.MapGuide.ObjectModels.FeatureSource
Assembly: OSGeo.MapGuide.ObjectModels.dll
Syntax
public interface IFeatureSource : IResource, IVersionedEntity, ICloneable, INotifyPropertyChanged
Properties
| Improve this Doc View SourceConfigurationDocument
Gets or sets the name of the configuration document.
Declaration
string ConfigurationDocument { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | The name of the configuration document. |
ConnectionPropertyNames
Gets an array of names of the currently specified connection properties
Declaration
string[] ConnectionPropertyNames { get; }
Property Value
| Type | Description |
|---|---|
| System.String[] |
ConnectionString
Gets the connection string.
Declaration
string ConnectionString { get; }
Property Value
| Type | Description |
|---|---|
| System.String | The connection string. |
Extension
Gets the extensions for this feature source.
Declaration
IEnumerable<IFeatureSourceExtension> Extension { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<IFeatureSourceExtension> | The extensions. |
Provider
Gets or sets the FDO provider.
Declaration
string Provider { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | The FDO provider. |
SupplementalSpatialContextInfo
Gets the supplemental spatial context info (coordinate system overrides).
Declaration
IEnumerable<ISpatialContextInfo> SupplementalSpatialContextInfo { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<ISpatialContextInfo> | The supplemental spatial context info. |
UsesAliasedDataFiles
Gets a value indicating whether [uses aliased data files].
Declaration
bool UsesAliasedDataFiles { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
UsesEmbeddedDataFiles
Gets a value indicating whether [uses embedded data files].
Declaration
bool UsesEmbeddedDataFiles { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
Methods
| Improve this Doc View SourceAddExtension(IFeatureSourceExtension)
Adds the extension.
Declaration
void AddExtension(IFeatureSourceExtension ext)
Parameters
| Type | Name | Description |
|---|---|---|
| IFeatureSourceExtension | ext | The ext. |
AddSpatialContextOverride(ISpatialContextInfo)
Adds the spatial context override.
Declaration
void AddSpatialContextOverride(ISpatialContextInfo sc)
Parameters
| Type | Name | Description |
|---|---|---|
| ISpatialContextInfo | sc | The sc. |
ClearConnectionProperties()
Removes all specified connection properties
Declaration
void ClearConnectionProperties()
GetAliasedFileName()
Gets the name of the aliased file. Can only be called if UsesAliasedDataFiles returns true. An empty string is returned if it is a directory (ie. no file name was found)
Declaration
string GetAliasedFileName()
Returns
| Type | Description |
|---|---|
| System.String |
Exceptions
| Type | Condition |
|---|---|
| System.InvalidOperationException | If UsesAliasedDataFiles is false |
GetAliasName()
Gets the name of the alias. Can only be called if UsesAliasedDataFiles returns true
Declaration
string GetAliasName()
Returns
| Type | Description |
|---|---|
| System.String |
Exceptions
| Type | Condition |
|---|---|
| System.InvalidOperationException | If UsesAliasedDataFiles is false |
GetConnectionProperty(String)
Gets the connection property.
Declaration
string GetConnectionProperty(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The name. |
Returns
| Type | Description |
|---|---|
| System.String |
GetEmbeddedDataName()
Gets the name of the embedded data resource. Can only be called if UsesEmbeddedDataFiles returns true.
Declaration
string GetEmbeddedDataName()
Returns
| Type | Description |
|---|---|
| System.String |
Exceptions
| Type | Condition |
|---|---|
| System.InvalidOperationException | If UsesEmbeddedDataFiles is false |
RemoveExtension(IFeatureSourceExtension)
Removes the extension.
Declaration
void RemoveExtension(IFeatureSourceExtension ext)
Parameters
| Type | Name | Description |
|---|---|---|
| IFeatureSourceExtension | ext | The ext. |
RemoveSpatialContextOverride(ISpatialContextInfo)
Removes the spatial context override.
Declaration
void RemoveSpatialContextOverride(ISpatialContextInfo sc)
Parameters
| Type | Name | Description |
|---|---|---|
| ISpatialContextInfo | sc | The sc. |
SetConnectionProperty(String, String)
Sets the connection property.
Declaration
void SetConnectionProperty(string name, string value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The name. |
| System.String | value | The value. If null, the matching parameter is removed from the feature source |