Class Client
Class for requesting and parsing a WMS servers capabilities
Inheritance
Namespace: Mapsui.Desktop.Wms
Assembly: Mapsui.Desktop.dll
Syntax
public class Client : object
Constructors
| Improve this Doc View SourceClient(String, String, Func<String, Task<Stream>>)
Initalizes WMS server and parses the Capabilities request
Declaration
public Client(string url, string wmsVersion = null, Func<string, Task<Stream>> getStreamAsync = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | url | URL of wms server |
System.String | wmsVersion | WMS version number, null to get the default from service |
Func<System.String, Task<Stream>> | getStreamAsync | Download method, leave null for default |
Client(XmlDocument, Func<String, Task<Stream>>)
Declaration
public Client(XmlDocument capabilitiesXmlDocument, Func<string, Task<Stream>> getStreamAsync = null)
Parameters
Type | Name | Description |
---|---|---|
XmlDocument | capabilitiesXmlDocument | |
Func<System.String, Task<Stream>> | getStreamAsync |
Properties
| Improve this Doc View SourceExceptionFormats
Gets a list of available exception mime type formats
Declaration
public string[] ExceptionFormats { get; }
Property Value
Type | Description |
---|---|
System.String[] |
GetFeatureInfoOutputFormats
Gets a list of available feature info mime type formats
Declaration
public Collection<string> GetFeatureInfoOutputFormats { get; }
Property Value
Type | Description |
---|---|
Collection<System.String> |
GetFeatureInfoRequests
Gets the available GetMap request methods and Online Resource URI
Declaration
public Client.WmsOnlineResource[] GetFeatureInfoRequests { get; }
Property Value
Type | Description |
---|---|
Client.WmsOnlineResource[] |
GetMapOutputFormats
Gets a list of available image mime type formats
Declaration
public Collection<string> GetMapOutputFormats { get; }
Property Value
Type | Description |
---|---|
Collection<System.String> |
GetMapRequests
Gets the available GetMap request methods and Online Resource URI
Declaration
public Client.WmsOnlineResource[] GetMapRequests { get; }
Property Value
Type | Description |
---|---|
Client.WmsOnlineResource[] |
Layer
Gets the hiarchial layer structure
Declaration
public Client.WmsServerLayer Layer { get; }
Property Value
Type | Description |
---|---|
Client.WmsServerLayer |
ServiceDescription
Gets the service description
Declaration
public Capabilities.WmsServiceDescription ServiceDescription { get; }
Property Value
Type | Description |
---|---|
Capabilities.WmsServiceDescription |
VendorSpecificCapabilities
Exposes the capabilitie's VendorSpecificCapabilities as XmlNode object. External modules could use this to parse the vendor specific capabilities for their specific purpose.
Declaration
public XmlNode VendorSpecificCapabilities { get; }
Property Value
Type | Description |
---|---|
XmlNode |
WmsVersion
Gets the version of the WMS server (ex. "1.3.0")
Declaration
public string WmsVersion { get; }
Property Value
Type | Description |
---|---|
System.String |