摘要: XmlDocument myXml = new XmlDocument(); string mappath = Server.MapPath("../XML/DataConnection.xml");//获取xml 转换为物理路径 //加载指定的XML文件 myXml.Load(mappath); //添加新元素节点 XmlElement ele0 = myXml.CreateElement("SName"); //节点中添加属性 name 值为 方法接收的参数 value ele0.SetAttribute("Name", value); //另一个状态属性 state ele0.SetAttribute("state", "1");//状态 //获取根节点 XmlElement root = myXml.DocumentElement; //将新节点存储到元xml 中 r 阅读全文
posted @ 2012-02-10 12:00 梦想起航 阅读(744) 评论(0) 推荐(0) 编辑
摘要: 空间拓扑描述的是自然界地理对象的空间位置关系-相邻、重合、连通等,是地理对象空间属性的一部分。目前ESRI提供的数据存储方式中,Coverage和GeoDatabase能够建立拓扑,Shape格式的数据不能建立拓扑。1、 GeoDatabase建立拓扑的基础:GeoDatabase实现拓扑的基础是”几何重合”,GeoDatabase中的地理对象都是实体存储,主要是根据节点坐标是否重合来判断地理要素之间是否存在某种拓扑关系。拓扑只能在要素集(FeatureDataset)中创建,参加创建拓扑的所有要素类(FeatureClass)必须具有相同的空间参考。参与拓扑创建的必须是简单要素类,注记类.. 阅读全文
posted @ 2012-02-25 15:31 梦想起航 阅读(2825) 评论(0) 推荐(0) 编辑
摘要: xmal.cs:private void Init() { TreeViewItem tvi_0 = new TreeViewItem(); tvi_0.Name = "0"; StackPanel sp = new StackPanel(); CheckBox cb = new CheckBox(); cb.Checked += new RoutedEventHandler((sender, e) => { foreach (TreeViewItem item in tvi_0.Items) { ((item.Header as StackPanel).Childr 阅读全文
posted @ 2012-02-23 19:28 梦想起航 阅读(1161) 评论(1) 推荐(1) 编辑
摘要: silverlight,Image,ImageSource 阅读全文
posted @ 2012-02-17 15:00 梦想起航 阅读(511) 评论(0) 推荐(0) 编辑