${REST_GeometryBufferAnalystParams_Title}

${REST_GeometryBufferAnalystParams_Description}

Inheritance: BufferAnalystParameters
 /// <summary>${REST_GeometryBufferAnalystService_method_ProcessAsync_D}</summary>
 /// <param name="parameters">${REST_GeometryBufferAnalystService_method_ProcessAsync_param_parameter}</param>
 /// <param name="state">${REST_GeometryBufferAnalystService_method_ProcessAsync_param_state}</param>
 public async Task<GeometryBufferAnalystResult> ProcessAsync(GeometryBufferAnalystParameters parameters)
 {
     GenerateAbsoluteUrl(parameters);
     var result = await base.SubmitRequest(this.Url, GetDictionaryParameters(parameters), true, false, false);
     JsonObject resultJson = JsonObject.Parse(result);
     return GeometryBufferAnalystResult.FromJson(resultJson);
 }
        private void GenerateAbsoluteUrl(GeometryBufferAnalystParameters parameters)
        {
            if (parameters == null)
            {
                throw new ArgumentNullException("请求服务参数为空!");
            }

            //http://192.168.11.154:8090/iserver/services/spatialanalyst-sample/restjsr/spatialanalyst/geometry/buffer
            if (this.Url.EndsWith("/"))
            {
                this.Url += "geometry/buffer.json?debug=true&returnContent=true";
            }
            else
            {
                this.Url += "/geometry/buffer.json?debug=true&returnContent=true";
            }
        }
        internal static System.Collections.Generic.Dictionary<string, string> ToDictionary(GeometryBufferAnalystParameters geometryBufferParams)
        {
            var dict = new System.Collections.Generic.Dictionary<string, string>();
            if (geometryBufferParams.BufferSetting != null)
            {
                dict.Add("analystParameter", BufferSetting.ToJson(geometryBufferParams.BufferSetting));
            }
            else
            {
                dict.Add("analystParameter", BufferSetting.ToJson(new BufferSetting()));
            }

            if (geometryBufferParams.SourceGeometry != null)
            {
                dict.Add("sourceGeometry", ServerGeometry.ToJson(geometryBufferParams.SourceGeometry.ToServerGeometry()));
            }
            else
            {
                dict.Add("sourceGeometry", ServerGeometry.ToJson(new ServerGeometry()));
            }
            return dict;
        }
 private System.Collections.Generic.Dictionary<string, string> GetDictionaryParameters(GeometryBufferAnalystParameters parameters)
 {
     return GeometryBufferAnalystParameters.ToDictionary(parameters);
 }