GIS在哪里

 

2009年8月6日

读取shp文件并把shp文件添加到地图中

摘要: ILayer pLayer = operateShp.GetIlayerByShapefile(path, name); pMap.AddLayer(pLayer); public ILayer GetIlayerByShapefile(string path, string fileName) { IWorkspaceFactory pWorkspaceFactory = new Shapef... 阅读全文

posted @ 2009-08-06 15:41 寻找GIS 阅读(1258) 评论(0) 推荐(1) 编辑

创建shp文件并把feature添加到该shp文件中

摘要: IFeatureCursor cursor; IFeatureBuffer featureBuffer; IFeatureClass featureClass; featureClass = operateShp.CreateShapefile(path, name, polygon.GeometryType); cursor = featureClass.Insert(true); featur... 阅读全文

posted @ 2009-08-06 15:39 寻找GIS 阅读(834) 评论(0) 推荐(0) 编辑

获取所有图层中选择的feature

摘要: IGeometry polygon; IActiveView pActiveView; IEnumFeature pEnumFeature; IFeature pFeature; IFeature pFirstFeature; pActiveView = (IActiveView)pMap; if (pMap.SelectionCount == 0) { return; } pEnumFeatur... 阅读全文

posted @ 2009-08-06 15:23 寻找GIS 阅读(450) 评论(0) 推荐(0) 编辑

获取当前图层选择的feature

摘要: IFeatureLayer pFeatureLayer; IFeatureSelection pFeatSel; ISelectionSet pSelectionSet; pFeatureLayer = pCurrentLayer as IFeatureLayer; pFeatSel = (IFeatureSelection)pCurrentLayer; pSelectionSet = pFeat... 阅读全文

posted @ 2009-08-06 15:21 寻找GIS 阅读(442) 评论(0) 推荐(0) 编辑

导航