C# 클래스 Mapsui.Providers.Wms.WmsProvider

Web Map Service layer
The WmsLayer is currently very basic and doesn't support automatic fetching of the WMS Service Description. Instead you would have to add the nessesary parameters to the URL, and the WmsLayer will set the remaining BoundingBox property and proper requests that changes between the requests. See the example below.
상속: IProjectingProvider
파일 보기 프로젝트 열기: pauldendulk/Mapsui 1 사용 예제들

공개 메소드들

메소드 설명
AddLayer ( string name ) : void

Adds a layer to WMS request

Layer names are case sensitive.

AddStyle ( string name ) : void

Adds a style to the style collection

Dispose ( ) : void
GetExtents ( ) : BoundingBox
GetFeaturesInView ( BoundingBox box, double resolution ) : IEnumerable
GetLayer ( string name ) : Client.WmsServerLayer

Get a layer from the WMS

Layer names are case sensitive.

GetLegendRequestUrls ( ) : IEnumerable

Gets the URL for a map request base on current settings, the image size and boundingbox

GetLegends ( ) : IEnumerable
GetRequestUrl ( BoundingBox box, int width, int height ) : string

Gets the URL for a map request base on current settings, the image size and boundingbox

IsCrsSupported ( string crs ) : bool?
RemoveAllLayers ( ) : void

Removes all layers

RemoveAllStyles ( ) : void

Removes all styles from the list

RemoveLayer ( string name ) : void

Removes a layer from the layer list

RemoveLayerAt ( int index ) : void

Removes the layer at the specified index

RemoveStyle ( string name ) : void

Removes a style from the collection

RemoveStyleAt ( int index ) : void

Removes a style at specified index

SetImageFormat ( string mimeType ) : void

Sets the image type to use when requesting images from the WMS server

See the OutputFormats property for a list of available mime types supported by the WMS server

TryGetMap ( IViewport viewport, IRaster &raster ) : bool
WmsProvider ( XmlDocument capabilities, Func getStreamAsync = null ) : System
WmsProvider ( string url, string wmsVersion = null, Func getStreamAsync = null ) : System

Initializes a new layer, and downloads and parses the service description

비공개 메소드들

메소드 설명
FindLayer ( Client layer, string name, Client &result ) : bool
GetPreferredMethod ( ) : Client.WmsOnlineResource
GetStreamAsync ( string url ) : Task
InitialiseGetStreamAsyncMethod ( Func getStreamAsync ) : void
LayerExists ( Client layer, string name ) : bool

Recursive method for checking whether a layername exists

StyleExists ( Client layer, string name ) : bool

Recursive method for checking whether a layername exists

WmsProvider ( Client wmsClient, Func getStreamAsync = null ) : System

메소드 상세

AddLayer() 공개 메소드

Adds a layer to WMS request
Layer names are case sensitive.
Throws an exception is an unknown layer is added
public AddLayer ( string name ) : void
name string Name of layer
리턴 void

AddStyle() 공개 메소드

Adds a style to the style collection
Throws an exception is an unknown layer is added
public AddStyle ( string name ) : void
name string Name of style
리턴 void

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

GetExtents() 공개 메소드

public GetExtents ( ) : BoundingBox
리턴 BoundingBox

GetFeaturesInView() 공개 메소드

public GetFeaturesInView ( BoundingBox box, double resolution ) : IEnumerable
box BoundingBox
resolution double
리턴 IEnumerable

GetLayer() 공개 메소드

Get a layer from the WMS
Layer names are case sensitive.
Throws an exception if the layer is not found
public GetLayer ( string name ) : Client.WmsServerLayer
name string Name of layer
리턴 Client.WmsServerLayer

GetLegendRequestUrls() 공개 메소드

Gets the URL for a map request base on current settings, the image size and boundingbox
public GetLegendRequestUrls ( ) : IEnumerable
리턴 IEnumerable

GetLegends() 공개 메소드

public GetLegends ( ) : IEnumerable
리턴 IEnumerable

GetRequestUrl() 공개 메소드

Gets the URL for a map request base on current settings, the image size and boundingbox
public GetRequestUrl ( BoundingBox box, int width, int height ) : string
box BoundingBox
width int
height int
리턴 string

IsCrsSupported() 공개 메소드

public IsCrsSupported ( string crs ) : bool?
crs string
리턴 bool?

RemoveAllLayers() 공개 메소드

Removes all layers
public RemoveAllLayers ( ) : void
리턴 void

RemoveAllStyles() 공개 메소드

Removes all styles from the list
public RemoveAllStyles ( ) : void
리턴 void

RemoveLayer() 공개 메소드

Removes a layer from the layer list
public RemoveLayer ( string name ) : void
name string Name of layer to remove
리턴 void

RemoveLayerAt() 공개 메소드

Removes the layer at the specified index
public RemoveLayerAt ( int index ) : void
index int
리턴 void

RemoveStyle() 공개 메소드

Removes a style from the collection
public RemoveStyle ( string name ) : void
name string Name of style
리턴 void

RemoveStyleAt() 공개 메소드

Removes a style at specified index
public RemoveStyleAt ( int index ) : void
index int Index
리턴 void

SetImageFormat() 공개 메소드

Sets the image type to use when requesting images from the WMS server

See the OutputFormats property for a list of available mime types supported by the WMS server

Throws an exception if either the mime type isn't offered by the WMS /// or GDI+ doesn't support this mime type.
public SetImageFormat ( string mimeType ) : void
mimeType string Mime type of image format
리턴 void

TryGetMap() 공개 메소드

public TryGetMap ( IViewport viewport, IRaster &raster ) : bool
viewport IViewport
raster IRaster
리턴 bool

WmsProvider() 공개 메소드

public WmsProvider ( XmlDocument capabilities, Func getStreamAsync = null ) : System
capabilities System.Xml.XmlDocument
getStreamAsync Func
리턴 System

WmsProvider() 공개 메소드

Initializes a new layer, and downloads and parses the service description
public WmsProvider ( string url, string wmsVersion = null, Func getStreamAsync = null ) : System
url string Url of WMS server
wmsVersion string Version number of wms leave null to get the default service version
getStreamAsync Func Download method, leave null for default
리턴 System