2008年6月18日

摘要: 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 阅读(954) 评论(1) 推荐(0) 编辑
 
摘要: 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 阅读(1007) 评论(3) 推荐(0) 编辑
 
摘要: 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 阅读(610) 评论(1) 推荐(0) 编辑
 
摘要: 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 阅读(694) 评论(1) 推荐(0) 编辑
 
摘要: 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 阅读(910) 评论(0) 推荐(0) 编辑
 
摘要: 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 阅读(1008) 评论(3) 推荐(0) 编辑