Class FeatureSourceDescription
Class that represents a the layout of a feature source
Inheritance
Inherited Members
Namespace: OSGeo.MapGuide.MaestroAPI.Schema
Assembly: OSGeo.MapGuide.MaestroAPI.dll
Syntax
public class FeatureSourceDescription
Constructors
| Improve this Doc View SourceFeatureSourceDescription(IEnumerable<FeatureSchema>)
Initializes a new instance of the FeatureSourceDescription class.
Declaration
public FeatureSourceDescription(IEnumerable<FeatureSchema> schemas)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.IEnumerable<FeatureSchema> | schemas |
FeatureSourceDescription(Stream)
Initializes a new instance of the FeatureSourceDescription class.
Declaration
public FeatureSourceDescription(Stream stream)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IO.Stream | stream | The stream. |
Properties
| Improve this Doc View SourceAllClasses
Gets all the Class Definitions in this feature source. In the event of identically named Class Definitions beloning in different parent schemas. Use the QualifiedName property to distinguish them.
Declaration
public IEnumerable<ClassDefinition> AllClasses { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<ClassDefinition> |
IsPartial
Gets whether this description is a partial description (ie. It doesn't represent the full feature source)
Declaration
public bool IsPartial { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
SchemaNames
Gets an array of feature schema names
Declaration
public string[] SchemaNames { get; }
Property Value
| Type | Description |
|---|---|
| System.String[] |
Schemas
Gets an array of feature schemas in this feature source
Declaration
public FeatureSchema[] Schemas { get; }
Property Value
| Type | Description |
|---|---|
| FeatureSchema[] |
Methods
| Improve this Doc View SourceClone(FeatureSourceDescription)
Creates a clone of the specified instance
Declaration
public static FeatureSourceDescription Clone(FeatureSourceDescription fsd)
Parameters
| Type | Name | Description |
|---|---|---|
| FeatureSourceDescription | fsd | The instance to clone |
Returns
| Type | Description |
|---|---|
| FeatureSourceDescription |
GetClass(String)
Gets the specified class definition by its fully qualified name
Declaration
public ClassDefinition GetClass(string qualifiedName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | qualifiedName |
Returns
| Type | Description |
|---|---|
| ClassDefinition | The matching class definition. null if not found |
GetClass(String, String)
Gets the specified class definition by its name and parent schema name
Declaration
public ClassDefinition GetClass(string schemaName, string className)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | schemaName | |
| System.String | className |
Returns
| Type | Description |
|---|---|
| ClassDefinition | The matching class definition. null if not found |
GetSchema(String)
Gets a feature schema by its name
Declaration
public FeatureSchema GetSchema(string schemaName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | schemaName |
Returns
| Type | Description |
|---|---|
| FeatureSchema | The matching feature schema. null if not found |
HasClasses()
Gets whether there are any class definitions
Declaration
public bool HasClasses()
Returns
| Type | Description |
|---|---|
| System.Boolean |