Skip to content

Instantly share code, notes, and snippets.

View YinChaoOnline's full-sized avatar
🎯
Focusing

Yinchao YinChaoOnline

🎯
Focusing
View GitHub Profile
@YinChaoOnline
YinChaoOnline / MainForm.cs
Last active May 5, 2017 03:37
查询亚洲范围内人口等级(POP_RANK)为5的所有城市(针对示例数据World.mxd)
//省略若干其他代码
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();