${iServerJava6R_DatasetBufferAnalystParams_Title}

${iServerJava6R_DatasetBufferAnalystParams_Description}

Inheritance: BufferAnalystParameters
コード例 #1
0
 private void DatasetBufferAnalyst_Click(object sender, RoutedEventArgs e)
 {
     DatasetBufferAnalystParameters param = new DatasetBufferAnalystParameters
     {
         BufferSetting = new BufferSetting
         {
             EndType = BufferEndType.ROUND,
             LeftDistance = new BufferDistance 
             {
                 Value =Convert.ToDouble(MyTextBox.Text)
             },
             SemicircleLineSegment = 12,
             
         },
         FilterQueryParameter = new SuperMap.Web.iServerJava6R.FilterParameter
         {
             AttributeFilter = "SmID=19"
         },
         Dataset = "Landuse_R@Jingjin",
         
     };
     DatasetBufferAnalystService datasetBufferAnalyst = new DatasetBufferAnalystService(url2);
     datasetBufferAnalyst.ProcessAsync(param);
     datasetBufferAnalyst.Failed += new EventHandler<ServiceFailedEventArgs>(datasetBufferAnalyst_Failed);
     datasetBufferAnalyst.ProcessCompleted += new EventHandler<DatasetBufferAnalystArgs>(datasetBufferAnalyst_ProcessCompleted);
 }
        //数据集缓冲
        private void datasetBuffer_Click(object sender, RoutedEventArgs e)
        {
            var bufferAnalystParams = new DatasetBufferAnalystParameters
            {
                BufferSetting = new BufferSetting
                {
                    EndType = BufferEndType.ROUND,
                    LeftDistance = new BufferDistance
                    {
                        Value = 50000
                    },
                    RightDistance = new BufferDistance
                    {
                        Value = 50000
                    },
                    SemicircleLineSegment = 4
                },
                Dataset = "SamplesP@Interpolation",

                IsAttributeRetained = false,
                //IsOverwrite = true,
                //IsReturnRecordset = true,
                IsUnion = true,
                MaxReturnRecordCount = 10000,
                //ResultDatasetName = "aa@Interpolation"
            };

            var datasetBufferAnalyst = new DatasetBufferAnalystService(url);
            datasetBufferAnalyst.ProcessAsync(bufferAnalystParams);
            datasetBufferAnalyst.ProcessCompleted += new EventHandler<DatasetBufferAnalystArgs>(datasetBufferAnalyst_ProcessCompleted);
            datasetBufferAnalyst.Failed += new EventHandler<SuperMap.Web.Service.ServiceFailedEventArgs>(datasetBufferAnalyst_Failed);
        }
コード例 #3
0
 /// <summary>${iServerJava6R_DatasetBufferAnalystService_method_ProcessAsync_D}</summary>
 /// <param name="parameters">${iServerJava6R_DatasetBufferAnalystService_method_ProcessAsync_param_parameter}</param>
 /// <param name="state">${iServerJava6R_DatasetBufferAnalystService_method_ProcessAsync_param_state}</param>
 public void ProcessAsync(DatasetBufferAnalystParameters parameters, object state)
 {
     GenerateAbsoluteUrl(parameters);
     base.SubmitRequest(this.Url, GetDictionaryParameters(parameters), new EventHandler<RequestEventArgs>(BufferAnalystService_Complated), state, true, false, false);
 }
コード例 #4
0
 /// <summary>${iServerJava6R_DatasetBufferAnalystService_method_ProcessAsync_D}</summary>
 /// <overloads>${iServerJava6R_DatasetBufferAnalystService_method_ProcessAsync_overloads_D}</overloads>
 public void ProcessAsync(DatasetBufferAnalystParameters parameters)
 {
     ProcessAsync(parameters, null);
 }
コード例 #5
0
 private System.Collections.Generic.Dictionary<string, string> GetDictionaryParameters(DatasetBufferAnalystParameters parameters)
 {
     return DatasetBufferAnalystParameters.ToDictionary(parameters);
 }
コード例 #6
0
        private void GenerateAbsoluteUrl(DatasetBufferAnalystParameters parameters)
        {
            if (parameters == null)
            {
                throw new ArgumentNullException("请求服务参数为空!");
            }

            if (string.IsNullOrEmpty(parameters.Dataset) || string.IsNullOrEmpty(parameters.Dataset))
            {
                throw new ArgumentNullException("数据集参数为空");
            }

            if (this.Url == null)
            {
                throw new InvalidOperationException(ExceptionStrings.InvalidUrl);
            }

            //http://192.168.11.154:8090/iserver/services/spatialanalyst-sample/restjsr/spatialanalyst/datasets/SamplesP@Interpolation/buffer.json
            if (this.Url.EndsWith("/"))
            {
                this.Url += "datasets/" + parameters.Dataset + "/buffer.json?debug=true&returnContent=true";
            }
            else
            {
                this.Url += "/datasets/" + parameters.Dataset + "/buffer.json?debug=true&returnContent=true";
            }
        }