Class Client
Class for requesting and parsing a WMS servers capabilities
Inherited Members
Namespace: Mapsui.Providers.Wms
Assembly: Mapsui.dll
Syntax
[Serializable]
public class Client
Constructors
| Edit this page View SourceClient(XmlDocument, Func<string, Task<Stream>>?, string?)
Declaration
public Client(XmlDocument capabilitiesXmlDocument, Func<string, Task<Stream>>? getStreamAsync = null, string? userAgent = null)
Parameters
Type | Name | Description |
---|---|---|
XmlDocument | capabilitiesXmlDocument | |
Func<string, Task<Stream>> | getStreamAsync | |
string | userAgent |
Properties
| Edit this page View SourceExceptionFormats
Gets a list of available exception mime type formats
Declaration
public string[]? ExceptionFormats { get; }
Property Value
Type | Description |
---|---|
string[] |
GetFeatureInfoOutputFormats
Gets a list of available feature info mime type formats
Declaration
public Collection<string>? GetFeatureInfoOutputFormats { get; }
Property Value
Type | Description |
---|---|
Collection<string> |
GetFeatureInfoRequests
Gets the available GetMap request methods and Online Resource URI
Declaration
public Client.WmsOnlineResource[]? GetFeatureInfoRequests { get; }
Property Value
Type | Description |
---|---|
WmsOnlineResource[] |
GetMapOutputFormats
Gets a list of available image mime type formats
Declaration
public Collection<string>? GetMapOutputFormats { get; }
Property Value
Type | Description |
---|---|
Collection<string> |
GetMapRequests
Gets the available GetMap request methods and Online Resource URI
Declaration
public Client.WmsOnlineResource[]? GetMapRequests { get; }
Property Value
Type | Description |
---|---|
WmsOnlineResource[] |
Layer
Gets the hierarchical 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 capabilities' 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 |
---|---|
string |
Methods
| Edit this page View SourceCreateAsync(string, string?, Func<string, Task<Stream>>?, IUrlPersistentCache?, string?)
Initializes WMS server and parses the Capabilities request
Declaration
public static Task<Client> CreateAsync(string url, string? wmsVersion = null, Func<string, Task<Stream>>? getStreamAsync = null, IUrlPersistentCache? persistentCache = null, string? userAgent = null)
Parameters
Type | Name | Description |
---|---|---|
string | url | URL of wms server |
string | wmsVersion | WMS version number, null to get the default from service |
Func<string, Task<Stream>> | getStreamAsync | Download method, leave null for default |
IUrlPersistentCache | persistentCache | persistent Cache |
string | userAgent | user Agent |
Returns
Type | Description |
---|---|
Task<Client> |