Class GetFeatureInfo
Inherited Members
Namespace: Mapsui.Providers.Wms
Assembly: Mapsui.dll
Syntax
public class GetFeatureInfo
Constructors
| Edit this page View SourceGetFeatureInfo(Func<string, Task<byte[]>>?)
Declaration
public GetFeatureInfo(Func<string, Task<byte[]>>? getBytesAsync = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Func<string, Task<byte[]>> | getBytesAsync |
Fields
| Edit this page View SourceApplicationVndOGCGml
Declaration
public const string? ApplicationVndOGCGml = "application/vnd.ogc.gml"
Field Value
| Type | Description |
|---|---|
| string |
TextXml
Declaration
public const string? TextXml = "text/xml"
Field Value
| Type | Description |
|---|---|
| string |
TextXmlSubtypeGml
Declaration
public const string TextXmlSubtypeGml = "text/xml; subtype=gml/3.1.1"
Field Value
| Type | Description |
|---|---|
| string |
Properties
| Edit this page View SourceCredentials
Provides the base authentication interface for retrieving credentials for Web client authentication.
Declaration
public ICredentials? Credentials { get; set; }
Property Value
| Type | Description |
|---|---|
| ICredentials |
ExtraParams
Declaration
public Dictionary<string, string>? ExtraParams { get; set; }
Property Value
| Type | Description |
|---|---|
| Dictionary<string, string> |
HttpHeaders
Gets or sets additional HTTP headers to be sent with each request.
Declaration
public Dictionary<string, string>? HttpHeaders { get; set; }
Property Value
| Type | Description |
|---|---|
| Dictionary<string, string> |
TimeOut
Timeout of web request in milliseconds. Default is 7 seconds
Declaration
public int TimeOut { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
UserAgent
Declaration
public string? UserAgent { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
| Edit this page View SourceRequestAsync(string, string, string, string, string, double, double, double, double, int, int, int, int)
Request FeatureInfo for a WMS Server
Declaration
public Task<FeatureInfo?> RequestAsync(string baseUrl, string wmsVersion, string infoFormat, string srs, string layer, double extendXmin, double extendYmin, double extendXmax, double extendYmax, int x, int y, int mapWidth, int mapHeight)
Parameters
| Type | Name | Description |
|---|---|---|
| string | baseUrl | Base URL of the WMS server |
| string | wmsVersion | WMS Version |
| string | infoFormat | Format of response (text/xml, text/plain, etc) |
| string | srs | EPSG Code of the coordinate system |
| string | layer | Layer to get FeatureInfo From |
| double | extendXmin | |
| double | extendYmin | |
| double | extendXmax | |
| double | extendYmax | |
| int | x | Coordinate in pixels x |
| int | y | Coordinate in pixels y |
| int | mapWidth | Width of the map |
| int | mapHeight | Height of the map |
Returns
| Type | Description |
|---|---|
| Task<FeatureInfo> |