/// <summary> /// 将shp导出 成单个的 mxd /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void SpliceSHPToMxd_Click(object sender, ItemClickEventArgs e) { //打开map //得到选中的地块 IList <IFeature> features = ArcGisUtils.GetInstance().GetSelectFeature(); //得到模板mxd //导出mxd }
/// <summary> /// 设置多个四至 /// </summary> /// <param name="features"></param> private void SetJTSYQSiZi(PreviewKeyDownEventArgs e) { if (CurrentJTSYQ == null) { return; } IList <IFeature> features = ArcGisUtils.GetInstance().GetSelectFeature(); if (!MyUtils.Utils.CheckListExists(features)) { return; } JTSYQCustom jTSYQCustom = new JTSYQCustom(CurrentJTSYQ); Dictionary <string, IList <IFeature> > featuresDic = ArcGisUtils.GetFeatureDicByLayer(features); //其他集体所有权 IList <IFeature> siziFeatures; if (featuresDic.TryGetValue(JTSYQCustom.JTSYQLayerName, out siziFeatures)) { IList <JTSYQ> siziJTSYQS = JTSYQCustom.FeaturesToJTSYQ(siziFeatures); if (!MyUtils.Utils.CheckListExists(siziJTSYQS)) { return; } //移除自身地块 int count = siziJTSYQS.Count; for (int a = 0; a < count; a++) { JTSYQ round = siziJTSYQS[a]; if (round.Feature.OID == CurrentJTSYQ.Feature.OID) { siziJTSYQS.RemoveAt(a); count--; a--; } } jTSYQCustom.SetSiZi(e, siziJTSYQS); } jTSYQCustom.ArcGisSave(); //更新显示的table中 的josn数据 }