C# Class Mapsui.Providers.Wms.Client

显示文件 Open project: pauldendulk/Mapsui Class Usage Examples

Public Methods

Method Description
Client ( XmlDocument capabilitiesXmlDocument, Func getStreamAsync = null ) : System
Client ( string url, string wmsVersion = null, Func getStreamAsync = null ) : System

Initalizes WMS server and parses the Capabilities request

Private Methods

Method Description
GetRemoteXml ( string url ) : XmlDocument

Downloads servicedescription from WMS service

GetStreamAsync ( string url ) : Task
InitialiseGetStreamAsyncMethod ( Func getStreamAsync ) : void
ParseCapabilities ( XmlDocument doc ) : void

Parses a servicedescription and stores the data in the ServiceDescription property

ParseCapability ( XmlNode xnCapability ) : void

Parses capability node

ParseCrses ( XmlNode xmlLayer ) : string[]
ParseExceptions ( XmlNode xnlExceptionNode ) : void

Parses valid exceptions

ParseGetFeatureInfo ( XmlNode getFeatureInfoRequestNodes ) : void
ParseGetMapRequest ( XmlNode getMapRequestNodes ) : void

Parses GetMap request nodes

ParseLayer ( XmlNode xmlLayer ) : WmsServerLayer

Iterates through the layer nodes recursively

ParseRequest ( XmlNode xmlRequestNode ) : void

Parses request node

ParseServiceDescription ( XmlNode xnlServiceDescription ) : void

Parses service description node

Method Details

Client() public method

public Client ( XmlDocument capabilitiesXmlDocument, Func getStreamAsync = null ) : System
capabilitiesXmlDocument System.Xml.XmlDocument
getStreamAsync Func
return System

Client() public method

Initalizes WMS server and parses the Capabilities request
public Client ( string url, string wmsVersion = null, Func getStreamAsync = null ) : System
url string URL of wms server
wmsVersion string WMS version number, null to get the default from service
getStreamAsync Func Download method, leave null for default
return System