GIS与人工智能是未来GIS的归宿

为我们的世界建模

导航

随笔分类 -  C#

ArcSDE中创建要素类
摘要:IFields pFields = new FieldsClass();IFieldsEdit pFieldsEdit = (IFieldsEdit)pFields; IGeometryDef pGometryDef = new GeometryDefClass();IGeometryDefEdit pGeometryDefEdit = (IGeometryDefEdit)pGometryDef;{pGeometryDefEdit.GeometryType_2 = esriGeometryType.esriGeometryPolygon; pGeometryDefEdit.HasM_2 = f 阅读全文

posted @ 2011-05-25 15:51 kisstome88 阅读(716) 评论(0) 推荐(0)

C#GDI+双缓冲高效绘图
摘要:Rectangle rectangle = e.ClipRectangle;BufferedGraphicsContext GraphicsContext = BufferedGraphicsManager.Current;BufferedGraphics myBuffer = GraphicsContext.Allocate(e.Graphics, e.ClipRectangle);Graphi... 阅读全文

posted @ 2010-10-29 13:57 kisstome88 阅读(1154) 评论(1) 推荐(0)

获取指定坐标处的栅格单元格的值
摘要:privatedouble getRasterCellValue(IPoint pPoint, IRasterLayer pRasterLayer) { IIdentify pIdentify = (IIdentify)pRasterLayer; IArray pArray = pIdentify.Identify(pPoint); IRasterIdentifyObj2 pRasterIde... 阅读全文

posted @ 2010-10-08 13:50 kisstome88 阅读(882) 评论(0) 推荐(0)

C#在线程中调用控件的方法
摘要:C#在线程中调用控件的方法public delegate void CallSetLogin();private void btnOK_Click(object sender, EventArgs e){Thread pThread = new Thread(new ThreadStart(Login)); pThread.Start();}private void Login(){SetLogi... 阅读全文

posted @ 2010-06-12 15:16 kisstome88 阅读(618) 评论(0) 推荐(0)

C#将图片白色背景设置为透明
摘要:Image image = System.Drawing.Image.FromFile(@"C:\A.JPG");Bitmap pbitmap = new Bitmap(image);pbitmap.MakeTransparent(Color.White);pictureBox1.Image = pbitmap; 阅读全文

posted @ 2010-05-01 21:27 kisstome88 阅读(1924) 评论(2) 推荐(0)

SceneControl加载3DS文件作为符号
摘要:SceneControl加载3DS文件作为符号IGraphicsContainer3D pGC3D = (IGraphicsContainer3D)SC1.Scene.BasicGraphicsLayer;pGC3D.DeleteAllElements();IPoint pPoint = new PointClass();((IZAware)pPoint).ZAware = true;pPoint... 阅读全文

posted @ 2009-07-25 23:38 kisstome88 阅读(1029) 评论(5) 推荐(0)

在SceneControl中创建3D符号而不是单纯的2D
摘要:在SceneControl中创建3D符号而不是单纯的2D IGraphicsContainer3D pGC3D = (IGraphicsContainer3D)SC1.Scene.BasicGraphicsLayer;pGC3D.DeleteAllElements();IRgbColor pColor = new RgbColorClass();pColor.Red = 255;IPoint pP... 阅读全文

posted @ 2009-07-25 23:04 kisstome88 阅读(639) 评论(3) 推荐(0)

SceneControl进行简单符号化
摘要:SceneControl进行简单符号化ISimpleRenderer pSimpleRenderer = new SimpleRendererClass();ISimpleMarkerSymbol pSMS = new SimpleMarkerSymbolClass();pSMS.Size = 20;pSimpleRenderer.Symbol =(ISymbol ) pSMS;IGeoFeatu... 阅读全文

posted @ 2009-06-11 22:21 kisstome88 阅读(766) 评论(0) 推荐(0)

获取栅格图层(Raster)的属性表
摘要:获取栅格图层(Raster)的属性表矢量图层的属性表相信大家都会操作就不多说了,下面说说栅格图层的属性表操作pNewRaster是你的Raster图层IRasterBandCollection pRasterBC =(IRasterBandCollection ) pNewRaster;IRasterBand pRasterBand = pRasterBC.Item(0);ITable pTabl... 阅读全文

posted @ 2009-06-08 20:50 kisstome88 阅读(3051) 评论(2) 推荐(0)

ArcEngine可视分析
摘要:ArcEngine可视分析IRasterLayer pRasterLayer = new RasterLayerClass();pRasterLayer = (IRasterLayer)SC1.Scene.get_Layer(1);//Raster图层IRaster pRaster = pRasterLayer.Raster;ISurfaceOp pSurfaceOp = new RasterSu... 阅读全文

posted @ 2009-06-07 11:54 kisstome88 阅读(1293) 评论(0) 推荐(0)

GlobeControl画的类似Google Earth中的网格线
摘要:GlobeControl画的类似Google Earth中的网格线IGraphicsContainer3D pGCon3D = GC1.GlobeDisplay.Scene.BasicGraphicsLayer as IGraphicsContainer3D; IRgbColor pColor = new RgbColorClass(); pColor.Green = 255; ISimpleLi... 阅读全文

posted @ 2009-05-22 16:26 kisstome88 阅读(1017) 评论(0) 推荐(0)