Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Yinchao YinChaoOnline

🎯
Focusing
View GitHub Profile
@YinChaoOnline
YinChaoOnline / MainForm.cs
Last active May 5, 2017
查询亚洲范围内人口等级(POP_RANK)为5的所有城市(针对示例数据World.mxd)
View MainForm.cs
//省略若干其他代码
private void menuSpatialIntersect_Click(object sender, EventArgs e)
{
//get the continent layer
IFeatureLayer continentLayer = GetLayerByName("Continents", axMapControl1.Map) as IFeatureLayer;
//query the continents layer where its name equals 'asia'
//get the feature's geometry matching the above condition
IQueryFilter queryFilter = new QueryFilterClass();
You can’t perform that action at this time.