阅读:2237回复:1
ITable.GetRow() 失败请教
<P>SHP图层,下面的代码没有问题,如果是SDE中获取的图层在 i=0 时,异常!</P>
<P>异常提示:{"HRESULT 中的异常:0x80040952。" }</P> <P> ESRI.ArcGIS.Geodatabase.IQueryFilter qf = new ESRI.ArcGIS.Geodatabase.QueryFilterClass();<BR> int iRowCount = table.RowCount(qf);<BR> ArrayList alValues = new ArrayList(iRowCount);<BR> for( int i=0;i<iRowCount;++i )<BR> {<BR> try<BR> {<BR> ESRI.ArcGIS.Geodatabase.IRow row = table.GetRow( i );<BR> }<BR> catch( Exception ex )<BR> {<BR> int ii =0;<BR> }<BR> }<BR></P> <P>请指教!</P> |
|
1楼#
发布于:2006-12-26 17:33
<P>是不是因为SDE中的object id 是从 1 开始的,而SHP文件中的 feature id 是从 0 开始的?</P>
|
|