摘要:
/// <summary> /// 添加一条折线 /// </summary> /// <param name="orbitId">轨迹编号</param> private void AddMyPolylineMapTool(string orbitId,string tempLayerName) { try { // 获取折线数据 attachmentbll = new BLL.ECCS_ORBIT_ATTACHMENT();//实例化bll层 attachment = new Model.ECCS_ORBIT_ATTACH 阅读全文
随笔分类 - MapXtreme2008+c#
清除该图层上所有的图元
2012-03-27 16:20 by 枫桥夜泊日, 268 阅读, 收藏,
摘要:
private voidClearAllFeature(string tempLayerName){ Catalog cat = MapInfo.Engine.Session.Current.Catalog; SearchInfo si = MapInfo.Data.SearchInfoFactory.SearchWhere(""); IResultSetFeatureCollection ifs; MapInfo.Data.Table Tm; Tm = cat.GetTable(tempLayerName); if (Tm != null) //Table exists 阅读全文
删除选中的图元
2012-03-27 16:18 by 枫桥夜泊日, 208 阅读, 收藏,
摘要:
/// <summary> /// 删除选中的图元 /// </summary>private void ClearFeature(string tempLayerNames) { try { cat = MapInfo.Engine.Session.Current.Catalog; MapInfo.Data.Table Tm = cat.GetTable(tempLayerName); FeatureLayer lyr = mapMainControl.Map.Layers[tempLayerName] as FeatureLayer; if (MapInfo.Eng 阅读全文
添加标注
2012-03-27 15:34 by 枫桥夜泊日, 319 阅读, 收藏,
摘要:
public void CreatMark(string tempLayerNames) { MapInfo.Data.Table tblTemp = cat.GetTable(tempLayerName); LabelSource labelSource = new LabelSource(tblTemp); //给所创建的临时表Animation中的图元加标注 //指定要标准字段所在的列 labelSource.DefaultLabelProperties.Caption = "Name"; //所要标注的列名 labelSource.DefaultLabelPrope 阅读全文
添加线
2012-03-27 15:32 by 枫桥夜泊日, 227 阅读, 收藏,
摘要:
/// <param name="layerName">图层名</param> /// <param name="startPoint">线段起点坐标</param> /// <param name="endPoint">线段终点坐标</param> /// <param name="shortCode">线的shortCode(线的型状也有多种,比如单箭头,双箭头等)</param> /// <param nam 阅读全文
创建临时图层
2012-03-27 15:31 by 枫桥夜泊日, 321 阅读, 收藏,
摘要:
/// <summary> /// 创建临时图层 /// </summary> /// <param name="layerName">图层名</param> /// <param name="isSelectable">图层是否能被选中</param> /// <param name="lyr">图层对象</param>public FeatureLayer CreateTempLayer(string layerName, bool i 阅读全文
加载地图
2012-03-27 15:28 by 枫桥夜泊日, 281 阅读, 收藏,
摘要:
private void LoadMap(string path) { //mapMainControl:地图控件s mapMainControl.Map.Clear();//清空之前加载的地图 MapGeosetLoader mapGeosetLoader = new MapGeosetLoader(path);//加载地图 this.mapMainControl.Map.Load(mapGeosetLoader); mapMainControl.Map.Zoom = new MapInfo.Geometry.Distance(ZoomLevel, MapInfo.Geometry.Dist 阅读全文
浙公网安备 33010602011771号