laptop and a wrench

Error

IMapGeographicTransformations.GeographicTransformations is not able to retrieve geo transformations for a map in all cases.

Última publicación: August 31, 2014 ArcGIS for Desktop
Número de ID del error NIM067962
EnviadoMay 10, 2011
Última modificaciónJune 5, 2024
Relacionado conArcGIS for Desktop
Versión encontrada10.0
Lenguaje del programaC#
Sistema operativoWindows OS
Versión de sistema operativo7 64 Bit
EstadoWill Not Be Addressed

Información adicional

We apologize that we were unable to address this issue within the current product support cycle. If the issue continues to affect your work in a supported release, please contact Technical Support.

Solución alternativa

This code will return correct transformation information:Sub Test() Dim pMxD As IMxDocument Set pMxD = ThisDocument Dim pMap As IMap Set pMap = pMxD.FocusMap Dim pMGT As IMapGeographicTransformations Set pMGT = pMap Dim pGTOS As IGeoTransformationOperationSet Set pGTOS = pMGT.GeographicTransformations Dim pGT As IGeoTransformation Dim direction As esriTransformDirection pGTOS.Reset Dim i As Integer Debug.Print "Projection Count - " & pGTOS.Count For i = 0 To pGTOS.Count - 1 pGTOS.Next direction, pGT Debug.Print <a href="http://pGT.Name" target="_blank">pGT.Name</a> NextEnd SubBut the code will fail to return transformation information if the "pGTOS.Reset" is not called first.If this is expected then please mention this in documentation that calling the 'Reset' method is required, otherwise no transformation information from the map document would be returned.

Pasos para reproducir

ID del error: NIM067962

Software:

  • ArcGIS for Desktop

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga