IDL for ExportToESRISpatialReference and ExportSpatialReferenceToPRJ IDL needs to be modified to work with .NET COM Interoperability.
Last Published: August 25, 2014No Product Found
Bug ID Number
NIM001895
Submitted
March 31, 2006
Last Modified
June 5, 2024
Applies to
No Product Found
Version found
8.3
Version Fixed
9.2
Status
Fixed
The bug has been fixed. See the Version Fixed and Additional Information, if applicable, for more information.
Workaround
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