Class ArcGISDynamicProvider
Inherited Members
Namespace: Mapsui.ArcGIS.DynamicProvider
Assembly: Mapsui.ArcGIS.dll
Syntax
public class ArcGISDynamicProvider : IProjectingProvider, IProvider
Constructors
| Edit this page View SourceArcGISDynamicProvider(string, ArcGISDynamicCapabilities, string?, IUrlPersistentCache?)
Create ArcGisDynamicProvider based on a given capabilities file
Declaration
public ArcGISDynamicProvider(string url, ArcGISDynamicCapabilities arcGisDynamicCapabilities, string? token = null, IUrlPersistentCache? persistentCache = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | url | url to map service example: http://url/arcgis/rest/services/test/MapServer |
| ArcGISDynamicCapabilities | arcGisDynamicCapabilities | |
| string | token | token to request service |
| IUrlPersistentCache | persistentCache |
ArcGISDynamicProvider(string, string?, IUrlPersistentCache?)
Create ArcGisDynamicProvider, capabilities will be parsed automatically
Declaration
public ArcGISDynamicProvider(string url, string? token = null, IUrlPersistentCache? persistentCache = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | url | url to map service example: http://url/arcgis/rest/services/test/MapServer |
| string | token | token to request service |
| IUrlPersistentCache | persistentCache | persistent cache |
Properties
| Edit this page View SourceArcGisDynamicCapabilities
Declaration
public ArcGISDynamicCapabilities ArcGisDynamicCapabilities { get; }
Property Value
| Type | Description |
|---|---|
| ArcGISDynamicCapabilities |
CRS
The spatial reference ID (CRS)
Declaration
public string? CRS { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Credentials
Declaration
public ICredentials? Credentials { get; set; }
Property Value
| Type | Description |
|---|---|
| ICredentials |
TimeOut
Timeout of web request in milliseconds. Default is 10 seconds
Declaration
public int TimeOut { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Token
Declaration
public string? Token { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Url
Declaration
public string Url { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
| Edit this page View SourceGetExtent()
MRect of data set
Declaration
public MRect? GetExtent()
Returns
| Type | Description |
|---|---|
| MRect | BoundingBox |
GetFeaturesAsync(FetchInfo)
Declaration
public Task<IEnumerable<IFeature>> GetFeaturesAsync(FetchInfo fetchInfo)
Parameters
| Type | Name | Description |
|---|---|---|
| FetchInfo | fetchInfo |
Returns
| Type | Description |
|---|---|
| Task<IEnumerable<IFeature>> |
GetRequestUrl(MRect?, int, int)
Gets the URL for a map export request base on current settings, the image size and boundingBox
Declaration
public string GetRequestUrl(MRect? box, int width, int height)
Parameters
| Type | Name | Description |
|---|---|---|
| MRect | box | Area the request should cover |
| int | width | |
| int | height |
Returns
| Type | Description |
|---|---|
| string | URL for ArcGIS Dynamic request |
IsCrsSupported(string)
Queries whether a provider supports projection to a certain CRS.
Declaration
public bool? IsCrsSupported(string crs)
Parameters
| Type | Name | Description |
|---|---|---|
| string | crs | The crs to project to |
Returns
| Type | Description |
|---|---|
| bool? | True if is does, false if it does not, null if it is unknown |
TryGetMapAsync(MSection)
Retrieves the bitmap from ArcGIS Dynamic service
Declaration
public Task<(bool Success, MRaster? Raster)> TryGetMapAsync(MSection section)
Parameters
| Type | Name | Description |
|---|---|---|
| MSection | section |
Returns
| Type | Description |
|---|---|
| Task<(bool Success, MRaster)> |