IDL for ExportToESRISpatialReference and ExportSpatialReferenceToPRJ IDL needs to be modified to work with .NET COM Interoperability.
上次发布: August 25, 2014No Product Found
漏洞 ID 编号
NIM001895
已提交
March 31, 2006
上次修改时间
June 5, 2024
适用范围
No Product Found
找到的版本
8.3
修正版本
9.2
状态
Fixed
此漏洞已得到修复。 有关详细信息,请参阅“版本修复”和“其他信息”(如果适用)。
解决办法
New GEN interface is created in 9.2.SG: This code runs much faster than the given example which takes ages - should probably be added as an example snippet:Try Dim sb As New System.Text.StringBuilder sb.Length = 10000 ' Get the result as a string Dim pStr As String = sb.ToString Dim cBytesWrote As Long Dim pESRISpatialRef2 As IESRISpatialReferenceGEN = AxMapControl1.Map.SpatialReference pESRISpatialRef2.ExportToESRISpatialReference(pStr, cBytesWrote) MessageBox.Show(pStr)Catch ex As Exception MessageBox.Show(Err.Description)End Try