${iServerJava6R_InterpolationIDWAnalystParameters_Title}

${iServerJava6R_InterpolationIDWAnalystParameters_Description}

Inheritance: InterpolationAnalystParameters
        //执行反距离加权插值
        private void InterpolationIDW_Click(object sender, RoutedEventArgs e)
        {
            ClearLayers();
            MyProgressBar.Storyboard1.Begin();
            MyProgressBar.Visibility = Visibility.Visible;
            InterpolationIDWAnalystParameters param = new InterpolationIDWAnalystParameters();
            param.Dataset = "SamplesP@Interpolation";
            param.Bounds = new Rectangle2D(-2640403.6321084504, 1873792.1034850003, 3247669.390292245, 5921501.395578556);
            param.OutputDataset = "IDW";
            param.Resolution = 7923.84989108;
            param.PixelFormat = PixelFormat.DOUBLE;
            param.SearchMode = SearchMode.KDTREE_FIXED_COUNT;
            param.SearchRadius = 0;
            param.ZValueFieldName = "AVG_TMP";
            InterpolationAnalystService service = new InterpolationAnalystService(url);
            service.ProcessCompleted += new EventHandler<InterpolateAnalystArgs>(processCompleted);
            service.Failed += new EventHandler<ServiceFailedEventArgs>(excuteErrors);
            service.ProcessAsync(param);

        }
        private void sqlService_ProcessCompleted(object sender, QueryEventArgs e)
        {
            int zMin = Convert.ToInt32(zMinValue.Text);
            int zMax = Convert.ToInt32(zMaxValue.Text);

            FeatureCollection fc = e.Result.Recordsets[0].Features;
            for (int i = 0; i < fc.Count; i++)
            {
                GeoPoint gp = fc[i].Geometry as GeoPoint;
                var z = random.Next(zMin, zMax);
                Point2D point = new Point2D()
                {
                    X = gp.X,
                    Y = gp.Y,
                    Tag = z
                };
                inputPoints.Add(point);
            }
            InterpolationIDWAnalystParameters idwParams = new InterpolationIDWAnalystParameters()
            {
                Bounds = new Rectangle2D(-2640403.6321084504, 1873792.1034850003, 3247669.390292245, 5921501.395578556),
                OutputDataset = "idwcretepoints",
                OutputDataSource = "Interpolation",
                SearchMode=SearchMode.KDTREE_FIXED_RADIUS,
                InterpolationAnalystType=InterpolationAnalystType.GEOMETRY,
                InputPoints = inputPoints
            };
            InterpolationAnalystService service = new InterpolationAnalystService(url);
            service.ProcessCompleted += new EventHandler<InterpolateAnalystArgs>(processCompleted);
            service.Failed += new EventHandler<SuperMap.Web.Service.ServiceFailedEventArgs>(excuteErrors);
            service.ProcessAsync(idwParams);
        }