Class WmsConfigurationDocument
Represents a configuration document for the WMS provider.
Implements
Inherited Members
Namespace: OSGeo.MapGuide.MaestroAPI.SchemaOverrides
Assembly: OSGeo.MapGuide.MaestroAPI.dll
Syntax
public class WmsConfigurationDocument : ConfigurationDocument, IFdoSerializable
Properties
| Improve this Doc View SourceRasterOverrides
Gets an array of the added override items
Declaration
public RasterWmsItem[] RasterOverrides { get; }
Property Value
Type | Description |
---|---|
RasterWmsItem[] |
Methods
| Improve this Doc View SourceAddRasterItem(RasterWmsItem)
Adds the specified override item
Declaration
public void AddRasterItem(RasterWmsItem item)
Parameters
Type | Name | Description |
---|---|---|
RasterWmsItem | item |
EnsureConsistency()
Removes any logical classes without physical mappings and vice versa, also ensures that the physical mapping refers to the correct logical raster property
Declaration
public void EnsureConsistency()
EnsureRasterProperties(String)
Ensures that classes in this document have an identity property and a raster property. Any classes which have neither, will have properties created for them
Declaration
public void EnsureRasterProperties(string defaultScName)
Parameters
Type | Name | Description |
---|---|---|
System.String | defaultScName | The name of the default spatial context |
GetDefaultSpatialContext(IFeatureSource, IServerConnection)
Gets the default spatial context from this configuration document. If none is found, the first spatial context from the given Feature Source is used
Declaration
public string GetDefaultSpatialContext(IFeatureSource fs, IServerConnection conn)
Parameters
Type | Name | Description |
---|---|---|
IFeatureSource | fs | |
IServerConnection | conn |
Returns
Type | Description |
---|---|
System.String |
ReadSchemaMappings(XmlNode, XmlNamespaceManager)
Write this document's schema mappings from the given XML document
Declaration
protected override void ReadSchemaMappings(XmlNode node, XmlNamespaceManager mgr)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlNode | node | The node. |
System.Xml.XmlNamespaceManager | mgr | The namespace manager. |
Overrides
| Improve this Doc View SourceRemoveRasterItem(RasterWmsItem)
Removes the specified override item
Declaration
public void RemoveRasterItem(RasterWmsItem item)
Parameters
Type | Name | Description |
---|---|---|
RasterWmsItem | item |
WriteSchemaMappings(XmlDocument, XmlNode)
Write this document's schema mappings to the given XML document
Declaration
protected override void WriteSchemaMappings(XmlDocument doc, XmlNode currentNode)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlDocument | doc | |
System.Xml.XmlNode | currentNode |