Ejemplo n.º 1
0
 public ArcGISImageServiceProvider(ArcGISImageCapabilities capabilities, bool continueOnError = true, string?token = null)
 {
     Token                   = token;
     CRS                     = "";
     TimeOut                 = 10000;
     ContinueOnError         = continueOnError;
     ArcGisImageCapabilities = capabilities;
     Url                     = ArcGisImageCapabilities.ServiceUrl;
 }
Ejemplo n.º 2
0
        public ArcGISImageServiceProvider(string url, bool continueOnError = false, string format = "jpgpng", InterpolationType interpolation = InterpolationType.RSP_NearestNeighbor, long startTime = -1, long endTime = -1, string?token = null)
        {
            Token           = token;
            Url             = url;
            CRS             = "";
            TimeOut         = 10000;
            ContinueOnError = continueOnError;

            ArcGisImageCapabilities = new ArcGISImageCapabilities(Url, startTime, endTime, format, interpolation)
            {
                fullExtent = new Extent {
                    xmin = 0, xmax = 0, ymin = 0, ymax = 0
                },
                initialExtent = new Extent {
                    xmin = 0, xmax = 0, ymin = 0, ymax = 0
                }
            };

            var capabilitiesHelper = new CapabilitiesHelper();

            capabilitiesHelper.CapabilitiesReceived += CapabilitiesHelperCapabilitiesReceived;
            capabilitiesHelper.CapabilitiesFailed   += CapabilitiesHelperCapabilitiesFailed;
            capabilitiesHelper.GetCapabilities(url, CapabilitiesType.DynamicServiceCapabilities, token);
        }