随笔分类 -  MapXtreme

MapInfo+C#
 
mapxtreme2005 改变选中的图元样式
摘要:MapInfo.Styles.CompositeStyle compositeStyle = GetOpaquesStyle(false, System.Drawing.Color.Blue); if (map != null) { if (map.Layers[SysCommon.TempTableAlias] != null) { map.Layers.Remove(SysCommon.Tem... 阅读全文
posted @ 2008-06-18 11:28 fatrick 阅读(960) 评论(1) 推荐(0)
Mapxtreme2005 两点之间画直线
摘要:private void DrawLine(MapInfo.Data.Table temptable,MapInfo.Geometry.DPoint begDpoint,MapInfo.Geometry.DPoint endDpoint,int Pattoner,System.Drawing.Color color) { MapInfo.Geometry.MultiCurve mc = MapIn... 阅读全文
posted @ 2008-06-18 11:27 fatrick 阅读(1010) 评论(3) 推荐(0)
mapxtreme2005 创建各种样式
摘要:public MapInfo.Styles.CompositeStyle GetOpaquesStyle(bool opaqueType, System.Drawing.Color borderColor) { MapInfo.Styles.SimpleInterior simpleInterior; if (opaqueType) simpleInterior = new MapInfo.Sty... 阅读全文
posted @ 2008-06-18 11:26 fatrick 阅读(617) 评论(1) 推荐(0)
MapxTreme2005 画扇区
摘要:public MapInfo.Geometry.Geometry DrawSector(double x, double y, int middle, int angle, double radius) { if ((angle == 0) || (radius == 0)) return null; MapInfo.Geometry.DPoint center = new MapInfo.Geo... 阅读全文
posted @ 2008-06-18 11:25 fatrick 阅读(704) 评论(1) 推荐(0)
MapXtreme 2005 基础代码
摘要:1、遍历所有要素foreach(MapInfo.Data.Feature f in _FeatureLayer.Table){// do something with the Feature}2、点查询MapInfo.Geometry.DPoint point = new MapInfo.Geometry.DPoint(-100, 40);MapInfo.Data.MIConnection con... 阅读全文
posted @ 2008-06-18 11:23 fatrick 阅读(918) 评论(0) 推荐(0)
MapXtreme创建本地TAB文件
摘要:MapInfo.Data.TableInfo ti = MapInfo.Data.TableInfoFactory.CreateTemp("MyPointTable");ti.Columns.Add(MapInfo.Data.ColumnFactory.CreateIntColumn("Index"));MapInfo.Data.Table table = MapInfo.Engine.Sessi... 阅读全文
posted @ 2008-06-18 11:21 fatrick 阅读(1015) 评论(3) 推荐(0)