.NET平台下专题地图实现的C#代码
private void 点密度图ToolStripMenuItem_Click(object sender, EventArgs e)
{
//获取当前图层 ,并把它设置成IGeoFeatureLayer的实例
IMap pMap = axMapControl1.Map
ILayer pLayer = pMap.get_Layer(0) as IFeatureLayer
IFeatureLayer pFeatureLayer = pLayer as IFeatureLayer
IGeoFeatureLayer pGeoFeatureLayer = pLayer as IGeoFeatureLayer
//获取图层上的feature
IfeatureClass pfeatureClass = pFeatureLayer.featureClass
IFeatureCursor pFeatureCursor = pfeatureClass.Search(null, false)
IFeature pFeature = pFeatureCursor.NextFeature()
标签:
ToolStripMenuItem_Click
EventArgs
private
object
上传时间:
2013-11-27
上传用户:xlcky