private void DatasetThiessenAnalyst_Click(object sender, RoutedEventArgs e) { DatasetThiessenAnalystParameters thiessenParams = new DatasetThiessenAnalystParameters(); thiessenParams.CreateResultDataset = true; thiessenParams.DataSet = "Factory@Changchun"; thiessenParams.ResultDatasetName = ""; thiessenParams.ResultDatasourceName = ""; thiessenParams.ReturnResultRegion = true; thiessenParams.FilterQueryParameter = null; thiessenParams.ClipRegion = null; ThiessenAnalystService thiessenService = new ThiessenAnalystService(url2); thiessenService.ProcessAsync(thiessenParams); thiessenService.ProcessCompleted += new EventHandler<ThiessenAnalystEventArgs>(ThiessenAnalyst_ProcessCompleted); thiessenService.Failed += new EventHandler<ServiceFailedEventArgs>(ThiessenAnalyst_Failed); }
private void GeometryThiessenAnalyst_Click(object sender, RoutedEventArgs e) { Point2DCollection points = new Point2DCollection(); points.Add(new Point2D(5472.712382, -2189.15344)); points.Add(new Point2D(4707.299652, -1229.476725)); points.Add(new Point2D(5450.34263, -2070.794081)); points.Add(new Point2D(5447.671615, -2255.928819)); points.Add(new Point2D(5357.895026, -1965.022579)); points.Add(new Point2D(5317.70775, -2521.162355)); GeometryThiessenAnalystParameters thiessenParams = new GeometryThiessenAnalystParameters(); thiessenParams.Points = points; thiessenParams.CreateResultDataset = true; thiessenParams.ResultDatasetName = ""; thiessenParams.ResultDatasourceName = "Changchun"; thiessenParams.ReturnResultRegion = true; thiessenParams.ClipRegion = null; ThiessenAnalystService thiessenService = new ThiessenAnalystService(url2); thiessenService.ProcessAsync(thiessenParams); thiessenService.ProcessCompleted += new EventHandler<ThiessenAnalystEventArgs>(ThiessenAnalyst_ProcessCompleted); thiessenService.Failed += new EventHandler<ServiceFailedEventArgs>(ThiessenAnalyst_Failed); }