阅读:1530回复:0
求救 FeatureLayer.Search 出错
<P>IFeature pFrFeature = zdFeatureCoursor.NextFeature();<BR> if(pFrFeature == null) break;<BR> try<BR> {<BR> if(pFrFeature.ShapeCopy.IsEmpty) continue;<BR> <BR> ESRI.ArcGIS.Geodatabase.ISpatialFilter pSpatialFilter = new SpatialFilterClass();<BR> pSpatialFilter.Geometry = pFrFeature.ShapeCopy;<BR> pSpatialFilter.GeometryField ="SHAPE";<BR> pSpatialFilter.SpatialRel = ESRI.ArcGIS.Geodatabase.esriSpatialRelEnum.esriSpatialRelContains;<BR> dxFeatureCoursor = dxFeatureLayer.Search(pSpatialFilter,false);</P>
<P>}</P> <P>每次循环到186时 dxFeatureCoursor = dxFeatureLayer.Search(pSpatialFilter,false);</P> <P>就报错 其他信息: ESRI.ArcGIS.CartoHRESULT 中的异常:0x80040213。</P> |
|