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";
}
}