应用MapXtreme2004开发GIS代码(C#) 搜索TAB表中的元素


   
</span></span>

</span>

</span></span>

</span>
FindYuansu()
</span>
{
</span>
;
</span>
try
</span></span>
{
</span>
;
</span>

</span></span>
(MapInfo.Engine.Session.Current.MapFactory.Count == 0 ||
</span>
)
</span>
{
</span>
;
</span>
}
</span>

</span></span>
MapInfo.Mapping.FeatureLayer findLayer = (MapInfo.Mapping.FeatureLayer) map.Layers[_findLayerName];
</span>
Find(findLayer.Table, findLayer.Table.TableInfo.Columns[_findColumnName]);
</span>
FindResult result = find.Search(DropDownList1.SelectedItem.Text);
</span>
(result.ExactMatch)
</span>
{
</span>

</span></span>
DPoint(result.FoundPoint.X, result.FoundPoint.Y);
</span>
MapInfo.Geometry.Distance(30, map.Zoom.Unit);
</span>
map.Zoom = d;
</span>
}
</span>

</span>
{
</span>
");
</span></span>
}
</span>
find.Dispose();
</span>
}
</span>
(Exception)
</span>
{
</span>
) find.Dispose();
</span>
}
</span>
}
</span>

</span>
 

你可能感兴趣的:(java,工作)