5、通过如下方式引用feature对象 ((MapInfo.Geometry.LegacyText)feature.Geometry).Caption
二、通过search方法搜索
1、catalog的search方法可以按条件搜索图元(第一个图元) // also uses search for feature Feature fDEU = _catalog.SearchForFeature("europe", MapInfo.Data.SearchInfoFactory.SearchWhere ("Country='DEU'"));
2、先利用SearchInfoFactory构造一个SearchInfo对象,指定其搜索属性: SearchAll: Returns all the rows。 SearchNearest: Returns the rows with table geometries that are closest to the given search point。 SearchWhere: Returns the rows specified by the given where Clause。 SearchWithinDistance: Returns the rows where the table geometry is contained within a buffer of the search point, rectangle or geometry。 SearchWithinFeature: Returns the rows where the table geometry is contained within the search features's geometry。 SearchWithinGeometry: Returns the rows where the table geometry is contained within the search geometry。
SearchWithinRect: Returns the rows where the table geometry intersects the given rectangle。 SearchIntersectsFeature: Returns the rows where the table geometry intersects with the search features's geometry。 SearchIntersectsGeometry: Returns the rows where the table geometry intersects with the search geometry。 SearchWithinScreenRadius: Creates a SearchInfo that returns the rows where the table geometry intersects a screen circle。 SearchWithinScreenRect:Returns the rows where the table geometry intersects the given screen rectangle
3、再调用search方法,将结果放到 MultiResultSetFeatureCollection IResultSetFeatureCollection
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/tongxinshuyu/article-33547-3.html
不惜一切代价
向美国佬开火
中国捍卫自身主权和海洋权益的立场坚定不移
巴菲特不是人吗