|
阅读:2071回复:5
QueryPixelBlock函数在C#+AE9.0开发中运行没结果,大家帮帮我吧
<P>QueryPixelBlock方法在tin的坡度分析,tin 转为raster中都要用到,可这个函数运行,还是不运行结果是一样的,raster是空的,没能得到象素值。谁能帮我一下。这是不是9.0的bug,用9.2版本是不是就没问题了。谁在.net用了,帮我一把。</P>
|
|
|
1楼#
发布于:2007-07-31 21:46
<P>In .Net, the workaround is to use the method IGeoDatabaseBridge2.QueryPixelBlock: <BR></P>
<P>And call IPixelBlock3.set_PixelData before calling IRawPixels.Write. </P> <P>Hope this helps. </P> <P> <BR> IGeoDatabaseBridge2 pbridge2 = (IGeoDatabaseBridge2) new GeoDatabaseHelperClass();<BR> pbridge2.QueryPixelBlock(...,(System.Object) pixelData);</P> <P>And </P> <P><BR> pixelBlock3.set_PixelData(plane, (System.Object) pixelData);<BR> rawPixels.Write(pixelBlockOrigin, (IPixelBlock) pixelBlock3);</P> |
|
|
2楼#
发布于:2007-07-31 21:42
<P>In .Net, the workaround is to use the method IGeoDatabaseBridge2.QueryPixelBlock: <BR><a href="http://edndoc.esri.com/arcobjects/9.1/ComponentHelp/esriGeoDatabase/IGeoDatabaseBridge2_QueryPixelBlock.htm" target="_blank" >http://edndoc.esri.com/arcobjects/9.1/ComponentHelp/esriGeoDatabase/IGeoDatabaseBridge2_QueryPixelBlock.htm</A> </P>
<P>And call IPixelBlock3.set_PixelData before calling IRawPixels.Write. </P> <P>Hope this helps. </P> <P> <BR> IGeoDatabaseBridge2 pbridge2 = (IGeoDatabaseBridge2) new GeoDatabaseHelperClass();<BR> pbridge2.QueryPixelBlock(...,(System.Object) pixelData);</P> <P>And </P> <P><BR> pixelBlock3.set_PixelData(plane, (System.Object) pixelData);<BR> rawPixels.Write(pixelBlockOrigin, (IPixelBlock) pixelBlock3);</P> <img src="images/post/smile/dvbbs/em08.gif" /> |
|
|
3楼#
发布于:2007-07-31 21:41
<TABLE>
<TR> <TD class=postvalue>In .Net, the workaround is to use the method IGeoDatabaseBridge2.QueryPixelBlock: <BR><a href="http://edndoc.esri.com/arcobjects/9.1/ComponentHelp/esriGeoDatabase/IGeoDatabaseBridge2_QueryPixelBlock.htm" target="_blank" >http://edndoc.esri.com/arcobjects/9.1/ComponentHelp/esriGeoDatabase/IGeoDatabaseBridge2_QueryPixelBlock.htm</A> <BR><BR>And call IPixelBlock3.set_PixelData before calling IRawPixels.Write. <BR><BR>Hope this helps. <BR><BR> </TD></TR> <TR> <TH> </TH> <TD><PRE>IGeoDatabaseBridge2 pbridge2 = (IGeoDatabaseBridge2) new GeoDatabaseHelperClass(); pbridge2.QueryPixelBlock(...,(System.Object) pixelData); And pixelBlock3.set_PixelData(plane, (System.Object) pixelData); rawPixels.Write(pixelBlockOrigin, (IPixelBlock) pixelBlock3); </PRE> </TD></TR></TABLE> |
|
|
4楼#
发布于:2007-05-16 08:51
<P>可能,9.0中的bug很多,建议9.2 </P>
|
|
|
5楼#
发布于:2007-04-28 17:04
<P>自己顶一下!</P>
|
|