发布网友 发布时间:2022-04-21 15:26
共6个回答
懂视网 时间:2022-05-14 19:49
arcgis 执行查询任务(QueryTask)还有ExecuteAsync?需进一步了解url = string.Format("http://{0}/arcgis2/rest/services/baidu/MapServer/{1}", ip, layerID); QueryTask queryTask = new QueryTask(url); queryTask.ExecuteCompleted += new EventHandler<QueryEventArgs>(queryTask_ExecuteCompleted); queryTask.Failed += new EventHandler<TaskFailedEventArgs>(queryTask_Failed); ESRI.ArcGIS.Client.Tasks.Query query = new ESRI.ArcGIS.Client.Tasks.Query(); query.OutFields.Add("*"); query.ReturnGeometry = true; query.Where = string.Format("FID={0}", QueryText); queryTask.ExecuteAsync(query); private void queryTask_Failed(object sender, TaskFailedEventArgs e) { MessageBox.Show("Query failed: " + e.Error); } private void queryTask_ExecuteCompleted(object sender, QueryEventArgs e) { FeatureSet featureSet = e.FeatureSet; if (featureSet != null && featureSet.Features.Count > 0) { Graphic selectedFeature = featureSet.Features[0]; // 放大到选择的要素 ESRI.ArcGIS.Client.Geometry.Envelope selectedFeatureExtent = selectedFeature.Geometry.Extent; double expandPercentage = 30; double widthExpand = 2000 * (expandPercentage / 100); double heightExpand = 2000 * (expandPercentage / 100); ESRI.ArcGIS.Client.Geometry.Envelope displayExtent = new ESRI.ArcGIS.Client.Geometry.Envelope( selectedFeatureExtent.XMin - (widthExpand / 2), selectedFeatureExtent.YMin - (heightExpand / 2), selectedFeatureExtent.XMax + (widthExpand / 2), selectedFeatureExtent.YMax + (heightExpand / 2)); myMap.ZoomDuration = new TimeSpan(0, 0, 2); myMap.ZoomTo(displayExtent); } }
热心网友 时间:2022-05-14 16:57
1.一般通过栅格计算得到grid栅格是有属性表的,你的没有没关系,可以通过datamanagement tools - > raster -> raster properties -> calculate statistics工具计算统计特征之后就会有属性表格了(计算统计特征很有用,一些layer的symbology也需要统计特征)。或者在catolog右键栅格属性也可以计算。热心网友 时间:2022-05-14 18:15
1加载图层后,右键图层,就能打开属性表。热心网友 时间:2022-05-14 19:50
在图层上右键可以看到open attibutes table热心网友 时间:2022-05-14 21:41
这个讲起了有点麻烦,这里有Arcgis教程你可以看看网页链接
看看是否能帮助到你
热心网友 时间:2022-05-14 23:49
买本arcgis9 地理信息系统应用与实践就都了解了。。