public void Interpolate_Density()
        {
            string pointDataset = "SamplesP@Interpolation";
            InterpolationDensityParameter param = new InterpolationDensityParameter();
            param.PixelFormat = PixelFormat.BIT16;
            param.ZValueFieldName = "AVG_TMP";
            param.ZValueScale = 1;
            param.Resolution = 3000;
            param.OutputDatasetName = "interpolateDensity";
            param.OutputDatasourceName = "Interpolation";
            param.SearchRadius = 0;

            string serviceUrl = string.Format("http://{0}:8090/iserver/services/spatialanalyst-sample/restjsr", ip);
            SpatialAnalyst spatialAnalyst = new SpatialAnalyst(serviceUrl);
            DatasetSpatialAnalystResult actualResult = spatialAnalyst.Interpolate(pointDataset, param);
            Assert.IsTrue(actualResult.Succeed);

            //查询生成的栅格数据集信息
            string[] names = actualResult.Dataset.Split(new char[1] { '@' }, 3);
            string[] datasetNames = new string[1] { names[1] + ":" + names[0] };
            DatasetGridInfo datainfo = (DatasetGridInfo)spatialAnalyst.GetDatasetInfo(names[1], names[0]);
            Assert.AreEqual(DatasetType.GRID, datainfo.Type);
            Assert.AreEqual(PixelFormat.BIT16, datainfo.PixelFormat);
            //删除生成的栅格数据集
            string dataUrl = string.Format("http://{0}:8090/iserver/services/data-sample/rest", ip);
            Data data = new Data(dataUrl);
            bool deleteResult = data.DeleteDataset(names[1], names[0]);
            Assert.IsTrue(deleteResult);
        }
 /// <summary>
 /// 拷贝构造函数。
 /// </summary>
 public InterpolationDensityParameter(InterpolationDensityParameter param)
     : base(param)
 {
 }